@symbo.ls/create 2.11.258 → 2.11.259

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.
@@ -40,10 +40,9 @@ var import_syncExtend = require("./syncExtend");
40
40
  var import_prepare = require("./prepare");
41
41
  const SYMBOLS_KEY = process.env.SYMBOLS_KEY;
42
42
  const createDomqlElement = (App, options) => {
43
- const appIsKey = (0, import_utils.isString)(App);
44
- const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
43
+ const key = options.key || SYMBOLS_KEY || ((0, import_utils.isString)(App) ? App : "");
45
44
  const [scratcDesignSystem, emotion, registry] = (0, import_prepare.prepareDesignSystem)(options, key);
46
- if (appIsKey)
45
+ if ((0, import_utils.isString)(App))
47
46
  App = {};
48
47
  const doc = (0, import_prepare.prepareDocument)(options);
49
48
  const state = (0, import_prepare.prepareState)(options, App);
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.11.258",
3
+ "version": "2.11.259",
4
4
  "license": "MIT",
5
- "gitHead": "e3eef5e4cd1e780fb0a7f37015b6c712ef01b96e",
5
+ "gitHead": "ddd5c59db88be58dbbc33cb32ac3e8891a20b401",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
@@ -13,11 +13,9 @@ import { prepareComponents, prepareDesignSystem, prepareDocument, preparePages,
13
13
  const SYMBOLS_KEY = process.env.SYMBOLS_KEY
14
14
 
15
15
  export const createDomqlElement = (App, options) => {
16
- const appIsKey = isString(App)
17
-
18
- const key = options.key || SYMBOLS_KEY || (appIsKey ? App : '')
16
+ const key = options.key || SYMBOLS_KEY || (isString(App) ? App : '')
19
17
  const [scratcDesignSystem, emotion, registry] = prepareDesignSystem(options, key)
20
- if (appIsKey) App = {}
18
+ if (isString(App)) App = {}
21
19
 
22
20
  const doc = prepareDocument(options)
23
21
  const state = prepareState(options, App)
@@ -30,6 +28,7 @@ export const createDomqlElement = (App, options) => {
30
28
 
31
29
  const routerOptions = initRouter(App, options) // eslint-disable-line
32
30
  const extend = applySyncDebug([App], options)
31
+
33
32
  return ((DOM.default && DOM.default.create) || DOM.create)({
34
33
  extend,
35
34
  routes: options.pages,