diff --git a/packages/core/pipeline/src/utils/util.request.ts b/packages/core/pipeline/src/utils/util.request.ts index e434de26..b2ad890a 100644 --- a/packages/core/pipeline/src/utils/util.request.ts +++ b/packages/core/pipeline/src/utils/util.request.ts @@ -1,7 +1,7 @@ import axios, { AxiosRequestConfig } from "axios"; import { logger } from "./util.log.js"; import { Logger } from "log4js"; -import { ProxyAgent } from "proxy-agent"; +import { ProxyAgent, ProxyAgentOptions } from "proxy-agent"; export class HttpError extends Error { status?: number; statusText?: string; @@ -136,7 +136,7 @@ export type HttpClient = { request(config: HttpRequestConfig): Promise>; }; -export function createAgent(opts: any = {}) { +export function createAgent(opts: ProxyAgentOptions = {}) { const httpAgent = new ProxyAgent(opts); return { httpAgent,