@domql/utils 2.5.101 → 2.5.107

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.
@@ -535,6 +535,12 @@ const getChildrenComponentsByKey = (key, el) => {
535
535
  if (foundString || foundInArray)
536
536
  return el;
537
537
  }
538
+ if (el.parent && el.parent.childExtend) {
539
+ const foundString = (0, import_types.isString)(el.parent.childExtend) && el.parent.childExtend === key;
540
+ const foundInArray = (0, import_types.isArray)(el.parent.childExtend) && el.parent.childExtend.filter((v) => v === key).length;
541
+ if (foundString || foundInArray)
542
+ return el;
543
+ }
538
544
  };
539
545
  const getExtendsInElement = (obj) => {
540
546
  let result = [];
package/object.js CHANGED
@@ -613,6 +613,13 @@ export const getChildrenComponentsByKey = (key, el) => {
613
613
  const foundInArray = isArray(el.extend) && el.extend.filter(v => v === key).length
614
614
  if (foundString || foundInArray) return el
615
615
  }
616
+
617
+ if (el.parent && el.parent.childExtend) {
618
+ // Add the value of the extend key to the result array
619
+ const foundString = isString(el.parent.childExtend) && el.parent.childExtend === key
620
+ const foundInArray = isArray(el.parent.childExtend) && el.parent.childExtend.filter(v => v === key).length
621
+ if (foundString || foundInArray) return el
622
+ }
616
623
  }
617
624
 
618
625
  export const getExtendsInElement = (obj) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/utils",
3
- "version": "2.5.101",
3
+ "version": "2.5.107",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -23,7 +23,7 @@
23
23
  "build": "yarn build:cjs",
24
24
  "prepublish": "rimraf -I dist && yarn build && yarn copy:package:cjs"
25
25
  },
26
- "gitHead": "5a5e8988f25e9a77e44596d9fd23e8a00b725685",
26
+ "gitHead": "a313ce03e61603c66db67f1264c172805edb273e",
27
27
  "devDependencies": {
28
28
  "@babel/core": "^7.12.0"
29
29
  }