@keenmate/svelte-spa-router 1.0.7 → 1.0.8

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.
Files changed (2) hide show
  1. package/Router.svelte +10 -10
  2. package/package.json +6 -4
package/Router.svelte CHANGED
@@ -43,7 +43,7 @@
43
43
  if (window.location.search) {
44
44
  querystring = window.location.search.substring(1)
45
45
  }
46
- console.log("SPA router getting location", window.location, location, querystring)
46
+ // console.log("SPA router getting location", window.location, location, querystring)
47
47
  }
48
48
 
49
49
  return {location, querystring}
@@ -62,7 +62,7 @@
62
62
  SvelteSPARouterNavigationEvent
63
63
  // console.log("Setting loc")
64
64
  const update = () => {
65
- console.log("Updating location", getLocation())
65
+ // console.log("Updating location", getLocation())
66
66
  set(getLocation())
67
67
  }
68
68
  window.addEventListener(eventName, update, false)
@@ -174,14 +174,14 @@
174
174
  location_ = joinPaths(basePath, location_)
175
175
  }
176
176
 
177
- console.log(
178
- "Before navigate",
179
- window.history,
180
- doNavigate,
181
- newHistoryState,
182
- undefined,
183
- location_
184
- )
177
+ // console.log(
178
+ // "Before navigate",
179
+ // window.history,
180
+ // doNavigate,
181
+ // newHistoryState,
182
+ // undefined,
183
+ // location_
184
+ // )
185
185
  // window.history.pushState(newHistoryState, undefined, location)
186
186
  doNavigate(newHistoryState, undefined, location_)
187
187
  // }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@keenmate/svelte-spa-router",
3
3
  "private": false,
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "description": "Router for SPAs using Svelte 4",
6
6
  "main": "Router.svelte",
7
7
  "svelte": "Router.svelte",
@@ -44,12 +44,14 @@
44
44
  "spa"
45
45
  ],
46
46
  "author": "Alessandro Segala (@ItalyPaleAle)",
47
+ "contributors": [
48
+ "Filip Jakab (@FilipJakab)"
49
+ ],
47
50
  "license": "MIT",
48
- "funding": "https://github.com/sponsors/ItalyPaleAle",
49
51
  "bugs": {
50
- "url": "https://github.com/ItalyPaleAle/svelte-spa-router/issues"
52
+ "url": "https://github.com/KeenMate/svelte-spa-router/issues"
51
53
  },
52
- "homepage": "https://github.com/ItalyPaleAle/svelte-spa-router#readme",
54
+ "homepage": "https://github.com/KeenMate/svelte-spa-router#readme",
53
55
  "dependencies": {
54
56
  "regexparam": "2.0.2"
55
57
  },