@xuda.io/xuda-worker-bundle 1.3.2113 → 1.3.2115

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.
Files changed (2) hide show
  1. package/index.js +4 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -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 (sourceP === 'javascript') console.error(err);
8303
+ if (sourceP === 'javascript' && !ignore_errors) console.error(err);
8304
8304
  return JSON5.parse(val);
8305
8305
  } catch (err) {
8306
- if (sourceP === 'javascript') console.error(err);
8306
+ if (sourceP === 'javascript' && !ignore_errors) console.error(err);
8307
8307
  return val;
8308
8308
  }
8309
8309
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle",
3
- "version": "1.3.2113",
3
+ "version": "1.3.2115",
4
4
  "description": "xuda framework",
5
5
  "main": "index.js",
6
6
  "scripts": {