@xuda.io/xuda-worker-bundle-min 1.3.2005 → 1.3.2007
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/index.js +6 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -6851,7 +6851,7 @@ func.events.execute = async function (
|
|
|
6851
6851
|
dsSession,
|
|
6852
6852
|
`(async function(el,evt) {
|
|
6853
6853
|
${refIdP.value}
|
|
6854
|
-
})(document.querySelector(\`[xu-ui-id
|
|
6854
|
+
})(document.querySelector(\`[xu-ui-id="${elementP}"]\`),evt)`,
|
|
6855
6855
|
null,
|
|
6856
6856
|
null,
|
|
6857
6857
|
null,
|
|
@@ -6871,7 +6871,7 @@ func.events.execute = async function (
|
|
|
6871
6871
|
dsSession,
|
|
6872
6872
|
`(async function(el,evt) {
|
|
6873
6873
|
${refIdP.value}
|
|
6874
|
-
})(document.querySelector(\`[xu-ui-id
|
|
6874
|
+
})(document.querySelector(\`[xu-ui-id="${elementP}"]\`),evt)`,
|
|
6875
6875
|
true,
|
|
6876
6876
|
null,
|
|
6877
6877
|
null,
|
|
@@ -7527,7 +7527,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
|
|
|
7527
7527
|
}
|
|
7528
7528
|
|
|
7529
7529
|
const validate_email = async function () {
|
|
7530
|
-
const ret = await func.expression.secure_eval(SESSION_ID, sourceP, valP, jobNo, dsSessionP, js_script_callback);
|
|
7530
|
+
const ret = await func.expression.secure_eval(SESSION_ID, sourceP, valP, jobNo, dsSessionP, js_script_callback, null, true);
|
|
7531
7531
|
|
|
7532
7532
|
return glb.emailRegex.test(ret);
|
|
7533
7533
|
};
|
|
@@ -8279,7 +8279,7 @@ func.expression.remove_quotes = function (valP) {
|
|
|
8279
8279
|
// }
|
|
8280
8280
|
// };
|
|
8281
8281
|
|
|
8282
|
-
func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
|
|
8282
|
+
func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt, ignore_errors) {
|
|
8283
8283
|
if (typeof val !== 'string') return val;
|
|
8284
8284
|
|
|
8285
8285
|
const xu = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
|
|
@@ -8300,10 +8300,10 @@ func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id,
|
|
|
8300
8300
|
return eval(val);
|
|
8301
8301
|
} catch (err) {
|
|
8302
8302
|
try {
|
|
8303
|
-
if (
|
|
8303
|
+
if (sourceP === 'javascript' && !ignore_errors) console.error(err);
|
|
8304
8304
|
return JSON5.parse(val);
|
|
8305
8305
|
} catch (err) {
|
|
8306
|
-
if (
|
|
8306
|
+
if (sourceP === 'javascript' && !ignore_errors) console.error(err);
|
|
8307
8307
|
return val;
|
|
8308
8308
|
}
|
|
8309
8309
|
}
|