@symbo.ls/create 2.9.7 → 2.9.11

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.
Files changed (2) hide show
  1. package/index.js +6 -5
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
3
  import DOM from 'domql'
4
- import { isSting, overwriteDeep } from '@domql/utils'
4
+ import { isString, overwriteDeep } from '@domql/utils'
5
5
 
6
6
  import * as smbls from '@symbo.ls/uikit'
7
7
  import { init, DYNAMIC_JSON } from '@symbo.ls/init'
@@ -26,7 +26,7 @@ export const create = (App, options = defaultOptions) => {
26
26
  const { components, define } = options
27
27
  const designSystem = init(options.system)
28
28
 
29
- const appIsKey = isSting(App)
29
+ const appIsKey = isString(App)
30
30
  const key = options.key || SYMBOLS_KEY || (appIsKey && App)
31
31
 
32
32
  if (appIsKey) App = {}
@@ -41,9 +41,10 @@ export const create = (App, options = defaultOptions) => {
41
41
  if (define) DOM.define(options.define)
42
42
 
43
43
  return DOM.create({
44
- extend: App,
45
- routes: options.pages,
46
- state: options.state,
44
+ extend: [App, {
45
+ routes: options.pages,
46
+ state: options.state
47
+ }]
47
48
  }, null, 'app', {
48
49
  extend: [smbls.Box],
49
50
  context: {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.9.7",
3
+ "version": "2.9.11",
4
4
  "license": "MIT",
5
- "gitHead": "1d88bf5fa75a5c44f4f2e805fd16a67dc25ad247",
5
+ "gitHead": "06818c033618d74e175bcd916dd85504a01d8dbf",
6
6
  "source": "index.js",
7
7
  "main": "index.js",
8
8
  "dependencies": {