@symbo.ls/create 2.10.18 → 2.10.20
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 -6
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -23,14 +23,14 @@ const defaultOptions = {
|
|
|
23
23
|
define
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export const create =
|
|
26
|
+
export const create = (App, options = defaultOptions) => {
|
|
27
27
|
const appIsKey = isString(App)
|
|
28
28
|
const key = options.key || SYMBOLS_KEY || (appIsKey && App)
|
|
29
29
|
|
|
30
30
|
if (appIsKey) App = {}
|
|
31
31
|
if (key) {
|
|
32
32
|
if (options.remote) {
|
|
33
|
-
const data =
|
|
33
|
+
const data = fetchRemote(key, { endpoint: options.endpoint })
|
|
34
34
|
const evalData = deepDestringify(data)
|
|
35
35
|
overwriteDeep(evalData, options)
|
|
36
36
|
}
|
|
@@ -41,10 +41,6 @@ export const create = async (App, options = defaultOptions) => {
|
|
|
41
41
|
|
|
42
42
|
DOM.define(options.define || define)
|
|
43
43
|
|
|
44
|
-
console.group(key)
|
|
45
|
-
console.dir(options)
|
|
46
|
-
console.groupEnd(key)
|
|
47
|
-
|
|
48
44
|
return DOM.create({
|
|
49
45
|
extend: [App, {
|
|
50
46
|
routes: options.pages,
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/create",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.20",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "2916a041146a954910251d5d73dd5e912858d562",
|
|
6
6
|
"source": "index.js",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"dependencies": {
|