cleaned up random .js imports
This commit is contained in:
parent
47109baff7
commit
c172ecc6d3
19 changed files with 107 additions and 69 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import axios, { type AxiosRequestConfig, type AxiosResponse } from 'axios';
|
||||
import type { RequestConfig, HttpResponse } from '../types.js';
|
||||
import type { RequestAdapter } from './types.js';
|
||||
import { ProxyManager } from '../proxy-manager.js';
|
||||
import { HttpError } from '../types.js';
|
||||
import type { RequestConfig, HttpResponse } from '../types';
|
||||
import type { RequestAdapter } from './types';
|
||||
import { ProxyManager } from '../proxy-manager';
|
||||
import { HttpError } from '../types';
|
||||
|
||||
/**
|
||||
* Axios adapter for SOCKS proxies
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import type { RequestConfig } from '../types.js';
|
||||
import type { RequestAdapter } from './types.js';
|
||||
import { FetchAdapter } from './fetch-adapter.js';
|
||||
import { AxiosAdapter } from './axios-adapter.js';
|
||||
import type { RequestConfig } from '../types';
|
||||
import type { RequestAdapter } from './types';
|
||||
import { FetchAdapter } from './fetch-adapter';
|
||||
import { AxiosAdapter } from './axios-adapter';
|
||||
|
||||
/**
|
||||
* Factory for creating the appropriate request adapter
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import type { RequestConfig, HttpResponse } from '../types.js';
|
||||
import type { RequestAdapter } from './types.js';
|
||||
import { ProxyManager } from '../proxy-manager.js';
|
||||
import { HttpError } from '../types.js';
|
||||
import type { RequestConfig, HttpResponse } from '../types';
|
||||
import type { RequestAdapter } from './types';
|
||||
import { ProxyManager } from '../proxy-manager';
|
||||
import { HttpError } from '../types';
|
||||
|
||||
/**
|
||||
* Fetch adapter for HTTP/HTTPS proxies and non-proxy requests
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
export * from './types.js';
|
||||
export * from './fetch-adapter.js';
|
||||
export * from './axios-adapter.js';
|
||||
export * from './factory.js';
|
||||
export * from './types';
|
||||
export * from './fetch-adapter';
|
||||
export * from './axios-adapter';
|
||||
export * from './factory';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { RequestConfig, HttpResponse } from '../types.js';
|
||||
import type { RequestConfig, HttpResponse } from '../types';
|
||||
|
||||
/**
|
||||
* Request adapter interface for different HTTP implementations
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue