@symbo.ls/create 2.10.33 → 2.10.38
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 +8 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -38,7 +38,13 @@ export const create = async (App, options = defaultOptions) => {
|
|
|
38
38
|
const key = options.key || SYMBOLS_KEY || (appIsKey ? App : '')
|
|
39
39
|
|
|
40
40
|
if (appIsKey) App = {}
|
|
41
|
-
if (key && options.editor)
|
|
41
|
+
if (key && options.editor) {
|
|
42
|
+
try {
|
|
43
|
+
await fetchProject(key, options)
|
|
44
|
+
} catch (e) {
|
|
45
|
+
console.error(e)
|
|
46
|
+
}
|
|
47
|
+
}
|
|
42
48
|
|
|
43
49
|
const emotion = defaultEmotion || createEmotion()
|
|
44
50
|
const initOptions = options.initOptions || { emotion }
|
|
@@ -72,7 +78,7 @@ export const create = async (App, options = defaultOptions) => {
|
|
|
72
78
|
verbose: options.verbose,
|
|
73
79
|
...options.domqlOptions
|
|
74
80
|
})
|
|
75
|
-
|
|
81
|
+
|
|
76
82
|
return domqlElement
|
|
77
83
|
}
|
|
78
84
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/create",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.38",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "d37db9c4535473bd491cf59beaf4877aac944b74",
|
|
6
6
|
"source": "index.js",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"dependencies": {
|