@domql/utils 2.29.85 → 2.29.86
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 +10 -5
- package/dist/cjs/component.js +1 -1
- package/dist/esm/component.js +1 -1
- package/package.json +2 -2
package/component.js
CHANGED
|
@@ -72,10 +72,10 @@ export const extractComponentKeyFromKey = (key) => {
|
|
|
72
72
|
return key.includes('+')
|
|
73
73
|
? key.split('+') // get array of componentKeys
|
|
74
74
|
: key.includes('_')
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
? [key.split('_')[0]] // get component key split _
|
|
76
|
+
: key.includes('.') && !checkIfKeyIsComponent(key.split('.')[1])
|
|
77
|
+
? [key.split('.')[0]] // get component key split .
|
|
78
|
+
: [key]
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export const extendizeByKey = (element, parent, key) => {
|
|
@@ -233,7 +233,12 @@ export const getExtendsInElement = (obj) => {
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
// Check if the key is "extend" and it's either a string or an array
|
|
236
|
-
if (
|
|
236
|
+
if (
|
|
237
|
+
key === 'extend' ||
|
|
238
|
+
key === 'extends' ||
|
|
239
|
+
key === 'childExtend' ||
|
|
240
|
+
key === 'childExtends'
|
|
241
|
+
) {
|
|
237
242
|
// Add the value of the extend key to the result array
|
|
238
243
|
if (typeof o[key] === 'string') {
|
|
239
244
|
result.push(o[key])
|
package/dist/cjs/component.js
CHANGED
|
@@ -218,7 +218,7 @@ const getExtendsInElement = (obj) => {
|
|
|
218
218
|
if (checkIfKeyIsComponent(key)) {
|
|
219
219
|
result.push(key);
|
|
220
220
|
}
|
|
221
|
-
if (key === "extend" || key === "extends") {
|
|
221
|
+
if (key === "extend" || key === "extends" || key === "childExtend" || key === "childExtends") {
|
|
222
222
|
if (typeof o[key] === "string") {
|
|
223
223
|
result.push(o[key]);
|
|
224
224
|
} else if (Array.isArray(o[key])) {
|
package/dist/esm/component.js
CHANGED
|
@@ -199,7 +199,7 @@ const getExtendsInElement = (obj) => {
|
|
|
199
199
|
if (checkIfKeyIsComponent(key)) {
|
|
200
200
|
result.push(key);
|
|
201
201
|
}
|
|
202
|
-
if (key === "extend" || key === "extends") {
|
|
202
|
+
if (key === "extend" || key === "extends" || key === "childExtend" || key === "childExtends") {
|
|
203
203
|
if (typeof o[key] === "string") {
|
|
204
204
|
result.push(o[key]);
|
|
205
205
|
} else if (Array.isArray(o[key])) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/utils",
|
|
3
|
-
"version": "2.29.
|
|
3
|
+
"version": "2.29.86",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"build": "npx rimraf -I dist; npm run build:cjs; npm run build:esm",
|
|
25
25
|
"prepublish": "npm run build; npm run copy:package:cjs"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "9078ce58b33455ca7f3b1554ed1e1620a26d2fb0",
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/core": "^7.27.1"
|
|
30
30
|
}
|