@xuda.io/xuda-worker-bundle-min 1.3.2259 → 1.3.2261
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 +10 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -974,6 +974,9 @@ func.common.perform_rpi_request = async function (SESSION_ID, serviceP, opt = {}
|
|
|
974
974
|
if (_session.engine_mode === 'live_preview') {
|
|
975
975
|
throw new Error('live_preview');
|
|
976
976
|
}
|
|
977
|
+
if (_session.engine_mode === 'miniapp') {
|
|
978
|
+
throw new Error('miniapp');
|
|
979
|
+
}
|
|
977
980
|
|
|
978
981
|
if (SESSION_OBJ?.[SESSION_ID]?.rpi_http_methods?.includes(serviceP)) {
|
|
979
982
|
const ret = await func.common.get_data_from_websocket(SESSION_ID, serviceP, data);
|
|
@@ -1646,10 +1649,10 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
|
|
|
1646
1649
|
|
|
1647
1650
|
delete _ds.v.old_dataSource; // to eliminate parse error
|
|
1648
1651
|
delete _ds.rows_found;
|
|
1649
|
-
// _ds.raw_data = {};
|
|
1650
1652
|
_ds.data_feed = {};
|
|
1651
1653
|
|
|
1652
|
-
_ds.v.old_dataSource = _.cloneDeep(_ds);
|
|
1654
|
+
// _ds.v.old_dataSource = _.cloneDeep(_ds);
|
|
1655
|
+
_ds.v.old_dataSource = klona(_ds);
|
|
1653
1656
|
} catch (err) {
|
|
1654
1657
|
console.error('function: init_existing_dataSource - error');
|
|
1655
1658
|
return;
|
|
@@ -3279,11 +3282,12 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3279
3282
|
return Math.min(...arr.map(Number));
|
|
3280
3283
|
}
|
|
3281
3284
|
|
|
3282
|
-
await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
|
|
3285
|
+
// await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
|
|
3286
|
+
await func.UI.screen.refresh_xu_attributes(SESSION_ID, klona(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
|
|
3283
3287
|
// await removed from the below function cause to dead lock Mar 3 25
|
|
3284
3288
|
await func.UI.screen.refresh_screen(
|
|
3285
3289
|
SESSION_ID,
|
|
3286
|
-
_.cloneDeep(fields_changed),
|
|
3290
|
+
klona(fields_changed), // _.cloneDeep(fields_changed),
|
|
3287
3291
|
null,
|
|
3288
3292
|
datasource_changed[0], // refresh the current datasource only
|
|
3289
3293
|
);
|
|
@@ -3934,7 +3938,8 @@ func.datasource.set_VIEW_data = async function (SESSION_ID, args, _ds) {
|
|
|
3934
3938
|
};
|
|
3935
3939
|
_ds.viewEventExec_arr = {};
|
|
3936
3940
|
|
|
3937
|
-
var view = _.cloneDeep(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
|
|
3941
|
+
// var view = _.cloneDeep(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
|
|
3942
|
+
var view = klona(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
|
|
3938
3943
|
|
|
3939
3944
|
_ds.v.dataSourceSrcType = view.dataSourceSrcType;
|
|
3940
3945
|
|