Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "compa55", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Routable data interface library", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
{ | ||
"name": "compa55", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Routable data interface library", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -158,2 +158,5 @@ 'use strict'; | ||
const handle = function (req, res, next) { | ||
// Preserve the current url to write back after handle middleware | ||
const preserveUrl = req.url; | ||
// Remove left middleware path of the url | ||
@@ -165,3 +168,3 @@ req.url = req.url.replace(route.regexp, ''); | ||
// Write back original url | ||
req.url = req.originalUrl; | ||
req.url = preserveUrl; | ||
@@ -168,0 +171,0 @@ // Call original next |
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
17006
455