http-proxy-middleware
Advanced tools
Comparing version 1.1.1-alpha.1 to 1.1.1
# 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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
64745
5
795
0
- Removedcamelcase@^6.2.0
- Removedcamelcase@6.3.0(transitive)