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

http-proxy-middleware

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-proxy-middleware - npm Package Compare versions

Comparing version 1.1.1-alpha.1 to 1.1.1

4

CHANGELOG.md
# Changelog
## next
## [v1.1.1](https://github.com/chimurai/http-proxy-middleware/releases/tag/v1.1.1)
- fix(error handler): re-throw http-proxy missing target error ([#517](https://github.com/chimurai/http-proxy-middleware/pull/517))
- refactor(dependency): remove `camelcase`
- fix(option): optional `target` when `router` is used ([#512](https://github.com/chimurai/http-proxy-middleware/pull/512))

@@ -6,0 +8,0 @@

@@ -46,2 +46,6 @@ "use strict";

function defaultErrorHandler(err, req, res) {
// Re-throw error. Not recoverable since req & res are empty.
if (!req && !res) {
throw err; // "Error: Must provide a proper URL as target"
}
const host = req.headers && req.headers.host;

@@ -48,0 +52,0 @@ const code = err.code;

{
"name": "http-proxy-middleware",
"version": "1.1.1-alpha.1",
"version": "1.1.1",
"description": "The one-liner node.js proxy middleware for connect, express and browser-sync",

@@ -36,2 +36,3 @@ "main": "dist/index.js",

"express",
"fastify",
"polka",

@@ -82,3 +83,2 @@ "browser-sync",

"@types/http-proxy": "^1.17.5",
"camelcase": "^6.2.0",
"http-proxy": "^1.18.1",

@@ -85,0 +85,0 @@ "is-glob": "^4.0.1",

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