@symbo.ls/create 2.10.253 → 2.10.260
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/ferchOnCreate.js +1 -2
- package/options.js +1 -1
- package/package.json +2 -2
- package/router.js +2 -2
- package/syncExtend.js +1 -1
package/ferchOnCreate.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { fetchProject, fetchStateAsync } from
|
|
3
|
+
import { fetchProject, fetchStateAsync } from '@symbo.ls/fetch'
|
|
4
4
|
|
|
5
5
|
export const fetchSync = async (key, options) => {
|
|
6
6
|
if (key && options.editor) {
|
|
@@ -22,4 +22,3 @@ export const fetchAsync = (app, key, options, callback) => {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
|
package/options.js
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/create",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.260",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "93f6ad36b8a315f8ea72c47affb9a545507f4cc9",
|
|
6
6
|
"source": "index.js",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"dependencies": {
|
package/router.js
CHANGED
|
@@ -17,7 +17,7 @@ export const initRouter = (root, options) => {
|
|
|
17
17
|
if (routerOptions === false) return
|
|
18
18
|
if (routerOptions === true) routerOptions = DEFAULT_ROUTING_OPTIONS
|
|
19
19
|
|
|
20
|
-
const router = options.snippets && options.snippets.router
|
|
20
|
+
const router = (options.snippets && options.snippets.router) ? options.snippets.router : defaultRouter
|
|
21
21
|
|
|
22
22
|
const onRender = (el, s) => {
|
|
23
23
|
const { pathname, hash } = window.location
|
|
@@ -43,7 +43,7 @@ export const initRouter = (root, options) => {
|
|
|
43
43
|
export const popStateRouter = (root, options) => {
|
|
44
44
|
const routerOptions = options.routerOptions || DEFAULT_ROUTING_OPTIONS
|
|
45
45
|
if (!routerOptions.popState) return
|
|
46
|
-
const router = options.snippets &&
|
|
46
|
+
const router = (options.snippets && options.snippets.router) ? options.snippets.router : defaultRouter
|
|
47
47
|
const { pathname, hash } = window.location
|
|
48
48
|
const url = pathname + hash
|
|
49
49
|
window.onpopstate = e => router(root, url, { pushState: false, level: 0 })
|
package/syncExtend.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
import { Sync, DevFocus, inspectOnKey } from '@symbo.ls/socket-ui'
|
|
4
|
-
import { isDevelopment, isProduction, isTest } from '@domql/env'
|
|
4
|
+
import { isDevelopment, isProduction, isTest } from '@domql/env' // eslint-disable-line no-unused-vars
|
|
5
5
|
import { isUndefined } from '@domql/utils'
|
|
6
6
|
|
|
7
7
|
export const applySyncDebug = (extend, options) => {
|