@domql/element 2.28.34 → 2.28.37
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.
|
@@ -83,7 +83,8 @@ function lookdown(param) {
|
|
|
83
83
|
var _a;
|
|
84
84
|
const el = this;
|
|
85
85
|
const { __ref: ref } = el;
|
|
86
|
-
const children = ref.__children;
|
|
86
|
+
const children = ref == null ? void 0 : ref.__children;
|
|
87
|
+
if (!children) return;
|
|
87
88
|
for (let i = 0; i < children.length; i++) {
|
|
88
89
|
const v = children[i];
|
|
89
90
|
const childElem = el[v];
|
|
@@ -102,7 +103,8 @@ function lookdownAll(param, results = []) {
|
|
|
102
103
|
var _a;
|
|
103
104
|
const el = this;
|
|
104
105
|
const { __ref: ref } = el;
|
|
105
|
-
const children = ref.__children;
|
|
106
|
+
const children = ref == null ? void 0 : ref.__children;
|
|
107
|
+
if (!children) return;
|
|
106
108
|
for (let i = 0; i < children.length; i++) {
|
|
107
109
|
const v = children[i];
|
|
108
110
|
const childElem = el[v];
|
|
@@ -46,7 +46,8 @@ function lookdown(param) {
|
|
|
46
46
|
var _a;
|
|
47
47
|
const el = this;
|
|
48
48
|
const { __ref: ref } = el;
|
|
49
|
-
const children = ref.__children;
|
|
49
|
+
const children = ref == null ? void 0 : ref.__children;
|
|
50
|
+
if (!children) return;
|
|
50
51
|
for (let i = 0; i < children.length; i++) {
|
|
51
52
|
const v = children[i];
|
|
52
53
|
const childElem = el[v];
|
|
@@ -65,7 +66,8 @@ function lookdownAll(param, results = []) {
|
|
|
65
66
|
var _a;
|
|
66
67
|
const el = this;
|
|
67
68
|
const { __ref: ref } = el;
|
|
68
|
-
const children = ref.__children;
|
|
69
|
+
const children = ref == null ? void 0 : ref.__children;
|
|
70
|
+
if (!children) return;
|
|
69
71
|
for (let i = 0; i < children.length; i++) {
|
|
70
72
|
const v = children[i];
|
|
71
73
|
const childElem = el[v];
|
package/methods/index.js
CHANGED
|
@@ -59,7 +59,9 @@ export function lookup (param) {
|
|
|
59
59
|
export function lookdown (param) {
|
|
60
60
|
const el = this
|
|
61
61
|
const { __ref: ref } = el
|
|
62
|
-
const children = ref
|
|
62
|
+
const children = ref?.__children
|
|
63
|
+
|
|
64
|
+
if (!children) return
|
|
63
65
|
|
|
64
66
|
for (let i = 0; i < children.length; i++) {
|
|
65
67
|
const v = children[i]
|
|
@@ -80,7 +82,9 @@ export function lookdown (param) {
|
|
|
80
82
|
export function lookdownAll (param, results = []) {
|
|
81
83
|
const el = this
|
|
82
84
|
const { __ref: ref } = el
|
|
83
|
-
const children = ref
|
|
85
|
+
const children = ref?.__children
|
|
86
|
+
|
|
87
|
+
if (!children) return
|
|
84
88
|
|
|
85
89
|
for (let i = 0; i < children.length; i++) {
|
|
86
90
|
const v = children[i]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/element",
|
|
3
|
-
"version": "2.28.
|
|
3
|
+
"version": "2.28.37",
|
|
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.
|
|
31
|
-
"@domql/render": "^2.28.
|
|
32
|
-
"@domql/state": "^2.28.
|
|
33
|
-
"@domql/utils": "^2.28.
|
|
30
|
+
"@domql/event": "^2.28.37",
|
|
31
|
+
"@domql/render": "^2.28.37",
|
|
32
|
+
"@domql/state": "^2.28.37",
|
|
33
|
+
"@domql/utils": "^2.28.37"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "65666d0a998f268ff1512bdf23aa0f4c331efcd9",
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@babel/core": "^7.26.0"
|
|
38
38
|
}
|