Socket
Socket
Sign inDemoInstall

http-proxy-agent

Package Overview
Dependencies
5
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.1.0

7

History.md
2.1.0 / 2018-03-03
==================
* Add "engines" to package.json
* Use `Buffer.from()`
* Update package.json - outdated debug version (#7)
2.0.0 / 2017-06-27

@@ -3,0 +10,0 @@ ==================

8

index.js

@@ -78,5 +78,7 @@

// inject the `Proxy-Authorization` header if necessary
var auth = proxy.auth;
if (auth) {
req.setHeader('Proxy-Authorization', 'Basic ' + new Buffer(auth).toString('base64'));
if (proxy.auth) {
req.setHeader(
'Proxy-Authorization',
'Basic ' + Buffer.from(proxy.auth).toString('base64')
);
}

@@ -83,0 +85,0 @@

{
"name": "http-proxy-agent",
"version": "2.0.0",
"version": "2.1.0",
"description": "An HTTP(s) proxy `http.Agent` implementation for HTTP",

@@ -26,3 +26,3 @@ "main": "./index.js",

"agent-base": "4",
"debug": "2"
"debug": "3.1.0"
},

@@ -32,3 +32,6 @@ "devDependencies": {

"proxy": "~0.2.3"
},
"engines": {
"node": ">= 4.5.0"
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc