@xuda.io/xuda-worker-bundle-min 1.3.1138 → 1.3.1140
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 +20 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1109,7 +1109,7 @@ func.api.call_system_api = async function (api_method, payload) {
|
|
|
1109
1109
|
|
|
1110
1110
|
return await api_utils.call_system_api(api_method, payload, null);
|
|
1111
1111
|
};
|
|
1112
|
-
func.api.
|
|
1112
|
+
func.api.dbs_read = async function (table_id, selector, fields, sort, limit, skip,) {
|
|
1113
1113
|
const SESSION_ID = Object.keys(SESSION_OBJ)[0];
|
|
1114
1114
|
const api_utils = await func.common.get_module(
|
|
1115
1115
|
SESSION_ID,
|
|
@@ -1124,7 +1124,25 @@ func.api.call_external_api = async function (method, url, payload) {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
);
|
|
1126
1126
|
|
|
1127
|
-
return await api_utils.
|
|
1127
|
+
return await api_utils.dbs_read(table_id, selector, fields, sort, limit, skip,);
|
|
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);
|
|
1128
1146
|
};
|
|
1129
1147
|
|
|
1130
1148
|
func.api.call_javascript = async function (prog_id, params, evaluate) {
|