http-proxy
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -29,5 +29,11 @@ var httpProxy = exports, | ||
function createRightProxy(type) { | ||
var webPasses = Object.keys(web).map(function(pass) { | ||
return web[pass]; | ||
}); | ||
var wsPasses = Object.keys(ws).map(function(pass) { | ||
return ws[pass]; | ||
}); | ||
return function(options) { | ||
return function(req, res /*, [head], [opts] */) { | ||
var passes = (type === 'ws') ? this.wsPasses : this.webPasses, | ||
var passes = (type === 'ws') ? (this.wsPasses || wsPasses) : (this.webPasses || webPasses), | ||
args = [].slice.call(arguments), | ||
@@ -66,4 +72,5 @@ cntr = args.length - 1, | ||
}); | ||
if(typeof this.emit === 'undefined' && !cbl) { throw new Error("You need to pass a callback to handle errors") } | ||
for(var i=0; i < passes.length; i++) { | ||
@@ -70,0 +77,0 @@ /** |
{ | ||
"name" : "http-proxy", | ||
"version" : "1.0.0", | ||
"version" : "1.0.1", | ||
"description" : "HTTP proxying for the masses", | ||
@@ -5,0 +5,0 @@ "author": "Nodejitsu Inc. <info@nodejitsu.com>", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
161348
2641
37