@tanstack/router-devtools 0.0.1-beta.269 → 0.0.1-beta.270

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.
@@ -310,15 +310,6 @@
310
310
  }
311
311
  return updater;
312
312
  }
313
- function trimPathLeft(path) {
314
- return path === '/' ? path : path.replace(/^\/{1,}/, '');
315
- }
316
- function trimPathRight(path) {
317
- return path === '/' ? path : path.replace(/\/{1,}$/, '');
318
- }
319
- function trimPath(path) {
320
- return trimPathRight(trimPathLeft(path));
321
- }
322
313
 
323
314
  const routerContext = /*#__PURE__*/React__namespace.createContext(null);
324
315
  if (typeof document !== 'undefined') {
@@ -334,6 +325,15 @@
334
325
  warning(value, 'useRouter must be used inside a <RouterProvider> component!');
335
326
  return value;
336
327
  }
328
+ function trimPathLeft(path) {
329
+ return path === '/' ? path : path.replace(/^\/{1,}/, '');
330
+ }
331
+ function trimPathRight(path) {
332
+ return path === '/' ? path : path.replace(/\/{1,}$/, '');
333
+ }
334
+ function trimPath(path) {
335
+ return trimPathRight(trimPathLeft(path));
336
+ }
337
337
  const sessionsStorage = typeof window !== 'undefined' && window.sessionStorage;
338
338
  let cache = sessionsStorage ? (() => {
339
339
  const storageKey = 'tsr-scroll-restoration-v2';