@tanstack/react-router
Advanced tools
Comparing version 1.63.1 to 1.63.2
@@ -174,2 +174,5 @@ import { last } from "./utils.js"; | ||
function matchByPath(basepath, from, matchLocation) { | ||
if (basepath !== "/" && !from.startsWith(basepath)) { | ||
return void 0; | ||
} | ||
from = removeBasepath(basepath, from); | ||
@@ -176,0 +179,0 @@ const to = removeBasepath(basepath, `${matchLocation.to ?? "$"}`); |
{ | ||
"name": "@tanstack/react-router", | ||
"version": "1.63.1", | ||
"version": "1.63.2", | ||
"description": "Modern and scalable routing for React applications", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
@@ -301,2 +301,6 @@ import { last } from './utils' | ||
): Record<string, string> | undefined { | ||
// check basepath first | ||
if (basepath !== '/' && !from.startsWith(basepath)) { | ||
return undefined | ||
} | ||
// Remove the base path from the pathname | ||
@@ -303,0 +307,0 @@ from = removeBasepath(basepath, from) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1523596
19104