Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

wouter

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wouter - npm Package Compare versions

Comparing version
3.0.0-rc.3
to
3.0.0
+1
-4
esm/index.js

@@ -92,5 +92,2 @@ import { parse } from 'regexparam';

const matchRoute = (parser, route, path, loose) => {
// falsy patterns mean this route "always matches"
if (!route) return [true, {}];
// when parser is in "loose" mode, `$base` is equal to the

@@ -100,3 +97,3 @@ // first part of the route that matches the pattern

// we use this for route nesting
const { pattern, keys } = parser(route, loose);
const { pattern, keys } = parser(route || "*", loose);
const [$base, ...matches] = pattern.exec(path) || [];

@@ -103,0 +100,0 @@

+2
-2
{
"name": "wouter",
"version": "3.0.0-rc.3",
"version": "3.0.0",
"description": "Minimalist-friendly ~1.5KB router for React",

@@ -64,3 +64,3 @@ "type": "module",

},
"license": "ISC",
"license": "Unlicense",
"peerDependencies": {

@@ -67,0 +67,0 @@ "react": ">=16.8.0"