@jsenv/navi 0.14.5 → 0.14.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7765,7 +7765,16 @@ const createRoute = (urlPatternInput) => {
7765
7765
  };
7766
7766
 
7767
7767
  route.matchesParams = (otherParams) => {
7768
- const params = route.params;
7768
+ let params = route.params;
7769
+ if (params) {
7770
+ const paramsWithoutWildcards = {};
7771
+ for (const key of Object.keys(params)) {
7772
+ if (!Number.isInteger(Number(key))) {
7773
+ paramsWithoutWildcards[key] = params[key];
7774
+ }
7775
+ }
7776
+ params = paramsWithoutWildcards;
7777
+ }
7769
7778
  const paramsIsFalsyOrEmpty = !params || Object.keys(params).length === 0;
7770
7779
  const otherParamsFalsyOrEmpty =
7771
7780
  !otherParams || Object.keys(otherParams).length === 0;
@@ -7775,13 +7784,7 @@ const createRoute = (urlPatternInput) => {
7775
7784
  if (otherParamsFalsyOrEmpty) {
7776
7785
  return false;
7777
7786
  }
7778
- const paramsWithoutWildcards = {};
7779
- for (const key of Object.keys(params)) {
7780
- if (!Number.isInteger(Number(key))) {
7781
- paramsWithoutWildcards[key] = params[key];
7782
- }
7783
- }
7784
- return compareTwoJsValues(paramsWithoutWildcards, otherParams);
7787
+ return compareTwoJsValues(params, otherParams);
7785
7788
  };
7786
7789
 
7787
7790
  /**