From fe749bce0e5e084c38ffd8942db0d5238fa495f6 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 13 Sep 2023 07:55:50 +0000 Subject: [PATCH] build: update `https-proxy-agent` to version `7.0.2` This commit updates `https-proxy-agent` to version 7+ --- package.json | 2 +- .../angular_devkit/build_angular/package.json | 2 +- .../src/utils/index-file/inline-fonts.ts | 6 +++--- yarn.lock | 16 ++++++++-------- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 0b1c2b3960da..ee6e5d3f0b0f 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 b1086a9cb2ef..a6a5390f91e3 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 13ecc51304ad..3d2dd6be7c0e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7465,6 +7465,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" @@ -7473,14 +7481,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"