pac-proxy-agent
Advanced tools
Comparing version 0.0.1 to 0.0.2
0.0.2 / 2014-01-25 | ||
================== | ||
* package: be lax on the `proxy-agent` version | ||
* index: remove incomplete support for the `code` property | ||
0.0.1 / 2014-01-12 | ||
@@ -3,0 +9,0 @@ ================== |
22
index.js
@@ -97,2 +97,6 @@ | ||
// kick things off by attempting to (re)load the contents of the PAC file URI | ||
this.loadPacFile(onPacFile); | ||
// loadPacFile() callback function | ||
function onPacFile (err, code) { | ||
@@ -114,5 +118,2 @@ if (err) { | ||
} | ||
// kick things off by checking if we need to regenerate the Resolver | ||
this.loadPacFile(onPacFile); | ||
}; | ||
@@ -131,13 +132,8 @@ | ||
if (this.code) { | ||
// code was directly passed in | ||
fn(null, this.code); | ||
} else { | ||
// delegate out to the `get-uri` module | ||
var opts = {}; | ||
if (this.cache) { | ||
opts.cache = this.cache; | ||
} | ||
getUri(this.uri, opts, onstream); | ||
// delegate out to the `get-uri` module | ||
var opts = {}; | ||
if (this.cache) { | ||
opts.cache = this.cache; | ||
} | ||
getUri(this.uri, opts, onstream); | ||
@@ -144,0 +140,0 @@ function onstream (err, rs) { |
{ | ||
"name": "pac-proxy-agent", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A PAC file proxy `http.Agent` implementation for HTTP", | ||
@@ -33,3 +33,3 @@ "main": "index.js", | ||
"pac-resolver": "~0.0.2", | ||
"proxy-agent": "~1.0.0", | ||
"proxy-agent": "1", | ||
"get-uri": "~0.1.0", | ||
@@ -36,0 +36,0 @@ "stream-to-array": "~1.0.0", |
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
11126
218
+ Addedip@1.1.9(transitive)
+ Addedlru-cache@2.5.2(transitive)
+ Addedproxy-agent@1.1.1(transitive)
+ Addedsmart-buffer@1.1.15(transitive)
+ Addedsocks@1.1.10(transitive)
+ Addedsocks-proxy-agent@1.0.2(transitive)
- Removeddebug@2.2.0(transitive)
- Removedlru-cache@2.3.1(transitive)
- Removedms@0.7.1(transitive)
- Removedproxy-agent@1.0.0(transitive)
- Removedrainbowsocks@0.1.3(transitive)
- Removedsocks-proxy-agent@0.1.2(transitive)
Updatedproxy-agent@1