@tanstack/router-core 0.0.1-beta.34 → 0.0.1-beta.35
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.
- package/build/cjs/path.js +2 -2
- package/build/cjs/path.js.map +1 -1
- package/build/cjs/router.js +3 -4
- package/build/cjs/router.js.map +1 -1
- package/build/esm/index.js +5 -6
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +132 -132
- package/build/umd/index.development.js +5 -6
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/path.ts +2 -2
- package/src/router.ts +13 -4
|
@@ -1031,10 +1031,10 @@
|
|
|
1031
1031
|
}
|
|
1032
1032
|
function matchByPath(basepath, from, matchLocation) {
|
|
1033
1033
|
var _matchLocation$to;
|
|
1034
|
-
if (
|
|
1034
|
+
if (!from.startsWith(basepath)) {
|
|
1035
1035
|
return undefined;
|
|
1036
1036
|
}
|
|
1037
|
-
from =
|
|
1037
|
+
from = basepath != '/' ? from.substring(basepath.length) : from;
|
|
1038
1038
|
const baseSegments = parsePathname(from);
|
|
1039
1039
|
const to = "" + ((_matchLocation$to = matchLocation.to) != null ? _matchLocation$to : '*');
|
|
1040
1040
|
const routeSegments = parsePathname(to);
|
|
@@ -1752,10 +1752,8 @@
|
|
|
1752
1752
|
match
|
|
1753
1753
|
})));
|
|
1754
1754
|
} catch (err) {
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
}
|
|
1758
|
-
throw err;
|
|
1755
|
+
console.info(err);
|
|
1756
|
+
invariant(false, "A route's beforeLoad middleware failed! \uD83D\uDC46");
|
|
1759
1757
|
}
|
|
1760
1758
|
router.notify();
|
|
1761
1759
|
|
|
@@ -1904,6 +1902,7 @@
|
|
|
1904
1902
|
fuzzy,
|
|
1905
1903
|
caseSensitive: (_route$options$caseSe = route.options.caseSensitive) != null ? _route$options$caseSe : router.options.caseSensitive
|
|
1906
1904
|
});
|
|
1905
|
+
console.log(router.basepath, route.fullPath, fuzzy, pathname, matchParams);
|
|
1907
1906
|
if (matchParams) {
|
|
1908
1907
|
let parsedParams;
|
|
1909
1908
|
try {
|