camouflage-rewrite
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -78,2 +78,6 @@ 'use strict' | ||
// allow other middlewares to access the original address (by using `res.locals.camouflageRewriteOriginalUrl`) | ||
absoluteUrl.attach(req) | ||
res.locals.camouflageRewriteOriginalUrl = req.absoluteUrl() | ||
// rewrite request parameters | ||
@@ -80,0 +84,0 @@ rewrite(options, req) |
{ | ||
"name": "camouflage-rewrite", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "Express middleware to rewrite a request to a different URL and optional also replace it in the response content", | ||
@@ -29,7 +29,7 @@ "main": "index.js", | ||
"devDependencies": { | ||
"express": "^4.17.3", | ||
"mocha": "^9.2.2", | ||
"standard": "^16.0.4", | ||
"supertest": "^6.2.2" | ||
"express": "^4.18.2", | ||
"mocha": "^10.2.0", | ||
"standard": "^17.0.0", | ||
"supertest": "^6.3.3" | ||
} | ||
} |
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
17370
457