svelte-navigator-lite 2.2.0 → 2.2.1

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.
@@ -70,7 +70,7 @@ function _createRouter() {
70
70
  get params() { return state.params; },
71
71
  get searchParams() { return state.searchParams; },
72
72
  get notFound() { return state.notFound; },
73
- get meta() { return compiled.find(r => r.name === state.current)?.meta; },
73
+ get meta() { const name = state.current; return compiled.find(r => r.name === name)?.meta; },
74
74
  is(route) { return state.current === route; },
75
75
  matches(routes) { return routes.includes(state.current); },
76
76
  parseUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-navigator-lite",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "A lightweight router for Svelte 5",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",