New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-slashes

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-slashes - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

dist/index.js

@@ -79,3 +79,3 @@ module.exports =

.replace(/\/((?:\?.*)?)$/, '$1') // remove trailing slash while preserving querystring
.replace(/^([^\/]|$)/, '/$1'); // ensure url starts with a slash
.replace(/^([^/]|$)/, '/$1'); // ensure url starts with a slash
if (req.url !== redirectUrl && req.url !== '/') {

@@ -82,0 +82,0 @@ res.redirect(redirectUrl);

{
"name": "express-slashes",
"version": "0.1.0",
"version": "0.1.1",
"description": "Express middleware that removes trailing slashes",

@@ -5,0 +5,0 @@ "license": "MIT",

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