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

camouflage-rewrite

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

camouflage-rewrite - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

4

index.js

@@ -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)

10

package.json
{
"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"
}
}
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