@xuda.io/xuda-worker-bundle-min 1.3.1128 → 1.3.1129

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 +19 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1126,6 +1126,25 @@ func.api.call_external_api = async function (method, url, payload) {
1126
1126
 
1127
1127
  return await api_utils.call_external_api(method, url, payload, null);
1128
1128
  };
1129
+
1130
+ func.api.call_javascript = async function (prog_id, params, evaluate) {
1131
+ const SESSION_ID = Object.keys(SESSION_OBJ)[0];
1132
+ const api_utils = await func.common.get_module(
1133
+ SESSION_ID,
1134
+ "xuda-api-library.mjs",
1135
+ {
1136
+ func,
1137
+ glb,
1138
+ SESSION_OBJ,
1139
+ SESSION_ID,
1140
+ APP_OBJ,
1141
+ dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).at(-1),
1142
+ }
1143
+ );
1144
+
1145
+ return await api_utils.call_javascript(prog_id, params, evaluate);
1146
+ };
1147
+
1129
1148
  glb.rpi_request_queue_num = 0;
1130
1149
  func.common.perform_rpi_request = async function (
1131
1150
  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.1128",
3
+ "version": "1.3.1129",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {