http-proxy-agent
Advanced tools
Comparing version 2.0.0 to 2.1.0
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 @@ ================== |
@@ -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" | ||
} | ||
} |
20854
359
8
+ Addeddebug@3.1.0(transitive)
- Removeddebug@2.6.9(transitive)
Updateddebug@3.1.0