Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

http-proxy

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-proxy - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

11

lib/http-proxy/index.js

@@ -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 @@ /**

2

package.json
{
"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>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc