@xuda.io/xuda-worker-bundle 1.3.2647 → 1.3.2649
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 -10
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -857,7 +857,7 @@ func.runtime.bind.update_reference_source_array = async function (options) {
|
|
|
857
857
|
|
|
858
858
|
const arr_idx = Number(options.iterate_info._key);
|
|
859
859
|
const dataset_arr = await func.datasource.get_value(options.SESSION_ID, reference_source_obj.fieldIdP, options.dsSessionP, reference_source_obj.currentRecordId);
|
|
860
|
-
let new_arr =
|
|
860
|
+
let new_arr = structuredClone(dataset_arr.ret.value);
|
|
861
861
|
|
|
862
862
|
if (field_type === 'object' && options.val_is_reference_field) {
|
|
863
863
|
let obj_item = new_arr[arr_idx];
|
|
@@ -923,7 +923,7 @@ func.runtime.resources.load_plugin_runtime_css = async function (SESSION_ID, plu
|
|
|
923
923
|
return true;
|
|
924
924
|
};
|
|
925
925
|
func.runtime.resources.resolve_plugin_properties = async function (SESSION_ID, dsSessionP, attributes, properties) {
|
|
926
|
-
let resolved_properties =
|
|
926
|
+
let resolved_properties = structuredClone(properties);
|
|
927
927
|
for await (let [prop_name, prop_val] of Object.entries(resolved_properties || {})) {
|
|
928
928
|
prop_val.value = attributes?.[prop_name];
|
|
929
929
|
if (attributes?.[`xu-exp:${prop_name}`]) {
|
|
@@ -1346,7 +1346,7 @@ func.common.db = async function (SESSION_ID, serviceP, dataP, opt = {}, dsSessio
|
|
|
1346
1346
|
}
|
|
1347
1347
|
|
|
1348
1348
|
await db.get(row_id);
|
|
1349
|
-
let _data =
|
|
1349
|
+
let _data = structuredClone(dataP);
|
|
1350
1350
|
_data.ids = [row_id];
|
|
1351
1351
|
return await func.db.pouch['dbs_delete'](SESSION_ID, _data);
|
|
1352
1352
|
} catch (err) {
|
|
@@ -2587,7 +2587,7 @@ func.runtime.ui.get_node_snapshot = function (nodeP) {
|
|
|
2587
2587
|
if (func.runtime.ui.node_snapshot_cache.has(nodeP)) {
|
|
2588
2588
|
return func.runtime.ui.node_snapshot_cache.get(nodeP);
|
|
2589
2589
|
}
|
|
2590
|
-
const snapshot =
|
|
2590
|
+
const snapshot = structuredClone(nodeP);
|
|
2591
2591
|
func.runtime.ui.node_snapshot_cache.set(nodeP, snapshot);
|
|
2592
2592
|
return snapshot;
|
|
2593
2593
|
};
|
|
@@ -2693,7 +2693,7 @@ func.runtime.ui.generate_xu_ui_id = async function (SESSION_ID, nodeP, $containe
|
|
|
2693
2693
|
return hashed_ui_id;
|
|
2694
2694
|
};
|
|
2695
2695
|
func.runtime.ui.create_container = async function (options) {
|
|
2696
|
-
const _paramsP =
|
|
2696
|
+
const _paramsP = structuredClone(options.paramsP);
|
|
2697
2697
|
const _ds = SESSION_OBJ[options.SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
2698
2698
|
const $appendTo = func.runtime.ui.get_append_target(options.$container, options.$appendToP);
|
|
2699
2699
|
if (!$appendTo) return null;
|
|
@@ -3131,7 +3131,7 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
|
|
|
3131
3131
|
_ds.data_feed = {};
|
|
3132
3132
|
|
|
3133
3133
|
// _ds.v.old_dataSource = _.cloneDeep(_ds);
|
|
3134
|
-
_ds.v.old_dataSource =
|
|
3134
|
+
_ds.v.old_dataSource = structuredClone(_ds);
|
|
3135
3135
|
} catch (err) {
|
|
3136
3136
|
console.error('function: init_existing_dataSource - error');
|
|
3137
3137
|
return;
|
|
@@ -4702,7 +4702,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4702
4702
|
|
|
4703
4703
|
await func.runtime.ui.refresh_screen({
|
|
4704
4704
|
SESSION_ID,
|
|
4705
|
-
fields_changed_arr:
|
|
4705
|
+
fields_changed_arr: structuredClone(fields_changed),
|
|
4706
4706
|
datasource_changed: datasource_changed[0],
|
|
4707
4707
|
fields_changed_datasource: datasource_changed[0],
|
|
4708
4708
|
watcher: value,
|
|
@@ -4817,7 +4817,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4817
4817
|
// await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
|
|
4818
4818
|
await func.runtime.ui.refresh_xu_attributes({
|
|
4819
4819
|
SESSION_ID,
|
|
4820
|
-
fields_arr:
|
|
4820
|
+
fields_arr: structuredClone(fields_changed),
|
|
4821
4821
|
jobNoP: null,
|
|
4822
4822
|
$elm_to_search: null,
|
|
4823
4823
|
dsSession_changed: findMin(datasource_changed),
|
|
@@ -4828,7 +4828,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4828
4828
|
// await removed from the below function cause to dead lock Mar 3 25
|
|
4829
4829
|
await func.runtime.ui.refresh_screen({
|
|
4830
4830
|
SESSION_ID,
|
|
4831
|
-
fields_changed_arr:
|
|
4831
|
+
fields_changed_arr: structuredClone(fields_changed),
|
|
4832
4832
|
datasource_changed: null,
|
|
4833
4833
|
fields_changed_datasource: datasource_changed[0],
|
|
4834
4834
|
});
|
|
@@ -5478,7 +5478,7 @@ func.datasource.set_VIEW_data = async function (SESSION_ID, args, _ds) {
|
|
|
5478
5478
|
};
|
|
5479
5479
|
_ds.viewEventExec_arr = {};
|
|
5480
5480
|
|
|
5481
|
-
var view =
|
|
5481
|
+
var view = structuredClone(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
|
|
5482
5482
|
// var view = klona.klona(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
|
|
5483
5483
|
|
|
5484
5484
|
_ds.v.dataSourceSrcType = view.dataSourceSrcType;
|