diff --git a/src/_utils.ts b/src/_utils.ts index 2cdb440..997aca8 100644 --- a/src/_utils.ts +++ b/src/_utils.ts @@ -7,7 +7,7 @@ import { promisify } from "node:util"; import type { Agent } from "node:http"; import { relative, resolve } from "pathe"; import { fetch } from "node-fetch-native"; -import createHttpsProxyAgent from "https-proxy-agent"; +import { HttpsProxyAgent } from "https-proxy-agent"; import type { GitInfo } from "./types"; export async function download( @@ -79,7 +79,7 @@ export async function sendFetch( process.env.HTTP_PROXY || process.env.http_proxy; if (proxyEnv) { - options.agent = createHttpsProxyAgent(proxyEnv); + options.agent = new HttpsProxyAgent(proxyEnv); } }