Skip to content

Commit ed3f254

Browse files
committed
1 parent 8ec4fd5 commit ed3f254

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

node_modules/http-proxy-agent/LICENSE

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
License
2-
-------
3-
41
(The MIT License)
52

6-
Copyright (c) 2013 Nathan Rajlich <[email protected]>
3+
Copyright (c) 2013 Nathan Rajlich <[email protected]>
74

85
Permission is hereby granted, free of charge, to any person obtaining
96
a copy of this software and associated documentation files (the

node_modules/http-proxy-agent/dist/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const tls = __importStar(require("tls"));
3232
const debug_1 = __importDefault(require("debug"));
3333
const events_1 = require("events");
3434
const agent_base_1 = require("agent-base");
35+
const url_1 = require("url");
3536
const debug = (0, debug_1.default)('http-proxy-agent');
3637
/**
3738
* The `HttpProxyAgent` implements an HTTP Agent subclass that connects
@@ -40,7 +41,7 @@ const debug = (0, debug_1.default)('http-proxy-agent');
4041
class HttpProxyAgent extends agent_base_1.Agent {
4142
constructor(proxy, opts) {
4243
super(opts);
43-
this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy;
44+
this.proxy = typeof proxy === 'string' ? new url_1.URL(proxy) : proxy;
4445
this.proxyHeaders = opts?.headers ?? {};
4546
debug('Creating new HttpProxyAgent instance: %o', this.proxy.href);
4647
// Trim off the brackets from IPv6 addresses
@@ -67,7 +68,7 @@ class HttpProxyAgent extends agent_base_1.Agent {
6768
const protocol = opts.secureEndpoint ? 'https:' : 'http:';
6869
const hostname = req.getHeader('host') || 'localhost';
6970
const base = `${protocol}//${hostname}`;
70-
const url = new URL(req.path, base);
71+
const url = new url_1.URL(req.path, base);
7172
if (opts.port !== 80) {
7273
url.port = String(opts.port);
7374
}

node_modules/http-proxy-agent/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "http-proxy-agent",
3-
"version": "7.0.0",
3+
"version": "7.0.2",
44
"description": "An HTTP(s) proxy `http.Agent` implementation for HTTP",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

package-lock.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -6214,9 +6214,9 @@
62146214
"inBundle": true
62156215
},
62166216
"node_modules/http-proxy-agent": {
6217-
"version": "7.0.0",
6218-
"resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.0.tgz",
6219-
"integrity": "sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ==",
6217+
"version": "7.0.2",
6218+
"resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
6219+
"integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
62206220
"inBundle": true,
62216221
"dependencies": {
62226222
"agent-base": "^7.1.0",

0 commit comments

Comments
 (0)