@xuda.io/xuda-worker-bundle-min 1.3.699 → 1.3.701
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 +25 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -8772,7 +8772,31 @@ func.events.execute = async function (
|
|
|
8772
8772
|
return;
|
|
8773
8773
|
}
|
|
8774
8774
|
|
|
8775
|
-
const
|
|
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
|
+
}
|
|
8790
|
+
|
|
8791
|
+
return _value;
|
|
8792
|
+
};
|
|
8793
|
+
let payload = {};
|
|
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(
|