@xuda.io/xuda-worker-bundle-min 1.3.1105 → 1.3.1107

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 +19 -15
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2697,7 +2697,7 @@ func.datasource.execute = async function (
2697
2697
  "after_record"
2698
2698
  );
2699
2699
  }
2700
-
2700
+ await func.datasource.set_outputField(SESSION_ID, dataSourceSession, _ds?.v?.raw_data?.rows);
2701
2701
  break;
2702
2702
 
2703
2703
  case "set_data":
@@ -2714,15 +2714,15 @@ func.datasource.execute = async function (
2714
2714
  );
2715
2715
  }
2716
2716
 
2717
- const get_data_from_data_feed = function () {
2718
- const rows = _ds?.data_feed?.rows || [];
2719
- return rows.map((item) => ({
2720
- id: item._ROWID,
2721
- value: {
2722
- ...item.value,
2723
- },
2724
- }));
2725
- };
2717
+ // const get_data_from_data_feed = function () {
2718
+ // const rows = _ds?.data_feed?.rows || [];
2719
+ // return rows.map((item) => ({
2720
+ // id: item._ROWID,
2721
+ // value: {
2722
+ // ...item.value,
2723
+ // },
2724
+ // }));
2725
+ // };
2726
2726
 
2727
2727
  const find_ROWID_idx_from_raw_data_arr = function (rowId) {
2728
2728
  if (!_raw_data_rows) {
@@ -2816,7 +2816,7 @@ func.datasource.execute = async function (
2816
2816
  }
2817
2817
  }
2818
2818
  // ret = await callback_datasource();
2819
-
2819
+ await func.datasource.set_outputField(SESSION_ID, dataSourceSession, _ds?.v?.raw_data?.rows);
2820
2820
  break;
2821
2821
 
2822
2822
  case "component":
@@ -8433,25 +8433,27 @@ func.events.execute = async function (
8433
8433
  SESSION_ID,
8434
8434
  "xuda-event-javascript-module.mjs"
8435
8435
  );
8436
- return await module.call_javascript(
8436
+ const result = await module.call_javascript(
8437
8437
  SESSION_ID,
8438
8438
  jobNoP,
8439
8439
  refIdP,
8440
8440
  dsSession
8441
8441
  );
8442
+ return result
8442
8443
  },
8443
8444
  call_evaluate_javascript: async function () {
8444
8445
  const module = await func.common.get_module(
8445
8446
  SESSION_ID,
8446
8447
  "xuda-event-javascript-module.mjs"
8447
8448
  );
8448
- return await module.call_javascript(
8449
+ const result = await module.call_javascript(
8449
8450
  SESSION_ID,
8450
8451
  jobNoP,
8451
8452
  refIdP,
8452
8453
  dsSession,
8453
8454
  true
8454
8455
  );
8456
+ return result
8455
8457
  },
8456
8458
  execute_native_javascript: async function () {
8457
8459
  const module = await func.common.get_module(
@@ -8459,7 +8461,7 @@ func.events.execute = async function (
8459
8461
  "xuda-event-javascript-module.mjs"
8460
8462
  );
8461
8463
 
8462
- return await module.run_javascript(
8464
+ const result = await module.run_javascript(
8463
8465
  SESSION_ID,
8464
8466
  jobNoP,
8465
8467
  dsSession,
@@ -8467,6 +8469,7 @@ func.events.execute = async function (
8467
8469
  ${refIdP.value}
8468
8470
  })(document.querySelector(\`[xu-ui-id=${elementP}]\`))`
8469
8471
  );
8472
+ return result
8470
8473
  },
8471
8474
  execute_evaluate_javascript: async function () {
8472
8475
  const module = await func.common.get_module(
@@ -8474,7 +8477,7 @@ func.events.execute = async function (
8474
8477
  "xuda-event-javascript-module.mjs"
8475
8478
  );
8476
8479
 
8477
- return await module.run_javascript(
8480
+ const result = await module.run_javascript(
8478
8481
  SESSION_ID,
8479
8482
  jobNoP,
8480
8483
  dsSession,
@@ -8483,6 +8486,7 @@ func.events.execute = async function (
8483
8486
  })(document.querySelector(\`[xu-ui-id=${elementP}]\`))`,
8484
8487
  true
8485
8488
  );
8489
+ return result
8486
8490
  },
8487
8491
  loader_on: async function () {
8488
8492
  glb.CURRENT_APP_LOADING = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.1105",
3
+ "version": "1.3.1107",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {