@symbo.ls/create 2.10.229 → 2.10.230
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/index.js +2 -3
- package/package.json +2 -2
- package/router.js +3 -2
package/index.js
CHANGED
|
@@ -34,7 +34,7 @@ export const create = async (App, options = DEFAULT_CREATE_OPTIONS, optionsExter
|
|
|
34
34
|
const doc = options.parent || options.document || document
|
|
35
35
|
const [scratchSystem, emotion, registry] = initEmotion(key, options)
|
|
36
36
|
|
|
37
|
-
const router = initRouter(App, options)
|
|
37
|
+
const router = initRouter(App, options) // eslint-disable-line
|
|
38
38
|
|
|
39
39
|
const state = options.state || {}
|
|
40
40
|
const pages = options.pages || {}
|
|
@@ -111,7 +111,7 @@ export const createSync = (App, options = DEFAULT_CREATE_OPTIONS, optionsExterna
|
|
|
111
111
|
document: doc
|
|
112
112
|
}
|
|
113
113
|
}, doc.body, key, {
|
|
114
|
-
//extend: [uikit.Box],
|
|
114
|
+
// extend: [uikit.Box],
|
|
115
115
|
verbose: options.verbose,
|
|
116
116
|
...options.domqlOptions
|
|
117
117
|
})
|
|
@@ -120,4 +120,3 @@ export const createSync = (App, options = DEFAULT_CREATE_OPTIONS, optionsExterna
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
export default create
|
|
123
|
-
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/create",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.230",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "cbcc7a5d57abf1152acc980d9b699b61fdb37516",
|
|
6
6
|
"source": "index.js",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"dependencies": {
|
package/router.js
CHANGED
|
@@ -16,7 +16,7 @@ export const initRouter = (root, options) => {
|
|
|
16
16
|
if (routerOptions === false) return
|
|
17
17
|
if (routerOptions === true) routerOptions = DEFAULT_ROUTING_OPTIONS
|
|
18
18
|
|
|
19
|
-
const router = options.snippets && options.snippets.router || defaultRouter
|
|
19
|
+
const router = options.snippets && (options.snippets.router || defaultRouter)
|
|
20
20
|
|
|
21
21
|
const onRender = (el, s) => {
|
|
22
22
|
if (el.routes) router(el, window.location.pathname, {})
|
|
@@ -47,6 +47,7 @@ export const popStateRouter = (root, options) => {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export const injectRouterInLinkComponent = (routerOptions) => {
|
|
50
|
-
if (routerOptions.injectRouterInLinkComponent)
|
|
50
|
+
if (routerOptions.injectRouterInLinkComponent) {
|
|
51
51
|
return deepMerge(Link, RouterLink)
|
|
52
|
+
}
|
|
52
53
|
}
|