mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Upgrade http(s)-proxy-agent dependent npm packages (#22306)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user