Socket
Socket
Sign inDemoInstall

http-proxy-middleware

Package Overview
Dependencies
7
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.0.5

lib/utils/proxy-error.js

6

index.js

@@ -9,3 +9,3 @@ var httpProxy = require('http-proxy');

console.log('[http-proxy-middleware] Proxy created:', context, proxyOptions.target);
console.log('[HPM] Proxy created:', context, proxyOptions.target);

@@ -16,2 +16,6 @@ if (proxyOptions.proxyHost) {

proxy.on('error', function (err, req, res) {
utils.proxyError(err, req, res, proxyOptions);
});
return fnProxyMiddleWare;

@@ -18,0 +22,0 @@

5

lib/utils.js
module.exports = {
hasContext: require('./utils/has-context'),
proxyReqHost: require('./utils/proxy-req-host')
hasContext : require('./utils/has-context'),
proxyReqHost : require('./utils/proxy-req-host'),
proxyError : require('./utils/proxy-error')
}
{
"name": "http-proxy-middleware",
"version": "0.0.4",
"version": "0.0.5",
"description": "http-proxy middleware for connect",

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc