proxy-agent
Advanced tools
Comparing version 6.3.0 to 6.3.1
@@ -32,2 +32,3 @@ "use strict"; | ||
const https = __importStar(require("https")); | ||
const url_1 = require("url"); | ||
const lru_cache_1 = __importDefault(require("lru-cache")); | ||
@@ -99,3 +100,3 @@ const agent_base_1 = require("agent-base"); | ||
const host = req.getHeader('host'); | ||
const url = new URL(req.path, `${protocol}//${host}`).href; | ||
const url = new url_1.URL(req.path, `${protocol}//${host}`).href; | ||
const proxy = this.getProxyForUrl(url); | ||
@@ -112,3 +113,3 @@ if (!proxy) { | ||
if (!agent) { | ||
const proxyUrl = new URL(proxy); | ||
const proxyUrl = new url_1.URL(proxy); | ||
const proxyProto = proxyUrl.protocol.replace(':', ''); | ||
@@ -115,0 +116,0 @@ if (!isValidProtocol(proxyProto)) { |
@@ -32,2 +32,3 @@ "use strict"; | ||
const https = __importStar(require("https")); | ||
const url_1 = require("url"); | ||
const lru_cache_1 = __importDefault(require("lru-cache")); | ||
@@ -99,3 +100,3 @@ const agent_base_1 = require("agent-base"); | ||
const host = req.getHeader('host'); | ||
const url = new URL(req.path, `${protocol}//${host}`).href; | ||
const url = new url_1.URL(req.path, `${protocol}//${host}`).href; | ||
const proxy = this.getProxyForUrl(url); | ||
@@ -112,3 +113,3 @@ if (!proxy) { | ||
if (!agent) { | ||
const proxyUrl = new URL(proxy); | ||
const proxyUrl = new url_1.URL(proxy); | ||
const proxyProto = proxyUrl.protocol.replace(':', ''); | ||
@@ -115,0 +116,0 @@ if (!isValidProtocol(proxyProto)) { |
{ | ||
"name": "proxy-agent", | ||
"version": "6.3.0", | ||
"version": "6.3.1", | ||
"description": "Maps proxy protocols to `http.Agent` implementations", | ||
@@ -32,7 +32,7 @@ "main": "./dist/index.js", | ||
"http-proxy-agent": "^7.0.0", | ||
"https-proxy-agent": "^7.0.0", | ||
"https-proxy-agent": "^7.0.2", | ||
"lru-cache": "^7.14.1", | ||
"pac-proxy-agent": "^7.0.0", | ||
"pac-proxy-agent": "^7.0.1", | ||
"proxy-from-env": "^1.1.0", | ||
"socks-proxy-agent": "^8.0.1" | ||
"socks-proxy-agent": "^8.0.2" | ||
}, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
23688
325
Updatedhttps-proxy-agent@^7.0.2
Updatedpac-proxy-agent@^7.0.1
Updatedsocks-proxy-agent@^8.0.2