@xuda.io/runtime-bundle 1.0.707 → 1.0.709
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 +14 -1
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +14 -1
- package/js/xuda-runtime-slim.min.es.js +14 -1
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +13 -0
- package/js/xuda-worker-bundle.js +13 -0
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -4941,6 +4941,19 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4941
4941
|
datasource_changed[0], // refresh the current datasource only
|
|
4942
4942
|
);
|
|
4943
4943
|
}
|
|
4944
|
+
///// REFRESH PARAMETERS IN
|
|
4945
|
+
if (fields_changed.length) {
|
|
4946
|
+
for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
4947
|
+
if (_ds.args.parameters_raw_obj) {
|
|
4948
|
+
for (const [key, val] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
4949
|
+
if (fields_changed.includes(val)) {
|
|
4950
|
+
let ret = await func.expression.get(SESSION_ID, '@' + val, _dsSession, 'parameters');
|
|
4951
|
+
_ds.in_parameters[val].value = ret.result;
|
|
4952
|
+
}
|
|
4953
|
+
}
|
|
4954
|
+
}
|
|
4955
|
+
}
|
|
4956
|
+
}
|
|
4944
4957
|
}
|
|
4945
4958
|
resolve();
|
|
4946
4959
|
});
|
|
@@ -12176,7 +12189,7 @@ const get_params_obj_new = async function (SESSION_ID, prog_id, nodeP, dsSession
|
|
|
12176
12189
|
// in parameter
|
|
12177
12190
|
let ret = await func.expression.get(SESSION_ID, nodeP.attributes[`xu-exp:${val.data.parameter}`], dsSession, 'parameters');
|
|
12178
12191
|
params_res[val.data.parameter] = ret.result;
|
|
12179
|
-
params_raw[val.data.parameter] = val.data.parameter;
|
|
12192
|
+
params_raw[val.data.parameter] = nodeP.attributes[`xu-exp:${val.data.parameter}`];
|
|
12180
12193
|
}
|
|
12181
12194
|
}
|
|
12182
12195
|
continue;
|
|
@@ -4942,6 +4942,19 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4942
4942
|
datasource_changed[0], // refresh the current datasource only
|
|
4943
4943
|
);
|
|
4944
4944
|
}
|
|
4945
|
+
///// REFRESH PARAMETERS IN
|
|
4946
|
+
if (fields_changed.length) {
|
|
4947
|
+
for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
|
|
4948
|
+
if (_ds.args.parameters_raw_obj) {
|
|
4949
|
+
for (const [key, val] of Object.entries(_ds.args.parameters_raw_obj)) {
|
|
4950
|
+
if (fields_changed.includes(val)) {
|
|
4951
|
+
let ret = await func.expression.get(SESSION_ID, '@' + val, _dsSession, 'parameters');
|
|
4952
|
+
_ds.in_parameters[val].value = ret.result;
|
|
4953
|
+
}
|
|
4954
|
+
}
|
|
4955
|
+
}
|
|
4956
|
+
}
|
|
4957
|
+
}
|
|
4945
4958
|
}
|
|
4946
4959
|
resolve();
|
|
4947
4960
|
});
|
|
@@ -9898,7 +9911,7 @@ const get_params_obj_new = async function (SESSION_ID, prog_id, nodeP, dsSession
|
|
|
9898
9911
|
// in parameter
|
|
9899
9912
|
let ret = await func.expression.get(SESSION_ID, nodeP.attributes[`xu-exp:${val.data.parameter}`], dsSession, 'parameters');
|
|
9900
9913
|
params_res[val.data.parameter] = ret.result;
|
|
9901
|
-
params_raw[val.data.parameter] = val.data.parameter;
|
|
9914
|
+
params_raw[val.data.parameter] = nodeP.attributes[`xu-exp:${val.data.parameter}`];
|
|
9902
9915
|
}
|
|
9903
9916
|
}
|
|
9904
9917
|
continue;
|