Skip to content

Commit

Permalink
build: update https-proxy-agent to version 7.0.2
Browse files Browse the repository at this point in the history
This commit updates `https-proxy-agent` to version 7+
  • Loading branch information
alan-agius4 committed Sep 13, 2023
1 parent 1b76d03 commit 71424e1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/angular_devkit/build_angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -196,11 +196,11 @@ export class InlineFontsProcessor {
} catch {}
}

let agent: proxyAgent.HttpsProxyAgent | undefined;
let agent: HttpsProxyAgent<string> | 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<string>((resolve, reject) => {
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7468,6 +7468,14 @@ [email protected], https-proxy-agent@^5.0.0:
agent-base "6"
debug "4"

[email protected], 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"
Expand All @@ -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"
Expand Down

0 comments on commit 71424e1

Please sign in to comment.