@xuda.io/runtime-bundle 1.0.287 → 1.0.289
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/js/xuda-runtime-bundle.js +16 -17
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-mini-bundle.js +4 -5
- package/js/xuda-runtime-mini-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +16 -17
- package/js/xuda-runtime-slim.min.es.js +16 -17
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +16 -17
- package/js/xuda-worker-bundle.js +16 -17
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -25777,7 +25777,7 @@ func.utils.ws_worker.functions = {
|
|
|
25777
25777
|
);
|
|
25778
25778
|
|
|
25779
25779
|
if (show_log) console.log('DATASOURCE EXECUTION DONE ' + ret.dsSessionP + ' ' + _session.DS_GLB[ret.dsSessionP]?.tree_obj?.menuName || '' + ' SESSION_ID: ' + SESSION_ID, APP_OBJ[_session.app_id].app_name);
|
|
25780
|
-
var obj = func.utils.clean_returned_datasource(SESSION_ID, ret
|
|
25780
|
+
var obj = func.utils.clean_returned_datasource(SESSION_ID, ret?.dsSessionP || {});
|
|
25781
25781
|
obj.dataSourceSessionGlobal = _session.dataSourceSessionGlobal;
|
|
25782
25782
|
|
|
25783
25783
|
worker_post_message({
|
|
@@ -25957,7 +25957,7 @@ func.utils.ws_worker.functions = {
|
|
|
25957
25957
|
const couch = await __.rpi.get_app_couch(req.body.app_id);
|
|
25958
25958
|
const session_doc = await couch.get(req.body.app_token);
|
|
25959
25959
|
ret.session_stat = session_doc.stat;
|
|
25960
|
-
} catch (error) {
|
|
25960
|
+
} catch (error) {}
|
|
25961
25961
|
}
|
|
25962
25962
|
} catch (error) {
|
|
25963
25963
|
debugger;
|
|
@@ -27220,9 +27220,8 @@ func.utils.set_SYS_GLOBAL_OBJ_WIDGET_INFO = async function (SESSION_ID, docP) {
|
|
|
27220
27220
|
};
|
|
27221
27221
|
|
|
27222
27222
|
func.utils.get_last_datasource_no = function (SESSION_ID) {
|
|
27223
|
-
|
|
27224
|
-
|
|
27225
|
-
return Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).at?.(-1)
|
|
27223
|
+
if (typeof IS_PROCESS_SERVER !== 'undefined') {
|
|
27224
|
+
return Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).at?.(-1);
|
|
27226
27225
|
} else {
|
|
27227
27226
|
const filtered = Object.values(SESSION_OBJ[SESSION_ID].DS_GLB).filter((e) => e.tree_obj.menuType !== 'api');
|
|
27228
27227
|
return filtered?.at?.(-1)?.dsSession;
|
|
@@ -30785,20 +30784,20 @@ func.datasource.callback = async function (SESSION_ID, dsSessionP, na, rowIdP, j
|
|
|
30785
30784
|
}
|
|
30786
30785
|
}
|
|
30787
30786
|
|
|
30788
|
-
if (_ds?.progDataSource?.datasetOutputField) {
|
|
30789
|
-
|
|
30787
|
+
// if (_ds?.progDataSource?.datasetOutputField) {
|
|
30788
|
+
// let datasource_changes = {};
|
|
30790
30789
|
|
|
30791
|
-
|
|
30792
|
-
|
|
30793
|
-
|
|
30794
|
-
|
|
30795
|
-
|
|
30796
|
-
|
|
30790
|
+
// let _ds = _session.DS_GLB[ret_get_value.dsSessionP];
|
|
30791
|
+
// if (!datasource_changes[_ds.dsSession]) {
|
|
30792
|
+
// datasource_changes[_ds.dsSession] = {};
|
|
30793
|
+
// }
|
|
30794
|
+
// if (!datasource_changes[_ds.dsSession][_ds.currentRecordId]) {
|
|
30795
|
+
// datasource_changes[_ds.dsSession][_ds.currentRecordId] = {};
|
|
30797
30796
|
|
|
30798
|
-
|
|
30799
|
-
|
|
30800
|
-
|
|
30801
|
-
}
|
|
30797
|
+
// datasource_changes[_ds.dsSession][ret_get_value.currentRecordId][_ds?.progDataSource?.datasetOutputField] = _ds?.data_feed?.rows || [];
|
|
30798
|
+
// await func.datasource.update(SESSION_ID, datasource_changes);
|
|
30799
|
+
// }
|
|
30800
|
+
// }
|
|
30802
30801
|
} catch (err) {
|
|
30803
30802
|
// console.error(err);
|
|
30804
30803
|
}
|