@xuda.io/xuda-worker-bundle-min 1.3.1514 → 1.3.1515

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 +2 -60
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -7753,7 +7753,7 @@ func.events.invoke = async function (event_id) {
7753
7753
  };
7754
7754
  func.expression = {};
7755
7755
 
7756
- func.expression.get_org = async function (SESSION_ID, valP, dsSessionP, sourceP, rowIdP, sourceActionP, secondPassP, calling_fieldIdP, fieldsP, debug_infoP, iterate_info, js_script_callback, jobNo, api_output_type) {
7756
+ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, rowIdP, sourceActionP, secondPassP, calling_fieldIdP, fieldsP, debug_infoP, iterate_info, js_script_callback, jobNo, api_output_type) {
7757
7757
  class xu_class {
7758
7758
  async get() {
7759
7759
  var ret;
@@ -8107,7 +8107,7 @@ func.expression.get_org = async function (SESSION_ID, valP, dsSessionP, sourceP,
8107
8107
  return new_class.get();
8108
8108
  };
8109
8109
 
8110
- func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, rowIdP, sourceActionP, secondPassP, calling_fieldIdP, fieldsP = {}, debug_infoP, iterate_info, js_script_callback, jobNo, api_output_type) {
8110
+ func.expression.get_bad = async function (SESSION_ID, valP, dsSessionP, sourceP, rowIdP, sourceActionP, secondPassP, calling_fieldIdP, fieldsP = {}, debug_infoP, iterate_info, js_script_callback, jobNo, api_output_type) {
8111
8111
  const evalJson = (text) => eval(`(${text})`);
8112
8112
  const replaceQuotes = (str) => {
8113
8113
  for (const [key, val] of Object.entries(fields)) {
@@ -8373,64 +8373,6 @@ func.expression.parse_org = function (strP) {
8373
8373
  return res;
8374
8374
  };
8375
8375
 
8376
- func.expression.parse_bad = function (strP) {
8377
- const nonLettersPatt = /\W/;
8378
- const validSymbolsNoArray = /[^.@\[]/;
8379
- const validSymbolsWithArray = /[^.@"'\[\]]/;
8380
-
8381
- function extractStr(str, startPos = 0) {
8382
- const cleanSplit = (arr) => (arr?.length > 1 && arr[0] === '' && arr[1].includes('@') ? arr.slice(1) : arr);
8383
-
8384
- const segments = cleanSplit(str.replace(/@/g, '^^@').split('^^'));
8385
- const result = [];
8386
-
8387
- for (const val of segments || []) {
8388
- if (!val) continue;
8389
- const pos = str.indexOf(val) + startPos;
8390
-
8391
- if (val.startsWith('@')) {
8392
- let tmpStr = '';
8393
- let wordStart = null;
8394
- let wordEnd = null;
8395
- let validSymbols = validSymbolsNoArray;
8396
-
8397
- for (let i = 0; i < val.length; i++) {
8398
- const char = val[i];
8399
-
8400
- if (char === '[') validSymbols = validSymbolsWithArray;
8401
- if (char === '.' && wordStart === null) wordStart = i;
8402
- else if (wordStart !== null && nonLettersPatt.test(char)) wordEnd = i;
8403
-
8404
- if (wordStart !== null && wordEnd !== null) {
8405
- const word = val.slice(wordStart + 1, wordEnd);
8406
- tmpStr = tmpStr.slice(0, wordStart) + '^^' + tmpStr.slice(wordStart, wordEnd);
8407
- wordStart = char === '.' ? wordEnd : null;
8408
- wordEnd = null;
8409
- }
8410
-
8411
- tmpStr += nonLettersPatt.test(char) && validSymbols.test(char) && !tmpStr.includes('^^') ? '^^' + char : char;
8412
- }
8413
-
8414
- if (tmpStr.includes('^^')) {
8415
- result.push(...extractStr(tmpStr, pos));
8416
- } else {
8417
- const fieldIdMatch = val.match(/^@([^.\[]+)/);
8418
- result.push({
8419
- value: val,
8420
- fieldId: fieldIdMatch ? fieldIdMatch[1] : undefined,
8421
- pos,
8422
- });
8423
- }
8424
- } else {
8425
- result.push({ value: val, pos });
8426
- }
8427
- }
8428
- return result;
8429
- }
8430
-
8431
- return extractStr(strP);
8432
- };
8433
-
8434
8376
  func.expression.parse = function (input) {
8435
8377
  if (typeof input !== 'string') return [];
8436
8378
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.1514",
3
+ "version": "1.3.1515",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {