@xuda.io/runtime-bundle 1.0.339 → 1.0.341
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/modules/xuda-system-globals-module.min.mjs +1 -1
- package/js/modules/xuda-system-globals-module.mjs +254 -270
- package/js/xuda-runtime-bundle.js +26 -42
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +26 -42
- package/js/xuda-runtime-slim.min.es.js +26 -42
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +18 -14
- package/js/xuda-worker-bundle.js +18 -14
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -1928,6 +1928,7 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
|
|
|
1928
1928
|
_ds.data_system['SYS_GLOBAL_OBJ_FIREBASE_AUTH_INFO'] = _session.SYS_GLOBAL_OBJ_FIREBASE_AUTH_INFO;
|
|
1929
1929
|
|
|
1930
1930
|
_ds.data_system['SYS_GLOBAL_OBJ_CLIENT_INFO'] = _session.SYS_GLOBAL_OBJ_CLIENT_INFO;
|
|
1931
|
+
_ds.data_system['SYS_GLOBAL_OBJ_REFS'] = {};
|
|
1931
1932
|
};
|
|
1932
1933
|
if (!SESSION_OBJ[SESSION_ID].DS_GLB) return;
|
|
1933
1934
|
|
|
@@ -3511,8 +3512,9 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3511
3512
|
continue;
|
|
3512
3513
|
}
|
|
3513
3514
|
|
|
3514
|
-
try {
|
|
3515
|
-
|
|
3515
|
+
// try {
|
|
3516
|
+
const row_idx = func.common.find_ROWID_idx(_ds, record_id);
|
|
3517
|
+
if (_ds.data_feed.rows[row_idx][field_id] !== value) {
|
|
3516
3518
|
_ds.data_feed.rows[row_idx][field_id] = value;
|
|
3517
3519
|
await set_fieldComputed_dependencies(dataSource, field_id, null);
|
|
3518
3520
|
|
|
@@ -3546,21 +3548,23 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3546
3548
|
}
|
|
3547
3549
|
}
|
|
3548
3550
|
}
|
|
3549
|
-
} catch (err) {
|
|
3550
|
-
console.error(err);
|
|
3551
|
-
}
|
|
3552
3551
|
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
if (!datasource_changed.includes(dataSource)) {
|
|
3557
|
-
datasource_changed.push(dataSource);
|
|
3558
|
-
}
|
|
3552
|
+
// } catch (err) {
|
|
3553
|
+
// console.error(err);
|
|
3554
|
+
// }
|
|
3559
3555
|
|
|
3560
|
-
|
|
3561
|
-
|
|
3556
|
+
if (!fields_changed.includes(field_id)) {
|
|
3557
|
+
fields_changed.push(field_id);
|
|
3558
|
+
}
|
|
3559
|
+
if (!datasource_changed.includes(dataSource)) {
|
|
3560
|
+
datasource_changed.push(dataSource);
|
|
3561
|
+
}
|
|
3562
|
+
|
|
3563
|
+
if (!_ds.data_feed.rows_changed) {
|
|
3564
|
+
_ds.data_feed.rows_changed = [];
|
|
3565
|
+
}
|
|
3566
|
+
if (!_ds.data_feed.rows_changed.includes(record_id)) _ds.data_feed.rows_changed.push(record_id);
|
|
3562
3567
|
}
|
|
3563
|
-
if (!_ds.data_feed.rows_changed.includes(record_id)) _ds.data_feed.rows_changed.push(record_id);
|
|
3564
3568
|
} else if (fields_data === 'set') {
|
|
3565
3569
|
_ds.currentRecordId = record_id;
|
|
3566
3570
|
}
|
package/js/xuda-worker-bundle.js
CHANGED
|
@@ -1928,6 +1928,7 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
|
|
|
1928
1928
|
_ds.data_system['SYS_GLOBAL_OBJ_FIREBASE_AUTH_INFO'] = _session.SYS_GLOBAL_OBJ_FIREBASE_AUTH_INFO;
|
|
1929
1929
|
|
|
1930
1930
|
_ds.data_system['SYS_GLOBAL_OBJ_CLIENT_INFO'] = _session.SYS_GLOBAL_OBJ_CLIENT_INFO;
|
|
1931
|
+
_ds.data_system['SYS_GLOBAL_OBJ_REFS'] = {};
|
|
1931
1932
|
};
|
|
1932
1933
|
if (!SESSION_OBJ[SESSION_ID].DS_GLB) return;
|
|
1933
1934
|
|
|
@@ -3511,8 +3512,9 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3511
3512
|
continue;
|
|
3512
3513
|
}
|
|
3513
3514
|
|
|
3514
|
-
try {
|
|
3515
|
-
|
|
3515
|
+
// try {
|
|
3516
|
+
const row_idx = func.common.find_ROWID_idx(_ds, record_id);
|
|
3517
|
+
if (_ds.data_feed.rows[row_idx][field_id] !== value) {
|
|
3516
3518
|
_ds.data_feed.rows[row_idx][field_id] = value;
|
|
3517
3519
|
await set_fieldComputed_dependencies(dataSource, field_id, null);
|
|
3518
3520
|
|
|
@@ -3546,21 +3548,23 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3546
3548
|
}
|
|
3547
3549
|
}
|
|
3548
3550
|
}
|
|
3549
|
-
} catch (err) {
|
|
3550
|
-
console.error(err);
|
|
3551
|
-
}
|
|
3552
3551
|
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
if (!datasource_changed.includes(dataSource)) {
|
|
3557
|
-
datasource_changed.push(dataSource);
|
|
3558
|
-
}
|
|
3552
|
+
// } catch (err) {
|
|
3553
|
+
// console.error(err);
|
|
3554
|
+
// }
|
|
3559
3555
|
|
|
3560
|
-
|
|
3561
|
-
|
|
3556
|
+
if (!fields_changed.includes(field_id)) {
|
|
3557
|
+
fields_changed.push(field_id);
|
|
3558
|
+
}
|
|
3559
|
+
if (!datasource_changed.includes(dataSource)) {
|
|
3560
|
+
datasource_changed.push(dataSource);
|
|
3561
|
+
}
|
|
3562
|
+
|
|
3563
|
+
if (!_ds.data_feed.rows_changed) {
|
|
3564
|
+
_ds.data_feed.rows_changed = [];
|
|
3565
|
+
}
|
|
3566
|
+
if (!_ds.data_feed.rows_changed.includes(record_id)) _ds.data_feed.rows_changed.push(record_id);
|
|
3562
3567
|
}
|
|
3563
|
-
if (!_ds.data_feed.rows_changed.includes(record_id)) _ds.data_feed.rows_changed.push(record_id);
|
|
3564
3568
|
} else if (fields_data === 'set') {
|
|
3565
3569
|
_ds.currentRecordId = record_id;
|
|
3566
3570
|
}
|