@symbo.ls/router 2.12.115 → 2.12.133

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 -4
  2. package/package.json +3 -5
package/index.js CHANGED
@@ -51,9 +51,8 @@ const defaultOptions = {
51
51
  scrollToOptions: { behavior: 'smooth' }
52
52
  }
53
53
 
54
- // eslint-disable-next-line func-style, complexity, default-param-last
54
+ // eslint-disable-next-line default-param-last
55
55
  export function router (path = '/', el, state = {}, passedOptions = {}) {
56
- // eslint-disable-next-line no-invalid-this
57
56
  const element = el || (this && this.getRoot())
58
57
  const options = merge(passedOptions, defaultOptions)
59
58
  lastLevel = options.level
@@ -89,7 +88,7 @@ export function router (path = '/', el, state = {}, passedOptions = {}) {
89
88
 
90
89
  if (
91
90
  !content ||
92
- (element.state.root.debugging && !options.allowRouterWhileInspect)
91
+ (element.getRootState('debugging') && !options.allowRouterWhileInspect)
93
92
  ) {
94
93
  return
95
94
  }
@@ -107,7 +106,6 @@ export function router (path = '/', el, state = {}, passedOptions = {}) {
107
106
  const isModal = Boolean(element.call('isModalRoute', pathname))
108
107
 
109
108
  if (pathChanged || !hashChanged) {
110
- // const rootRouteHasChanged = rootRoute !== element.state.rootRoute
111
109
  // || (!rootRouteHasChanged && { preventUpdateTriggerStateUpdate: true, preventContentUpdate: true })
112
110
 
113
111
  if (options.updateState) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/router",
3
- "version": "2.12.115",
3
+ "version": "2.12.133",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -8,10 +8,8 @@
8
8
  "vpatch": "npm version patch && npm publish --access public"
9
9
  },
10
10
  "dependencies": {
11
- "@domql/cookie": "latest",
12
- "@domql/utils": "latest",
13
- "@symbo.ls/auth-redirect": "latest"
11
+ "@domql/utils": "^2.5.0"
14
12
  },
15
- "gitHead": "f777ffc758150302112fa1fd4b7b852a15bc939e",
13
+ "gitHead": "fc0b191569e8b22072ea38ba308bef730d207e37",
16
14
  "source": "index.js"
17
15
  }