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

routr

Package Overview
Dependencies
Maintainers
5
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

routr - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

lib/router.js

@@ -121,3 +121,3 @@ /**

// name if the path was an array.
if (pathMatches[i+1] !== undefined || routeParams[self.keys[i].name] === undefined){
if (pathMatches[i+1] !== undefined && routeParams[self.keys[i].name] === undefined){
// Because pathToRegexp encodeURIComponent params values, it is necessary

@@ -124,0 +124,0 @@ // to decode when reading from URL

{
"name": "routr",
"version": "2.0.0",
"version": "2.0.1",
"description": "A router for both server and client",

@@ -5,0 +5,0 @@ "main": "index.js",

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