make-fetch-happen
Advanced tools
Comparing version 2.4.4 to 2.4.5
@@ -37,3 +37,3 @@ 'use strict' | ||
if (pxuri) { | ||
const proxy = getProxy(pxuri, opts) | ||
const proxy = getProxy(pxuri, parsedUri, opts) | ||
AGENT_CACHE.set(key, proxy) | ||
@@ -124,3 +124,3 @@ return proxy | ||
let SocksProxyAgent | ||
function getProxy (proxyUrl, opts) { | ||
function getProxy (proxyUrl, destUrl, opts) { | ||
let popts = { | ||
@@ -139,3 +139,3 @@ host: proxyUrl.hostname, | ||
if (proxyUrl.protocol === 'http:') { | ||
if (destUrl.protocol === 'http:') { | ||
if (!HttpProxyAgent) { | ||
@@ -147,3 +147,3 @@ HttpProxyAgent = require('http-proxy-agent') | ||
} | ||
if (proxyUrl.protocol === 'https:') { | ||
if (destUrl.protocol === 'https:') { | ||
if (!HttpsProxyAgent) { | ||
@@ -150,0 +150,0 @@ HttpsProxyAgent = require('https-proxy-agent') |
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="2.4.5"></a> | ||
## [2.4.5](https://github.com/zkat/make-fetch-happen/compare/v2.4.4...v2.4.5) (2017-05-24) | ||
### Bug Fixes | ||
* **proxy:** use the destination url when determining agent ([1a714e7](https://github.com/zkat/make-fetch-happen/commit/1a714e7)) | ||
<a name="2.4.4"></a> | ||
@@ -7,0 +17,0 @@ ## [2.4.4](https://github.com/zkat/make-fetch-happen/compare/v2.4.3...v2.4.4) (2017-05-23) |
{ | ||
"name": "make-fetch-happen", | ||
"version": "2.4.4", | ||
"version": "2.4.5", | ||
"description": "Opinionated, caching, retrying fetch client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
57961