@xuda.io/runtime-bundle 1.0.496 → 1.0.498

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.
@@ -35442,7 +35442,7 @@ func.expression.get_bad = async function (SESSION_ID, valP, dsSessionP, sourceP,
35442
35442
  return endResults();
35443
35443
  };
35444
35444
 
35445
- func.expression.parse = function (strP) {
35445
+ func.expression.parse_org = function (strP) {
35446
35446
  var extract_str = function (strP, posP) {
35447
35447
  if (!posP) posP = 0;
35448
35448
  var clean_split_str = function (arrP) {
@@ -35537,7 +35537,7 @@ func.expression.parse = function (strP) {
35537
35537
  return res;
35538
35538
  };
35539
35539
 
35540
- func.expression.parse_bad = function (input) {
35540
+ func.expression.parse = function (input) {
35541
35541
  if (typeof input !== 'string') return [];
35542
35542
 
35543
35543
  const segments = [];
@@ -35565,7 +35565,7 @@ func.expression.parse_bad = function (input) {
35565
35565
  return segments;
35566
35566
  };
35567
35567
 
35568
- func.expression.get_property = async function (valP) {
35568
+ func.expression.get_property_org = async function (valP) {
35569
35569
  async function secure_eval(val) {
35570
35570
  if (typeof IS_PROCESS_SERVER === 'undefined') {
35571
35571
  try {
@@ -35604,7 +35604,7 @@ func.expression.get_property = async function (valP) {
35604
35604
  };
35605
35605
  };
35606
35606
 
35607
- func.expression.get_property_bad = async function (valP) {
35607
+ func.expression.get_property = async function (valP) {
35608
35608
  if (typeof valP !== 'string') return { property1: undefined, property2: undefined };
35609
35609
 
35610
35610
  const secureEval = async (expr) => {
@@ -35649,27 +35649,33 @@ func.expression.get_property_bad = async function (valP) {
35649
35649
  return { property1, property2 };
35650
35650
  };
35651
35651
 
35652
- func.expression.validate_constant = function (valP) {
35652
+ func.expression.validate_constant_org = function (valP) {
35653
35653
  var patt = /["']/;
35654
35654
  if (typeof valP === 'string' && patt.test(valP.substr(0, 1)) && patt.test(valP.substr(0, valP.length - 1))) return true;
35655
35655
  else return false;
35656
35656
  };
35657
- func.expression.validate_variables = function (valP) {
35657
+ func.expression.validate_variables_org = function (valP) {
35658
35658
  if (typeof valP === 'string' && valP.indexOf('@') > -1) return true;
35659
35659
  else return false;
35660
35660
  };
35661
- func.expression.remove_quotes = function (valP) {
35661
+ func.expression.remove_quotes_org = function (valP) {
35662
35662
  if (func.expression.validate_constant(valP)) return valP.substr(1, valP.length - 2);
35663
35663
  else return valP;
35664
35664
  };
35665
35665
 
35666
- func.expression.validate_constant_bad = (valP) => typeof valP === 'string' && /^["'].*["']$/.test(valP);
35666
+ func.expression.validate_constant = function (valP) {
35667
+ typeof valP === 'string' && /^["'].*["']$/.test(valP);
35668
+ };
35667
35669
 
35668
- func.expression.validate_variables_bad = (valP) => typeof valP === 'string' && valP.includes('@');
35670
+ func.expression.validate_variables = function (valP) {
35671
+ typeof valP === 'string' && valP.includes('@');
35672
+ };
35669
35673
 
35670
- func.expression.remove_quotes_bad = (valP) => (func.expression.validate_constant(valP) && typeof valP === 'string' ? valP.slice(1, -1) : valP);
35674
+ func.expression.remove_quotes = function (valP) {
35675
+ func.expression.validate_constant(valP) && typeof valP === 'string' ? valP.slice(1, -1) : valP;
35676
+ };
35671
35677
 
35672
- func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
35678
+ func.expression.secure_eval_org = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
35673
35679
  const api_utils = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
35674
35680
  func,
35675
35681
  glb,
@@ -35771,7 +35777,7 @@ func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id,
35771
35777
  }
35772
35778
  };
35773
35779
 
35774
- func.expression.secure_eval_bad = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
35780
+ func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
35775
35781
  if (typeof val !== 'string') return val;
35776
35782
 
35777
35783
  const xu = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {