domql 1.5.32 → 1.5.33

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "DOM rendering Javascript framework at early stage.",
4
4
  "private": false,
5
5
  "author": "rackai",
6
- "version": "1.5.32",
6
+ "version": "1.5.33",
7
7
  "repository": "https://github.com/rackai/domql",
8
8
  "publishConfig": {
9
9
  "registry": "https://registry.npmjs.org"
@@ -201,7 +201,7 @@ const create = (element, parent, key, options = OPTIONS.create || {}) => {
201
201
  return element
202
202
  }
203
203
 
204
- const isKeyComponent = (key) => {
204
+ export const isKeyComponent = (key) => {
205
205
  const isFirstKeyString = isString(key)
206
206
  if(!isFirstKeyString) return
207
207
 
@@ -14,6 +14,7 @@ export const applyExtend = (element, parent, options = {}) => {
14
14
  let { extend } = element
15
15
  if (isString(extend)) extend = options.components[extend]
16
16
  const extendStack = getExtendStack(extend)
17
+
17
18
 
18
19
  if (ENV !== 'test' || ENV !== 'development') delete element.extend
19
20
 
@@ -30,6 +30,7 @@ export default {
30
30
  define: {},
31
31
  transform: {},
32
32
  __hash: {},
33
+ __componentKey: {},
33
34
  __cached: {},
34
35
  __defined: {},
35
36
  __exec: {},
@@ -104,9 +104,8 @@ export const jointStacks = (extendStack, childExtendStack) => {
104
104
  // init
105
105
  export const getExtendStack = extend => {
106
106
  if (!extend) return []
107
- if (extend.__hash) return getHashedExtend(extend)
107
+ if (extend.__hash) return getHashedExtend(extend) || []
108
108
  const stack = flattenExtend(extend, [])
109
- // console.log(stack)
110
109
  return getExtendStackRegistry(extend, stack)
111
110
  }
112
111