@xuda.io/xuda-worker-bundle-min 1.3.850 → 1.3.852
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.
- package/index.js +9 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2492,7 +2492,7 @@ func.datasource.execute = async function (
|
|
|
2492
2492
|
_ds.api_rendered_output = "";
|
|
2493
2493
|
let has_datasource = await calc_batch_loops();
|
|
2494
2494
|
|
|
2495
|
-
_raw_data_rows = _ds.raw_data.rows || [];
|
|
2495
|
+
_raw_data_rows = _ds.v.raw_data.rows || [];
|
|
2496
2496
|
if (!has_datasource) {
|
|
2497
2497
|
for (n = 0; n < _ds.v.batch_loops; n++) {
|
|
2498
2498
|
_raw_data_rows.push({ id: n, value: {} });
|
|
@@ -2503,7 +2503,7 @@ func.datasource.execute = async function (
|
|
|
2503
2503
|
if (has_datasource && Number(key) >= _ds.v.batch_loops) break;
|
|
2504
2504
|
|
|
2505
2505
|
if (!has_datasource) {
|
|
2506
|
-
raw_data_row = _ds?.raw_data?.rows?.[key] || { id: key, value: {} };
|
|
2506
|
+
raw_data_row = _ds?.v.raw_data?.rows?.[key] || { id: key, value: {} };
|
|
2507
2507
|
}
|
|
2508
2508
|
|
|
2509
2509
|
if (await get_before_record_count()) {
|
|
@@ -2549,7 +2549,7 @@ func.datasource.execute = async function (
|
|
|
2549
2549
|
case "batch": {
|
|
2550
2550
|
let has_datasource = await calc_batch_loops();
|
|
2551
2551
|
|
|
2552
|
-
_raw_data_rows = _ds?.raw_data?.rows || [];
|
|
2552
|
+
_raw_data_rows = _ds?.v.raw_data?.rows || [];
|
|
2553
2553
|
if (!has_datasource) {
|
|
2554
2554
|
for (n = 0; n < _ds.v.batch_loops; n++) {
|
|
2555
2555
|
_raw_data_rows.push({ id: n, value: {} });
|
|
@@ -2560,7 +2560,7 @@ func.datasource.execute = async function (
|
|
|
2560
2560
|
if (has_datasource && Number(key) >= _ds.v.batch_loops) break;
|
|
2561
2561
|
|
|
2562
2562
|
if (!has_datasource) {
|
|
2563
|
-
raw_data_row = _ds?.raw_data?.rows?.[key] || { id: key, value: {} };
|
|
2563
|
+
raw_data_row = _ds?.v.raw_data?.rows?.[key] || { id: key, value: {} };
|
|
2564
2564
|
}
|
|
2565
2565
|
|
|
2566
2566
|
if (await get_before_record_count()) {
|
|
@@ -2733,7 +2733,7 @@ func.datasource.execute = async function (
|
|
|
2733
2733
|
_ds.rows_processed = 0;
|
|
2734
2734
|
_ds.viewRangeExp_rows_deleted = 0;
|
|
2735
2735
|
|
|
2736
|
-
let rows = _ds?.raw_data?.rows?.length;
|
|
2736
|
+
let rows = _ds?.v.raw_data?.rows?.length;
|
|
2737
2737
|
_ds.data_feed.rows = [];
|
|
2738
2738
|
_ds.data_feed.rows_changed = [];
|
|
2739
2739
|
_ds.data_feed.rows_deleted = [];
|
|
@@ -2787,7 +2787,7 @@ func.datasource.execute = async function (
|
|
|
2787
2787
|
break;
|
|
2788
2788
|
}
|
|
2789
2789
|
|
|
2790
|
-
_ds.firstRecordId = _ds.raw_data.rows[0].id;
|
|
2790
|
+
_ds.firstRecordId = _ds.v.raw_data.rows[0].id;
|
|
2791
2791
|
|
|
2792
2792
|
const finish_form = async function () {
|
|
2793
2793
|
// check if locatedRecordId exist in SESSION_OBJ[SESSION_ID].DS_GLB
|
|
@@ -2810,7 +2810,8 @@ func.datasource.execute = async function (
|
|
|
2810
2810
|
_ds.currentRecordId = _ds.finalRecordId;
|
|
2811
2811
|
};
|
|
2812
2812
|
|
|
2813
|
-
for await (const [key, val] of Object.entries(_ds.raw_data.rows)) {
|
|
2813
|
+
for await (const [key, val] of Object.entries(_ds.v.raw_data.rows)) {
|
|
2814
|
+
const idx = Number(key);
|
|
2814
2815
|
const raw_data_row = val.value;
|
|
2815
2816
|
if (await get_before_record_count()) {
|
|
2816
2817
|
await func.datasource.execute_view_events(
|
|
@@ -2823,7 +2824,7 @@ func.datasource.execute = async function (
|
|
|
2823
2824
|
await func.datasource.run_rows_form(
|
|
2824
2825
|
SESSION_ID,
|
|
2825
2826
|
dataSourceSession,
|
|
2826
|
-
|
|
2827
|
+
idx,
|
|
2827
2828
|
raw_data_row
|
|
2828
2829
|
);
|
|
2829
2830
|
|