@xuda.io/xuda-worker-bundle-min 1.3.700 → 1.3.702

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.
Files changed (2) hide show
  1. package/index.js +25 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -8771,8 +8771,32 @@ func.events.execute = async function (
8771
8771
  func.events.delete_job(SESSION_ID, jobNoP);
8772
8772
  return;
8773
8773
  }
8774
+ let payload = {};
8775
+ const _payload = await get_args_property_value("payload");
8776
+ if (_payload) {
8777
+ const get_payload_property_value = async function (prop_name) {
8778
+ let _prop = _payload;
8779
+ let _value = _prop[prop_name];
8780
+ if (_prop?.[`xu-exp:${prop_name}`]) {
8781
+ _value = (
8782
+ await func.expression.get(
8783
+ SESSION_ID,
8784
+ _prop[`xu-exp:${prop_name}`],
8785
+ dsSession,
8786
+ `${prop_name} expression`
8787
+ )
8788
+ ).result;
8789
+ }
8774
8790
 
8775
- const payload = await get_args_property_value("payload");
8791
+ return _value;
8792
+ };
8793
+
8794
+ for await (let [key, val] of Object.entries(_payload)) {
8795
+ if (key.substring(0, 7) !== "xu-exp:") {
8796
+ payload[key] = await get_payload_property_value(key);
8797
+ }
8798
+ }
8799
+ }
8776
8800
 
8777
8801
  // if (!payload) {
8778
8802
  // func.utils.debug_report(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.700",
3
+ "version": "1.3.702",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {