Upgrade http(s)-proxy-agent dependent npm packages (#22306)

This commit is contained in:
Cheena Malhotra
2023-03-13 11:05:59 -07:00
committed by GitHub
parent 653293aad9
commit 8539b63a5c
49 changed files with 823 additions and 1096 deletions

View File

@@ -44,7 +44,8 @@ export async function getProxyAgent(rawRequestURL: string, env: typeof process.e
rejectUnauthorized: isBoolean(options.strictSSL) ? options.strictSSL : true,
};
// {{SQL CARBON EDIT}} Using updated 'http-proxy-agent' and 'https-proxy-agent' packages.
return requestURL.protocol === 'http:'
? new (await import('http-proxy-agent'))(opts as any as Url)
: new (await import('https-proxy-agent'))(opts);
? (await import('http-proxy-agent'))(opts as any as Url)
: (await import('https-proxy-agent'))(opts);
}