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

express-redirect

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-redirect - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

3

lib/compile.js

@@ -16,3 +16,4 @@ // module dependencies

parsed += "/";
if(key.name in params)
if(params[key.name])
parsed += params[key.name];

@@ -19,0 +20,0 @@ else if(key.def)

@@ -21,3 +21,6 @@ // module dependencies

this.all(route, function(req, res, next) {
res.redirect(status, compile(req.params, target));
var compiled = compile(req.params, target);
if(compiled != req.url) res.redirect(status, compiled);
else next();
});

@@ -24,0 +27,0 @@

{
"name": "express-redirect",
"description": "Flexible redirection plugin",
"version": "1.0.1",
"version": "1.0.2",
"author": "Jan Buschtöns <buschtoens@gmail.com>",

@@ -6,0 +6,0 @@ "contributors": [

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