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

proxy-middleware

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxy-middleware - npm Package Compare versions

Comparing version 0.13.0 to 0.13.1

8

index.js

@@ -7,2 +7,6 @@ var os = require('os');

module.exports = function proxyMiddleware(options) {
//enable ability to quickly pass a url for shorthand setup
if(typeof options === 'string'){
options = require('url').parse(options);
}

@@ -12,6 +16,2 @@ var httpLib = options.protocol === 'https:' ? https : http;

//enable ability to quickly pass a url for shorthand setup
if(typeof options === 'string'){
options = require('url').parse(options);
}
options = options || {};

@@ -18,0 +18,0 @@ options.hostname = options.hostname;

{
"name": "proxy-middleware",
"version": "0.13.0",
"version": "0.13.1",
"description": "http(s) proxy as connect middleware",

@@ -5,0 +5,0 @@ "main": "index.js",

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