@xuda.io/runtime-bundle 1.0.981 → 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 +4 -4
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +4 -4
- package/js/xuda-runtime-slim.min.es.js +4 -4
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +4 -4
- package/js/xuda-worker-bundle.js +4 -4
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -35161,7 +35161,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
|
|
|
35161
35161
|
}
|
|
35162
35162
|
|
|
35163
35163
|
const validate_email = async function () {
|
|
35164
|
-
const ret = await func.expression.secure_eval(SESSION_ID, sourceP, valP, jobNo, dsSessionP, js_script_callback);
|
|
35164
|
+
const ret = await func.expression.secure_eval(SESSION_ID, sourceP, valP, jobNo, dsSessionP, js_script_callback, null, true);
|
|
35165
35165
|
|
|
35166
35166
|
return glb.emailRegex.test(ret);
|
|
35167
35167
|
};
|
|
@@ -35913,7 +35913,7 @@ func.expression.remove_quotes = function (valP) {
|
|
|
35913
35913
|
// }
|
|
35914
35914
|
// };
|
|
35915
35915
|
|
|
35916
|
-
func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
|
|
35916
|
+
func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt, ignore_errors) {
|
|
35917
35917
|
if (typeof val !== 'string') return val;
|
|
35918
35918
|
|
|
35919
35919
|
const xu = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
|
|
@@ -35934,10 +35934,10 @@ func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id,
|
|
|
35934
35934
|
return eval(val);
|
|
35935
35935
|
} catch (err) {
|
|
35936
35936
|
try {
|
|
35937
|
-
if (sourceP === 'javascript') console.error(err);
|
|
35937
|
+
if (sourceP === 'javascript' && !ignore_errors) console.error(err);
|
|
35938
35938
|
return JSON5.parse(val);
|
|
35939
35939
|
} catch (err) {
|
|
35940
|
-
if (sourceP === 'javascript') console.error(err);
|
|
35940
|
+
if (sourceP === 'javascript' && !ignore_errors) console.error(err);
|
|
35941
35941
|
return val;
|
|
35942
35942
|
}
|
|
35943
35943
|
}
|