+1
-4
@@ -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" |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
-50%25340
-0.31%668
-0.3%