@domql/element 2.28.70 → 2.28.72
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/dist/cjs/node.js +6 -1
- package/dist/esm/node.js +6 -1
- package/node.js +7 -1
- package/package.json +6 -6
package/dist/cjs/node.js
CHANGED
|
@@ -64,7 +64,12 @@ const createNode = async (element, options) => {
|
|
|
64
64
|
const { hasDefine, hasContextDefine } = isElement;
|
|
65
65
|
if (value && isElement && !hasDefine && !hasContextDefine) {
|
|
66
66
|
const createAsync = async () => {
|
|
67
|
-
|
|
67
|
+
try {
|
|
68
|
+
const val = await (0, import_utils.exec)(value, element);
|
|
69
|
+
await (0, import_create.create)(val, element, param, options);
|
|
70
|
+
} catch (error) {
|
|
71
|
+
element.error("An unexpected error occurred:", error);
|
|
72
|
+
}
|
|
68
73
|
};
|
|
69
74
|
if (element.props && element.props.lazyLoad || options.lazyLoad) {
|
|
70
75
|
window.requestAnimationFrame(async () => {
|
package/dist/esm/node.js
CHANGED
|
@@ -50,7 +50,12 @@ const createNode = async (element, options) => {
|
|
|
50
50
|
const { hasDefine, hasContextDefine } = isElement;
|
|
51
51
|
if (value && isElement && !hasDefine && !hasContextDefine) {
|
|
52
52
|
const createAsync = async () => {
|
|
53
|
-
|
|
53
|
+
try {
|
|
54
|
+
const val = await exec(value, element);
|
|
55
|
+
await create(val, element, param, options);
|
|
56
|
+
} catch (error) {
|
|
57
|
+
element.error("An unexpected error occurred:", error);
|
|
58
|
+
}
|
|
54
59
|
};
|
|
55
60
|
if (element.props && element.props.lazyLoad || options.lazyLoad) {
|
|
56
61
|
window.requestAnimationFrame(async () => {
|
package/node.js
CHANGED
|
@@ -85,7 +85,13 @@ export const createNode = async (element, options) => {
|
|
|
85
85
|
|
|
86
86
|
if (value && isElement && !hasDefine && !hasContextDefine) {
|
|
87
87
|
const createAsync = async () => {
|
|
88
|
-
|
|
88
|
+
try {
|
|
89
|
+
const val = await exec(value, element)
|
|
90
|
+
await create(val, element, param, options)
|
|
91
|
+
} catch (error) {
|
|
92
|
+
// Handle other potential errors
|
|
93
|
+
element.error('An unexpected error occurred:', error)
|
|
94
|
+
}
|
|
89
95
|
}
|
|
90
96
|
|
|
91
97
|
if ((element.props && element.props.lazyLoad) || options.lazyLoad) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/element",
|
|
3
|
-
"version": "2.28.
|
|
3
|
+
"version": "2.28.72",
|
|
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.72",
|
|
31
|
+
"@domql/render": "^2.28.72",
|
|
32
|
+
"@domql/state": "^2.28.72",
|
|
33
|
+
"@domql/utils": "^2.28.72"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "cc717713f9bbbdba8c6bca168d0661871969c23f",
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@babel/core": "^7.27.1"
|
|
38
38
|
}
|