@xuda.io/xuda-worker-bundle-min 1.3.1520 → 1.3.1522

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 +11 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -8499,13 +8499,19 @@ func.expression.remove_quotes = function (valP) {
8499
8499
  else return valP;
8500
8500
  };
8501
8501
 
8502
- func.expression.validate_constant_bad = (valP) => typeof valP === 'string' && /^["'].*["']$/.test(valP);
8502
+ // func.expression.validate_constant = function (valP) {
8503
+ // typeof valP === 'string' && /^["'].*["']$/.test(valP);
8504
+ // };
8503
8505
 
8504
- func.expression.validate_variables_bad = (valP) => typeof valP === 'string' && valP.includes('@');
8506
+ // func.expression.validate_variables = function (valP) {
8507
+ // typeof valP === 'string' && valP.includes('@');
8508
+ // };
8505
8509
 
8506
- func.expression.remove_quotes_bad = (valP) => (func.expression.validate_constant(valP) && typeof valP === 'string' ? valP.slice(1, -1) : valP);
8510
+ // func.expression.remove_quotes = function (valP) {
8511
+ // func.expression.validate_constant(valP) && typeof valP === 'string' ? valP.slice(1, -1) : valP;
8512
+ // };
8507
8513
 
8508
- func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
8514
+ func.expression.secure_eval_org = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
8509
8515
  const api_utils = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
8510
8516
  func,
8511
8517
  glb,
@@ -8607,7 +8613,7 @@ func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id,
8607
8613
  }
8608
8614
  };
8609
8615
 
8610
- func.expression.secure_eval_bad = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
8616
+ func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
8611
8617
  if (typeof val !== 'string') return val;
8612
8618
 
8613
8619
  const xu = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.1520",
3
+ "version": "1.3.1522",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {