diff --git a/src/utils/ajax.ts b/src/utils/ajax.ts index 95bdc98..f89c358 100644 --- a/src/utils/ajax.ts +++ b/src/utils/ajax.ts @@ -1,8 +1,8 @@ import axios, { AxiosResponse, Method, AxiosRequestHeaders } from 'axios' import qs from 'qs' import debug from 'debug' -import { HttpsProxyAgent } from 'https-proxy-agent' -import { SocksProxyAgent } from 'socks-proxy-agent' +import HttpsProxyAgent from 'https-proxy-agent' +import SocksProxyAgent from 'socks-proxy-agent' import { isHttpURL, isSocksUrl } from './helper' const Debugger = debug('push:ajax') @@ -44,15 +44,15 @@ export async function ajax(config: AjaxConfig): Promise