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.12.0 to 0.13.0

5

index.js

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

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

@@ -12,0 +17,0 @@ options.hostname = options.hostname;

2

package.json
{
"name": "proxy-middleware",
"version": "0.12.0",
"version": "0.13.0",
"description": "http(s) proxy as connect middleware",

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

@@ -13,2 +13,5 @@ [![Build Status](https://secure.travis-ci.org/andrewrk/node-proxy-middleware.png)](http://travis-ci.org/andrewrk/node-proxy-middleware)

// now requests to '/api/x/y/z' are proxied to 'https://example.com/endpoint/x/y/z'
//same as example above but also uses a short hand string only parameter
app.use('/api-string-only', proxy('https://example.com/endpoint'));
```

@@ -15,0 +18,0 @@

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