@nubase/frontend 0.1.32 → 0.1.33

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/dist/index.mjs CHANGED
@@ -15420,19 +15420,21 @@ var NavigationHistoryTracker = class {
15420
15420
  this.addEntry(location);
15421
15421
  }
15422
15422
  addEntry(location) {
15423
- const searchParams = this.parseSearchParams(location.search);
15423
+ const searchString = typeof location.search === "string" ? location.search : location.searchStr || "";
15424
+ const searchParams = this.parseSearchParams(searchString);
15424
15425
  const title = this.formatTitle(location.pathname, searchParams);
15425
- const entryId = `${location.pathname}${location.search}${location.hash}`;
15426
+ const hash = location.hash || "";
15427
+ const entryId = `${location.pathname}${searchString}${hash}`;
15426
15428
  if (this.lastEntryId === entryId) {
15427
15429
  return;
15428
15430
  }
15429
15431
  const entry = {
15430
15432
  id: `history-${this.historyIdCounter++}`,
15431
- path: `${location.pathname}${location.search}${location.hash}`,
15433
+ path: `${location.pathname}${searchString}${hash}`,
15432
15434
  pathname: location.pathname,
15433
- search: location.search || "",
15435
+ search: searchString,
15434
15436
  searchParams,
15435
- hash: location.hash || "",
15437
+ hash,
15436
15438
  timestamp: Date.now(),
15437
15439
  title
15438
15440
  };