diff --git a/package.json b/package.json index 12f952be94d3..e772b9684f05 100644 --- a/package.json +++ b/package.json @@ -148,7 +148,7 @@ "guess-parser": "0.4.22", "http-proxy": "^1.18.1", "http-proxy-middleware": "2.0.6", - "https-proxy-agent": "5.0.1", + "https-proxy-agent": "7.0.2", "husky": "8.0.3", "ini": "4.1.1", "inquirer": "8.2.6", diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index 9256b786905e..8fb4e95a45f8 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -35,7 +35,7 @@ "esbuild-wasm": "0.19.2", "fast-glob": "3.3.1", "guess-parser": "0.4.22", - "https-proxy-agent": "5.0.1", + "https-proxy-agent": "7.0.2", "http-proxy-middleware": "2.0.6", "inquirer": "8.2.6", "jsonc-parser": "3.2.0", diff --git a/packages/angular_devkit/build_angular/src/utils/index-file/inline-fonts.ts b/packages/angular_devkit/build_angular/src/utils/index-file/inline-fonts.ts index 55ed02475086..801b0e255d53 100644 --- a/packages/angular_devkit/build_angular/src/utils/index-file/inline-fonts.ts +++ b/packages/angular_devkit/build_angular/src/utils/index-file/inline-fonts.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import proxyAgent from 'https-proxy-agent'; +import { HttpsProxyAgent } from 'https-proxy-agent'; import { createHash } from 'node:crypto'; import { readFile, rm, writeFile } from 'node:fs/promises'; import * as https from 'node:https'; @@ -196,11 +196,11 @@ export class InlineFontsProcessor { } catch {} } - let agent: proxyAgent.HttpsProxyAgent | undefined; + let agent: HttpsProxyAgent | undefined; const httpsProxy = process.env.HTTPS_PROXY ?? process.env.https_proxy; if (httpsProxy) { - agent = proxyAgent(httpsProxy); + agent = new HttpsProxyAgent(httpsProxy); } const data = await new Promise((resolve, reject) => { diff --git a/yarn.lock b/yarn.lock index f5610c96671f..56e2772d4c25 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7468,6 +7468,14 @@ https-proxy-agent@5.0.1, https-proxy-agent@^5.0.0: agent-base "6" debug "4" +https-proxy-agent@7.0.2, https-proxy-agent@^7.0.1: + version "7.0.2" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz#e2645b846b90e96c6e6f347fb5b2e41f1590b09b" + integrity sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA== + dependencies: + agent-base "^7.0.2" + debug "4" + https-proxy-agent@^2.2.1: version "2.2.4" resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz#4ee7a737abd92678a293d9b34a1af4d0d08c787b" @@ -7476,14 +7484,6 @@ https-proxy-agent@^2.2.1: agent-base "^4.3.0" debug "^3.1.0" -https-proxy-agent@^7.0.1: - version "7.0.2" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz#e2645b846b90e96c6e6f347fb5b2e41f1590b09b" - integrity sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA== - dependencies: - agent-base "^7.0.2" - debug "4" - human-signals@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"