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 0.0.5-pre to 0.1.0-pre

test/fixtures/parsePath.json

2

lib/compile.js
// expose compile
module.exports = compile;
// compile a matching params and target
// compile matching params and target
function compile(params, target) {

@@ -6,0 +6,0 @@ if(typeof target.elements == "string") return target.elements;

@@ -0,1 +1,4 @@

// module dependencies
var util = require("util");
// expose pecompiler

@@ -2,0 +5,0 @@ module.exports = precompile;

// module dependencies
var util = require("util")
, parsePath = require("./parsePath")
var parsePath = require("./parsePath")
, precompile = require("./precompile")

@@ -11,4 +10,4 @@ , compile = require("./compile");

// mount the redirect method
function plugin() {
this.redirect = redirect;
function plugin(app) {
app.redirect = redirect;
}

@@ -23,4 +22,4 @@

this.all(route, function(req, res, next) {
res.redirect(status, compile(req.params, target));
});
res.redirect(status, compile(req.params, target));
});
}
{
"name": "express-redirect",
"description": "Flexible redirection plugin",
"version": "0.0.5-pre",
"version": "0.1.0-pre",
"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