@keenmate/svelte-spa-router 2.0.0 → 2.0.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.
Files changed (2) hide show
  1. package/Router.svelte +5 -5
  2. package/package.json +1 -1
package/Router.svelte CHANGED
@@ -218,11 +218,11 @@
218
218
  throw Error("Action 'link' can only be used with <a> tags")
219
219
  }
220
220
 
221
- const self = {
222
- update(updated) {
223
- updated = linkOpts(updated)
224
- updateLink.call(this, node, updated)
225
- }
221
+ const self = {}
222
+
223
+ self.update = function(updated) {
224
+ updated = linkOpts(updated)
225
+ updateLink.call(self, node, updated)
226
226
  }
227
227
 
228
228
  updateLink.call(self, node, opts)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@keenmate/svelte-spa-router",
3
3
  "private": false,
4
- "version": "2.0.0",
4
+ "version": "2.0.1",
5
5
  "description": "Router for SPAs using Svelte 4",
6
6
  "main": "Router.svelte",
7
7
  "svelte": "Router.svelte",