@symbo.ls/router 2.32.22 → 2.32.26

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/index.js +2 -2
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -51,7 +51,7 @@ const defaultOptions = {
51
51
  scrollToOptions: { behavior: 'smooth' }
52
52
  }
53
53
 
54
- let lastElement = {}
54
+ const lastElement = {}
55
55
 
56
56
  // eslint-disable-next-line default-param-last
57
57
  export async function router(path = '/', el, state = {}, passedOptions = {}) {
@@ -67,7 +67,7 @@ export async function router(path = '/', el, state = {}, passedOptions = {}) {
67
67
  options.event.stopPropagation()
68
68
  }
69
69
  element.call('closeModal')
70
- if (options.event) options.event.preventDefault()
70
+ if (options.event) {options.event.preventDefault()}
71
71
  }
72
72
 
73
73
  const urlObj = new options.window.URL(options.window.location.origin + path)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/router",
3
- "version": "2.32.22",
3
+ "version": "2.32.26",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -8,8 +8,8 @@
8
8
  "vpatch": "npm version patch && npm publish --access public"
9
9
  },
10
10
  "dependencies": {
11
- "@domql/utils": "^2.32.22"
11
+ "@domql/utils": "^2.32.26"
12
12
  },
13
- "gitHead": "937da946c8fb840d8282c986c50330584573551a",
13
+ "gitHead": "66d87154b447b4b96fdc5030ab372fbfeb4547f3",
14
14
  "source": "index.js"
15
15
  }