@xuda.io/xuda-worker-bundle-min 1.3.1088 → 1.3.1089

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 +9 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2213,7 +2213,15 @@ func.datasource.execute = async function (
2213
2213
  if (tree_obj.apiOutput === "json") {
2214
2214
  // iterate object to fix expressions
2215
2215
  try {
2216
- let output_result_obj = JSON5.parse(output_result)
2216
+ // let output_result_obj = JSON5.parse(output_result)
2217
+ let output_result_obj = await func.expression.secure_eval(
2218
+ SESSION_ID,
2219
+ "api_rendered_output",
2220
+ "(" + output_result + ")",
2221
+ null,
2222
+ dataSourceSession,
2223
+
2224
+ );
2217
2225
  for await (let [key, val] of Object.entries(output_result_obj)) {
2218
2226
  output_result_obj[key] = (await func.expression.get(
2219
2227
  SESSION_ID,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.1088",
3
+ "version": "1.3.1089",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {