Socket
Socket
Sign inDemoInstall

make-fetch-happen

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

make-fetch-happen - npm Package Compare versions

Comparing version 2.4.4 to 2.4.5

8

agent.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc