@xuda.io/xuda-worker-bundle-min 1.3.2271 → 1.3.2273
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 +4 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1051,11 +1051,6 @@ func.common.get_data_from_websocket = async function (SESSION_ID, serviceP, data
|
|
|
1051
1051
|
};
|
|
1052
1052
|
|
|
1053
1053
|
func.common.sha256 = async function (inputString) {
|
|
1054
|
-
// const enc = new TextEncoder();
|
|
1055
|
-
// const buf = await crypto.subtle.digest('SHA-256', enc.encode(str));
|
|
1056
|
-
// const bytes = new Uint8Array(buf);
|
|
1057
|
-
// return [...bytes].map((b) => b.toString(16).padStart(2, '0')).join('');
|
|
1058
|
-
|
|
1059
1054
|
// 1. Create a hash buffer from the input string using SHA-256.
|
|
1060
1055
|
// This part remains the same as it provides a strong, unique cryptographic starting point.
|
|
1061
1056
|
const buffer = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(inputString));
|
|
@@ -1652,7 +1647,7 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
|
|
|
1652
1647
|
_ds.data_feed = {};
|
|
1653
1648
|
|
|
1654
1649
|
// _ds.v.old_dataSource = _.cloneDeep(_ds);
|
|
1655
|
-
_ds.v.old_dataSource = klona(_ds);
|
|
1650
|
+
_ds.v.old_dataSource = klona.klona(_ds);
|
|
1656
1651
|
} catch (err) {
|
|
1657
1652
|
console.error('function: init_existing_dataSource - error');
|
|
1658
1653
|
return;
|
|
@@ -3283,11 +3278,11 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3283
3278
|
}
|
|
3284
3279
|
|
|
3285
3280
|
// 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);
|
|
3281
|
+
await func.UI.screen.refresh_xu_attributes(SESSION_ID, klona.klona(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
|
|
3287
3282
|
// await removed from the below function cause to dead lock Mar 3 25
|
|
3288
3283
|
await func.UI.screen.refresh_screen(
|
|
3289
3284
|
SESSION_ID,
|
|
3290
|
-
klona(fields_changed), // _.cloneDeep(fields_changed),
|
|
3285
|
+
klona.klona(fields_changed), // _.cloneDeep(fields_changed),
|
|
3291
3286
|
null,
|
|
3292
3287
|
datasource_changed[0], // refresh the current datasource only
|
|
3293
3288
|
);
|
|
@@ -3939,7 +3934,7 @@ func.datasource.set_VIEW_data = async function (SESSION_ID, args, _ds) {
|
|
|
3939
3934
|
_ds.viewEventExec_arr = {};
|
|
3940
3935
|
|
|
3941
3936
|
// 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));
|
|
3937
|
+
var view = klona.klona(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
|
|
3943
3938
|
|
|
3944
3939
|
_ds.v.dataSourceSrcType = view.dataSourceSrcType;
|
|
3945
3940
|
|