http-proxy-middleware
Advanced tools
Comparing version 1.0.1 to 1.0.2
# Changelog | ||
## [v1.0.2](https://github.com/chimurai/http-proxy-middleware/releases/tag/v1.0.2) | ||
- fix(router): handle rejected promise in custom router ([#410](https://github.com/chimurai/http-proxy-middleware/pull/413)) ([bforbis](https://github.com/bforbis)) | ||
## [v1.0.1](https://github.com/chimurai/http-proxy-middleware/releases/tag/v1.0.1) | ||
@@ -4,0 +8,0 @@ |
@@ -27,4 +27,9 @@ "use strict"; | ||
if (this.shouldProxy(this.config.context, req)) { | ||
const activeProxyOptions = yield this.prepareProxyRequest(req); | ||
this.proxy.web(req, res, activeProxyOptions); | ||
try { | ||
const activeProxyOptions = yield this.prepareProxyRequest(req); | ||
this.proxy.web(req, res, activeProxyOptions); | ||
} | ||
catch (err) { | ||
next(err); | ||
} | ||
} | ||
@@ -31,0 +36,0 @@ else { |
{ | ||
"name": "http-proxy-middleware", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "The one-liner node.js proxy middleware for connect, express and browser-sync", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
208382
757