@symbo.ls/create 2.28.48 → 2.28.50
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.
- package/dist/cjs/router.js +2 -2
- package/dist/esm/router.js +2 -2
- package/package.json +13 -13
- package/src/router.js +2 -2
package/dist/cjs/router.js
CHANGED
|
@@ -62,14 +62,14 @@ const popStateRouter = (element, context) => {
|
|
|
62
62
|
const routerOptions = context.router || DEFAULT_ROUTING_OPTIONS;
|
|
63
63
|
if (!routerOptions.popState) return;
|
|
64
64
|
const router = context.utils && context.utils.router ? context.utils.router : import_router.router;
|
|
65
|
-
import_utils.window.onpopstate = async (
|
|
65
|
+
import_utils.window.onpopstate = async (event) => {
|
|
66
66
|
const { pathname, search, hash } = import_utils.window.location;
|
|
67
67
|
const url = pathname + search + hash;
|
|
68
68
|
await router(
|
|
69
69
|
url,
|
|
70
70
|
element,
|
|
71
71
|
{},
|
|
72
|
-
{ pushState: false, scrollToTop: false, level: 0 }
|
|
72
|
+
{ pushState: false, scrollToTop: false, level: 0, event }
|
|
73
73
|
);
|
|
74
74
|
};
|
|
75
75
|
};
|
package/dist/esm/router.js
CHANGED
|
@@ -37,14 +37,14 @@ const popStateRouter = (element, context) => {
|
|
|
37
37
|
const routerOptions = context.router || DEFAULT_ROUTING_OPTIONS;
|
|
38
38
|
if (!routerOptions.popState) return;
|
|
39
39
|
const router = context.utils && context.utils.router ? context.utils.router : defaultRouter;
|
|
40
|
-
window.onpopstate = async (
|
|
40
|
+
window.onpopstate = async (event) => {
|
|
41
41
|
const { pathname, search, hash } = window.location;
|
|
42
42
|
const url = pathname + search + hash;
|
|
43
43
|
await router(
|
|
44
44
|
url,
|
|
45
45
|
element,
|
|
46
46
|
{},
|
|
47
|
-
{ pushState: false, scrollToTop: false, level: 0 }
|
|
47
|
+
{ pushState: false, scrollToTop: false, level: 0, event }
|
|
48
48
|
);
|
|
49
49
|
};
|
|
50
50
|
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/create",
|
|
3
|
-
"version": "2.28.
|
|
3
|
+
"version": "2.28.50",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "1118b1967af5775fd23520e21e543c4530b97864",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"module": "src/index.js",
|
|
8
8
|
"main": "src/index.js",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"prepublish": "npm run build; npm run copy:package:cjs"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@domql/emotion": "^2.28.
|
|
33
|
-
"@domql/event": "^2.28.
|
|
34
|
-
"@domql/report": "^2.28.
|
|
35
|
-
"@domql/router": "^2.28.
|
|
36
|
-
"@symbo.ls/fetch": "^2.28.
|
|
37
|
-
"@symbo.ls/init": "^2.28.
|
|
38
|
-
"@symbo.ls/scratch": "^2.28.
|
|
39
|
-
"@symbo.ls/sync": "^2.28.
|
|
40
|
-
"@symbo.ls/uikit": "^2.28.
|
|
41
|
-
"@symbo.ls/utils": "^2.28.
|
|
42
|
-
"domql": "^2.28.
|
|
32
|
+
"@domql/emotion": "^2.28.50",
|
|
33
|
+
"@domql/event": "^2.28.50",
|
|
34
|
+
"@domql/report": "^2.28.50",
|
|
35
|
+
"@domql/router": "^2.28.50",
|
|
36
|
+
"@symbo.ls/fetch": "^2.28.50",
|
|
37
|
+
"@symbo.ls/init": "^2.28.50",
|
|
38
|
+
"@symbo.ls/scratch": "^2.28.50",
|
|
39
|
+
"@symbo.ls/sync": "^2.28.50",
|
|
40
|
+
"@symbo.ls/uikit": "^2.28.50",
|
|
41
|
+
"@symbo.ls/utils": "^2.28.50",
|
|
42
|
+
"domql": "^2.28.50"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@babel/core": "^7.26.0"
|
package/src/router.js
CHANGED
|
@@ -49,14 +49,14 @@ export const popStateRouter = (element, context) => {
|
|
|
49
49
|
if (!routerOptions.popState) return
|
|
50
50
|
const router =
|
|
51
51
|
context.utils && context.utils.router ? context.utils.router : defaultRouter
|
|
52
|
-
window.onpopstate = async
|
|
52
|
+
window.onpopstate = async event => {
|
|
53
53
|
const { pathname, search, hash } = window.location
|
|
54
54
|
const url = pathname + search + hash
|
|
55
55
|
await router(
|
|
56
56
|
url,
|
|
57
57
|
element,
|
|
58
58
|
{},
|
|
59
|
-
{ pushState: false, scrollToTop: false, level: 0 }
|
|
59
|
+
{ pushState: false, scrollToTop: false, level: 0, event }
|
|
60
60
|
)
|
|
61
61
|
}
|
|
62
62
|
}
|