@symbo.ls/create 2.11.136 → 2.11.141

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/dist/cjs/index.js CHANGED
@@ -57,7 +57,7 @@ const create = async (App, options = import_options.default, optionsExternalFile
57
57
  App = {};
58
58
  await (0, import_ferchOnCreate.fetchSync)(key, options);
59
59
  if (typeof document === "undefined")
60
- document = {};
60
+ window.document = {};
61
61
  const doc = options.parent || options.document || document;
62
62
  const [scratchSystem, emotion, registry] = (0, import_initEmotion.initEmotion)(key, options);
63
63
  const state = options.state || {};
@@ -108,7 +108,7 @@ const createSync = (App, options = import_options.default, optionsExternalFile)
108
108
  if (appIsKey)
109
109
  App = {};
110
110
  if (typeof document === "undefined")
111
- document = { body: {} };
111
+ window.document = { body: {} };
112
112
  let parent;
113
113
  if (options.parent)
114
114
  parent = options.parent;
@@ -126,7 +126,7 @@ const createSync = (App, options = import_options.default, optionsExternalFile)
126
126
  const extend = (0, import_syncExtend.applySyncDebug)([App], options);
127
127
  const domqlApp = import_domql.default.create({
128
128
  extend,
129
- //routes: options.pages,
129
+ // routes: options.pages,
130
130
  state,
131
131
  context: {
132
132
  key,
@@ -139,11 +139,11 @@ const createSync = (App, options = import_options.default, optionsExternalFile)
139
139
  define,
140
140
  registry,
141
141
  emotion,
142
- //routerOptions,
142
+ // routerOptions,
143
143
  document
144
144
  }
145
145
  }, parent, key, {
146
- //extend: [uikit.Box],
146
+ // extend: [uikit.Box],
147
147
  verbose: options.verbose,
148
148
  ...options.domqlOptions
149
149
  });
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.11.136",
3
+ "version": "2.11.141",
4
4
  "license": "MIT",
5
- "gitHead": "72072245574e6d80ff12e379ed18a4507a164910",
5
+ "gitHead": "62c22b7c8f9ec12deca59285a95dd0c58508c68f",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
package/src/index.js CHANGED
@@ -31,7 +31,7 @@ export const create = async (App, options = DEFAULT_CREATE_OPTIONS, optionsExter
31
31
  if (appIsKey) App = {}
32
32
  await fetchSync(key, options)
33
33
 
34
- if (typeof(document) === 'undefined') document = {}
34
+ if (typeof (document) === 'undefined') window.document = {}
35
35
  const doc = options.parent || options.document || document
36
36
  const [scratchSystem, emotion, registry] = initEmotion(key, options)
37
37
 
@@ -89,7 +89,7 @@ export const createSync = (App, options = DEFAULT_CREATE_OPTIONS, optionsExterna
89
89
  if (appIsKey) App = {}
90
90
 
91
91
  // Set parent
92
- if (typeof(document) === 'undefined') document = { body: {} }
92
+ if (typeof (document) === 'undefined') window.document = { body: {} }
93
93
  let parent
94
94
  if (options.parent) parent = options.parent
95
95
  else if (options.document) parent = options.document
@@ -104,12 +104,12 @@ export const createSync = (App, options = DEFAULT_CREATE_OPTIONS, optionsExterna
104
104
  const snippets = { ...utils, ...utils.scratchUtils, ...(options.snippets || {}) }
105
105
  const define = options.define || defaultDefine
106
106
 
107
- //const routerOptions = initRouter(App, options) // eslint-disable-line
107
+ // const routerOptions = initRouter(App, options) // eslint-disable-line
108
108
  const extend = applySyncDebug([App], options)
109
109
 
110
110
  const domqlApp = DOM.create({
111
111
  extend,
112
- //routes: options.pages,
112
+ // routes: options.pages,
113
113
  state,
114
114
  context: {
115
115
  key,
@@ -122,11 +122,11 @@ export const createSync = (App, options = DEFAULT_CREATE_OPTIONS, optionsExterna
122
122
  define,
123
123
  registry,
124
124
  emotion,
125
- //routerOptions,
125
+ // routerOptions,
126
126
  document
127
127
  }
128
128
  }, parent, key, {
129
- //extend: [uikit.Box],
129
+ // extend: [uikit.Box],
130
130
  verbose: options.verbose,
131
131
  ...options.domqlOptions
132
132
  })