superagent-proxy
Advanced tools
Comparing version 0.3.2 to 0.4.0
0.4.0 / 2015-07-15 | ||
================== | ||
* update to "proxy-agent" v2 API | ||
* use %o debug() formatter | ||
0.3.2 / 2015-05-18 | ||
@@ -3,0 +9,0 @@ ================== |
11
index.js
@@ -62,3 +62,3 @@ | ||
function proxy (uri) { | ||
debug('Request#proxy(%j)', uri); | ||
debug('Request#proxy(%o)', uri); | ||
@@ -71,9 +71,4 @@ // we need to observe the `url` field from now on... Superagent sometimes | ||
// determine if the `http` or `https` node-core module are going to be used. | ||
// This information is useful to the proxy agents being created | ||
var secure = 0 == this.url.indexOf('https:'); | ||
debug('url is secure? %s', secure); | ||
// attempt to get a proxying `http.Agent` instance | ||
var agent = proxyAgent(uri, secure); | ||
var agent = proxyAgent(uri); | ||
@@ -130,5 +125,5 @@ // if we have an `http.Agent` instance then call the .agent() function | ||
function setUrl (v) { | ||
debug('set `.url`: %s', v); | ||
debug('set `.url`: %o', v); | ||
this._url = v; | ||
proxy.call(this, this._proxyUri); | ||
} |
{ | ||
"name": "superagent-proxy", | ||
"version": "0.3.2", | ||
"version": "0.4.0", | ||
"description": "`Request#proxy(uri)` superagent extension", | ||
@@ -26,4 +26,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"proxy-agent": "1", | ||
"debug": "~2.2.0" | ||
"proxy-agent": "2", | ||
"debug": "2" | ||
}, | ||
@@ -34,5 +34,5 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"mocha": "~1.12.0", | ||
"mocha": "2", | ||
"superagent": ">= 0.15.4 && < 2" | ||
} | ||
} |
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
11203
239
+ Addedagent-base@4.3.0(transitive)
+ Addedbytes@3.1.2(transitive)
+ Addedco@4.6.0(transitive)
+ Addeddata-uri-to-buffer@1.2.0(transitive)
+ Addeddebug@2.6.93.1.03.2.7(transitive)
+ Addeddepd@2.0.0(transitive)
+ Addedes6-promise@4.2.8(transitive)
+ Addedes6-promisify@5.0.0(transitive)
+ Addedfile-uri-to-path@1.0.0(transitive)
+ Addedget-uri@2.0.4(transitive)
+ Addedhttp-errors@2.0.0(transitive)
+ Addedhttp-proxy-agent@2.1.0(transitive)
+ Addedhttps-proxy-agent@2.2.4(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedms@2.0.02.1.3(transitive)
+ Addedpac-proxy-agent@2.0.2(transitive)
+ Addedpac-resolver@3.0.0(transitive)
+ Addedproxy-agent@2.3.1(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedraw-body@2.5.2(transitive)
+ Addedsetprototypeof@1.2.0(transitive)
+ Addedsocks-proxy-agent@3.0.1(transitive)
+ Addedstatuses@2.0.1(transitive)
+ Addedtoidentifier@1.0.1(transitive)
+ Addedunpipe@1.0.0(transitive)
+ Addedyallist@2.1.2(transitive)
- Removedacorn@5.7.4(transitive)
- Removedagent-base@1.0.2(transitive)
- Removedalign-text@0.1.4(transitive)
- Removedalter@0.2.0(transitive)
- Removedast-traverse@0.1.1(transitive)
- Removedast-types@0.8.120.9.6(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbreakable@1.0.0(transitive)
- Removedcamelcase@1.2.1(transitive)
- Removedcenter-align@0.1.3(transitive)
- Removedcliui@2.1.0(transitive)
- Removedco@3.0.6(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcommoner@0.10.8(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddata-uri-to-buffer@0.0.4(transitive)
- Removeddebug@2.2.0(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removeddefined@1.0.1(transitive)
- Removeddefs@1.1.1(transitive)
- Removeddetective@4.7.1(transitive)
- Removedesprima-fb@15001.1001.0-dev-harmony-fb(transitive)
- Removedextend@1.2.1(transitive)
- Removedfile-uri-to-path@0.0.2(transitive)
- Removedget-uri@0.1.4(transitive)
- Removedglob@5.0.15(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhttp-proxy-agent@0.2.7(transitive)
- Removedhttps-proxy-agent@0.3.6(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinvert-kv@1.0.0(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedkind-of@3.2.2(transitive)
- Removedlazy-cache@1.0.4(transitive)
- Removedlcid@1.0.0(transitive)
- Removedlongest@1.0.1(transitive)
- Removedlru-cache@2.5.2(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedms@0.7.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedos-locale@1.4.0(transitive)
- Removedpac-proxy-agent@0.2.0(transitive)
- Removedpac-resolver@1.2.6(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedprivate@0.1.8(transitive)
- Removedproxy-agent@1.1.1(transitive)
- Removedq@1.5.1(transitive)
- Removedrecast@0.10.330.11.23(transitive)
- Removedregenerator@0.8.46(transitive)
- Removedregenerator-runtime@0.9.6(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedright-align@0.1.3(transitive)
- Removedsimple-fmt@0.1.0(transitive)
- Removedsimple-is@0.2.0(transitive)
- Removedsocks-proxy-agent@1.0.2(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedstable@0.1.8(transitive)
- Removedstream-to-array@1.0.0(transitive)
- Removedstringmap@0.2.2(transitive)
- Removedstringset@0.2.1(transitive)
- Removedthrough@2.3.8(transitive)
- Removedtryor@0.1.2(transitive)
- Removedwindow-size@0.1.4(transitive)
- Removedwordwrap@0.0.2(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedy18n@3.2.2(transitive)
- Removedyargs@3.27.0(transitive)
Updateddebug@2
Updatedproxy-agent@2