@xuda.io/runtime-bundle 1.0.980 → 1.0.982
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/js/xuda-runtime-bundle.js +6 -6
- package/js/xuda-runtime-bundle.min.js +3 -3
- package/js/xuda-runtime-slim.js +6 -6
- package/js/xuda-runtime-slim.min.es.js +6 -6
- package/js/xuda-runtime-slim.min.js +2 -2
- package/js/xuda-server-bundle.min.mjs +2 -2
- package/js/xuda-server-bundle.mjs +6 -6
- package/js/xuda-worker-bundle.js +6 -6
- package/js/xuda-worker-bundle.min.js +2 -2
- package/package.json +1 -1
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -9695,7 +9695,7 @@ func.events.execute = async function (
|
|
|
9695
9695
|
dsSession,
|
|
9696
9696
|
`(async function(el,evt) {
|
|
9697
9697
|
${refIdP.value}
|
|
9698
|
-
})(document.querySelector(\`[xu-ui-id
|
|
9698
|
+
})(document.querySelector(\`[xu-ui-id="${elementP}"]\`),evt)`,
|
|
9699
9699
|
null,
|
|
9700
9700
|
null,
|
|
9701
9701
|
null,
|
|
@@ -9715,7 +9715,7 @@ func.events.execute = async function (
|
|
|
9715
9715
|
dsSession,
|
|
9716
9716
|
`(async function(el,evt) {
|
|
9717
9717
|
${refIdP.value}
|
|
9718
|
-
})(document.querySelector(\`[xu-ui-id
|
|
9718
|
+
})(document.querySelector(\`[xu-ui-id="${elementP}"]\`),evt)`,
|
|
9719
9719
|
true,
|
|
9720
9720
|
null,
|
|
9721
9721
|
null,
|
|
@@ -10371,7 +10371,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
|
|
|
10371
10371
|
}
|
|
10372
10372
|
|
|
10373
10373
|
const validate_email = async function () {
|
|
10374
|
-
const ret = await func.expression.secure_eval(SESSION_ID, sourceP, valP, jobNo, dsSessionP, js_script_callback);
|
|
10374
|
+
const ret = await func.expression.secure_eval(SESSION_ID, sourceP, valP, jobNo, dsSessionP, js_script_callback, null, true);
|
|
10375
10375
|
|
|
10376
10376
|
return glb.emailRegex.test(ret);
|
|
10377
10377
|
};
|
|
@@ -11123,7 +11123,7 @@ func.expression.remove_quotes = function (valP) {
|
|
|
11123
11123
|
// }
|
|
11124
11124
|
// };
|
|
11125
11125
|
|
|
11126
|
-
func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
|
|
11126
|
+
func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt, ignore_errors) {
|
|
11127
11127
|
if (typeof val !== 'string') return val;
|
|
11128
11128
|
|
|
11129
11129
|
const xu = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
|
|
@@ -11144,10 +11144,10 @@ func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id,
|
|
|
11144
11144
|
return eval(val);
|
|
11145
11145
|
} catch (err) {
|
|
11146
11146
|
try {
|
|
11147
|
-
if (
|
|
11147
|
+
if (sourceP === 'javascript' && !ignore_errors) console.error(err);
|
|
11148
11148
|
return JSON5.parse(val);
|
|
11149
11149
|
} catch (err) {
|
|
11150
|
-
if (
|
|
11150
|
+
if (sourceP === 'javascript' && !ignore_errors) console.error(err);
|
|
11151
11151
|
return val;
|
|
11152
11152
|
}
|
|
11153
11153
|
}
|
|
@@ -13834,7 +13834,7 @@ func.events.execute = async function (
|
|
|
13834
13834
|
dsSession,
|
|
13835
13835
|
`(async function(el,evt) {
|
|
13836
13836
|
${refIdP.value}
|
|
13837
|
-
})(document.querySelector(\`[xu-ui-id
|
|
13837
|
+
})(document.querySelector(\`[xu-ui-id="${elementP}"]\`),evt)`,
|
|
13838
13838
|
null,
|
|
13839
13839
|
null,
|
|
13840
13840
|
null,
|
|
@@ -13854,7 +13854,7 @@ func.events.execute = async function (
|
|
|
13854
13854
|
dsSession,
|
|
13855
13855
|
`(async function(el,evt) {
|
|
13856
13856
|
${refIdP.value}
|
|
13857
|
-
})(document.querySelector(\`[xu-ui-id
|
|
13857
|
+
})(document.querySelector(\`[xu-ui-id="${elementP}"]\`),evt)`,
|
|
13858
13858
|
true,
|
|
13859
13859
|
null,
|
|
13860
13860
|
null,
|
|
@@ -14510,7 +14510,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
|
|
|
14510
14510
|
}
|
|
14511
14511
|
|
|
14512
14512
|
const validate_email = async function () {
|
|
14513
|
-
const ret = await func.expression.secure_eval(SESSION_ID, sourceP, valP, jobNo, dsSessionP, js_script_callback);
|
|
14513
|
+
const ret = await func.expression.secure_eval(SESSION_ID, sourceP, valP, jobNo, dsSessionP, js_script_callback, null, true);
|
|
14514
14514
|
|
|
14515
14515
|
return glb.emailRegex.test(ret);
|
|
14516
14516
|
};
|
|
@@ -15262,7 +15262,7 @@ func.expression.remove_quotes = function (valP) {
|
|
|
15262
15262
|
// }
|
|
15263
15263
|
// };
|
|
15264
15264
|
|
|
15265
|
-
func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
|
|
15265
|
+
func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt, ignore_errors) {
|
|
15266
15266
|
if (typeof val !== 'string') return val;
|
|
15267
15267
|
|
|
15268
15268
|
const xu = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
|
|
@@ -15283,10 +15283,10 @@ func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id,
|
|
|
15283
15283
|
return eval(val);
|
|
15284
15284
|
} catch (err) {
|
|
15285
15285
|
try {
|
|
15286
|
-
if (
|
|
15286
|
+
if (sourceP === 'javascript' && !ignore_errors) console.error(err);
|
|
15287
15287
|
return JSON5.parse(val);
|
|
15288
15288
|
} catch (err) {
|
|
15289
|
-
if (
|
|
15289
|
+
if (sourceP === 'javascript' && !ignore_errors) console.error(err);
|
|
15290
15290
|
return val;
|
|
15291
15291
|
}
|
|
15292
15292
|
}
|