pac-proxy-agent
Advanced tools
Comparing version 1.1.0 to 2.0.0
2.0.0 / 2017-06-13 | ||
================== | ||
* [BREAKING] drop support for Node < 4 | ||
* update "socks-proxy-agent" to v3 | ||
* use `Object.assign()` | ||
* add 'use strict' | ||
* update dependencies | ||
1.1.0 / 2017-06-11 | ||
@@ -3,0 +12,0 @@ ================== |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
/** | ||
@@ -27,3 +29,2 @@ * Module exports. | ||
var format = require('url').format; | ||
var extend = require('extend'); | ||
var Agent = require('agent-base'); | ||
@@ -200,3 +201,3 @@ var HttpProxyAgent = require('http-proxy-agent'); | ||
} | ||
url = format(extend({}, opts, { | ||
url = format(Object.assign({}, opts, { | ||
protocol: secure ? 'https:' : 'http:', | ||
@@ -254,3 +255,3 @@ pathname: path, | ||
var proxyURL = ('HTTPS' === type ? 'https' : 'http') + '://' + parts[1]; | ||
var proxy = extend({}, self.proxy, parse(proxyURL)); | ||
var proxy = Object.assign({}, self.proxy, parse(proxyURL)); | ||
if (secure) { | ||
@@ -257,0 +258,0 @@ agent = new HttpsProxyAgent(proxy); |
{ | ||
"name": "pac-proxy-agent", | ||
"version": "1.1.0", | ||
"version": "2.0.0", | ||
"description": "A PAC file proxy `http.Agent` implementation for HTTP", | ||
@@ -30,11 +30,10 @@ "main": "index.js", | ||
"dependencies": { | ||
"agent-base": "2", | ||
"debug": "2", | ||
"extend": "3", | ||
"get-uri": "2", | ||
"http-proxy-agent": "1", | ||
"https-proxy-agent": "1", | ||
"pac-resolver": "~2.0.0", | ||
"socks-proxy-agent": "2", | ||
"raw-body": "2" | ||
"agent-base": "^2.1.1", | ||
"debug": "^2.6.8", | ||
"get-uri": "^2.0.0", | ||
"http-proxy-agent": "^1.0.0", | ||
"https-proxy-agent": "^1.0.0", | ||
"pac-resolver": "^3.0.0", | ||
"raw-body": "^2.2.0", | ||
"socks-proxy-agent": "^3.0.0" | ||
}, | ||
@@ -41,0 +40,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
25065
8
+ Addedagent-base@4.3.0(transitive)
+ Addedco@4.6.0(transitive)
+ Addedes6-promise@4.2.8(transitive)
+ Addedes6-promisify@5.0.0(transitive)
+ Addedpac-resolver@3.0.0(transitive)
+ Addedsocks-proxy-agent@3.0.1(transitive)
- Removedextend@3
- Removedco@3.0.6(transitive)
- Removedip@1.0.1(transitive)
- Removedpac-resolver@2.0.0(transitive)
- Removedsocks-proxy-agent@2.1.1(transitive)
Updatedagent-base@^2.1.1
Updateddebug@^2.6.8
Updatedget-uri@^2.0.0
Updatedhttp-proxy-agent@^1.0.0
Updatedhttps-proxy-agent@^1.0.0
Updatedpac-resolver@^3.0.0
Updatedraw-body@^2.2.0
Updatedsocks-proxy-agent@^3.0.0