@domql/utils 2.5.138 → 2.5.139
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/component.js +3 -2
- package/dist/cjs/component.js +4 -2
- package/package.json +2 -2
package/component.js
CHANGED
|
@@ -60,12 +60,13 @@ export const extendizeByKey = (element, parent, key) => {
|
|
|
60
60
|
|
|
61
61
|
if (element === isExtendKeyComponent) return element
|
|
62
62
|
else if (isSugar) {
|
|
63
|
-
|
|
63
|
+
const newElem = {
|
|
64
64
|
extend: extendFromKey,
|
|
65
|
-
childExtend: childrenExtends,
|
|
66
65
|
tag,
|
|
67
66
|
props: { ...element }
|
|
68
67
|
}
|
|
68
|
+
if (childrenExtends) newElem.childExtend = childrenExtends
|
|
69
|
+
return newElem
|
|
69
70
|
} else if (!extend || extend === true) {
|
|
70
71
|
return {
|
|
71
72
|
...element,
|
package/dist/cjs/component.js
CHANGED
|
@@ -68,12 +68,14 @@ const extendizeByKey = (element, parent, key) => {
|
|
|
68
68
|
if (element === isExtendKeyComponent)
|
|
69
69
|
return element;
|
|
70
70
|
else if (isSugar) {
|
|
71
|
-
|
|
71
|
+
const newElem = {
|
|
72
72
|
extend: extendFromKey,
|
|
73
|
-
childExtend: childrenExtends,
|
|
74
73
|
tag,
|
|
75
74
|
props: { ...element }
|
|
76
75
|
};
|
|
76
|
+
if (childrenExtends)
|
|
77
|
+
newElem.childExtend = childrenExtends;
|
|
78
|
+
return newElem;
|
|
77
79
|
} else if (!extend || extend === true) {
|
|
78
80
|
return {
|
|
79
81
|
...element,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/utils",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.139",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"build": "yarn build:cjs",
|
|
26
26
|
"prepublish": "rimraf -I dist && yarn build && yarn copy:package:cjs"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "db49c6131a93bd7e9c1f1c95bc5de7752a8f48d1",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@babel/core": "^7.12.0"
|
|
31
31
|
}
|