proxy-agent
Advanced tools
Comparing version 6.3.1 to 6.4.0
@@ -100,3 +100,3 @@ "use strict"; | ||
const url = new url_1.URL(req.path, `${protocol}//${host}`).href; | ||
const proxy = this.getProxyForUrl(url); | ||
const proxy = await this.getProxyForUrl(url); | ||
if (!proxy) { | ||
@@ -103,0 +103,0 @@ debug('Proxy not enabled for URL: %o', url); |
@@ -12,3 +12,3 @@ /// <reference types="node" /> | ||
type AgentConstructor = new (...args: never[]) => Agent; | ||
type GetProxyForUrlCallback = (url: string) => string; | ||
type GetProxyForUrlCallback = (url: string) => string | Promise<string>; | ||
/** | ||
@@ -15,0 +15,0 @@ * Supported proxy types. |
@@ -100,3 +100,3 @@ "use strict"; | ||
const url = new url_1.URL(req.path, `${protocol}//${host}`).href; | ||
const proxy = this.getProxyForUrl(url); | ||
const proxy = await this.getProxyForUrl(url); | ||
if (!proxy) { | ||
@@ -103,0 +103,0 @@ debug('Proxy not enabled for URL: %o', url); |
{ | ||
"name": "proxy-agent", | ||
"version": "6.3.1", | ||
"version": "6.4.0", | ||
"description": "Maps proxy protocols to `http.Agent` implementations", | ||
@@ -31,4 +31,4 @@ "main": "./dist/index.js", | ||
"debug": "^4.3.4", | ||
"http-proxy-agent": "^7.0.0", | ||
"https-proxy-agent": "^7.0.2", | ||
"http-proxy-agent": "^7.0.1", | ||
"https-proxy-agent": "^7.0.3", | ||
"lru-cache": "^7.14.1", | ||
@@ -35,0 +35,0 @@ "pac-proxy-agent": "^7.0.1", |
@@ -56,30 +56,2 @@ proxy-agent | ||
License | ||
------- | ||
(The MIT License) | ||
Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net> | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
'Software'), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
[http-proxy-agent]: ../http-proxy-agent | ||
@@ -86,0 +58,0 @@ [https-proxy-agent]: ../https-proxy-agent |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23721
8
60
Updatedhttp-proxy-agent@^7.0.1
Updatedhttps-proxy-agent@^7.0.3