@domql/element 2.28.36 → 2.28.40

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.
@@ -103,7 +103,8 @@ function lookdownAll(param, results = []) {
103
103
  var _a;
104
104
  const el = this;
105
105
  const { __ref: ref } = el;
106
- const children = ref.__children;
106
+ const children = ref == null ? void 0 : ref.__children;
107
+ if (!children) return;
107
108
  for (let i = 0; i < children.length; i++) {
108
109
  const v = children[i];
109
110
  const childElem = el[v];
@@ -66,7 +66,8 @@ function lookdownAll(param, results = []) {
66
66
  var _a;
67
67
  const el = this;
68
68
  const { __ref: ref } = el;
69
- const children = ref.__children;
69
+ const children = ref == null ? void 0 : ref.__children;
70
+ if (!children) return;
70
71
  for (let i = 0; i < children.length; i++) {
71
72
  const v = children[i];
72
73
  const childElem = el[v];
package/methods/index.js CHANGED
@@ -82,7 +82,9 @@ export function lookdown (param) {
82
82
  export function lookdownAll (param, results = []) {
83
83
  const el = this
84
84
  const { __ref: ref } = el
85
- const children = ref.__children
85
+ const children = ref?.__children
86
+
87
+ if (!children) return
86
88
 
87
89
  for (let i = 0; i < children.length; i++) {
88
90
  const v = children[i]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/element",
3
- "version": "2.28.36",
3
+ "version": "2.28.40",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -27,12 +27,12 @@
27
27
  "prepublish": "npx rimraf -I dist && npm run build && npm run copy:package:cjs"
28
28
  },
29
29
  "dependencies": {
30
- "@domql/event": "^2.28.36",
31
- "@domql/render": "^2.28.36",
32
- "@domql/state": "^2.28.36",
33
- "@domql/utils": "^2.28.36"
30
+ "@domql/event": "^2.28.40",
31
+ "@domql/render": "^2.28.40",
32
+ "@domql/state": "^2.28.40",
33
+ "@domql/utils": "^2.28.40"
34
34
  },
35
- "gitHead": "8a98e91990385e522a6287faf922237dcbff0500",
35
+ "gitHead": "dfba811a989e835291f619abfefa8c02e9c04641",
36
36
  "devDependencies": {
37
37
  "@babel/core": "^7.26.0"
38
38
  }