@xuda.io/xuda-worker-bundle-min 1.3.138 → 1.3.140
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 +5 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -786,7 +786,7 @@ func.common.get_module = async function (SESSION_ID, module) {
|
|
|
786
786
|
func.api = {};
|
|
787
787
|
func.api.set_field_value = async function (field_id, value) {
|
|
788
788
|
const SESSION_ID = Object.keys(SESSION_OBJ)[0];
|
|
789
|
-
const api_utils = await func.common.get_module(
|
|
789
|
+
const { api_utils } = await func.common.get_module(
|
|
790
790
|
SESSION_ID,
|
|
791
791
|
"xuda-api-library.mjs"
|
|
792
792
|
);
|
|
@@ -804,7 +804,7 @@ func.api.set_field_value = async function (field_id, value) {
|
|
|
804
804
|
};
|
|
805
805
|
func.api.get_field_value = async function (field_id) {
|
|
806
806
|
const SESSION_ID = Object.keys(SESSION_OBJ)[0];
|
|
807
|
-
const api_utils = await func.common.get_module(
|
|
807
|
+
const { api_utils } = await func.common.get_module(
|
|
808
808
|
SESSION_ID,
|
|
809
809
|
"xuda-api-library.mjs"
|
|
810
810
|
);
|
|
@@ -822,7 +822,7 @@ func.api.get_field_value = async function (field_id) {
|
|
|
822
822
|
};
|
|
823
823
|
func.api.invoke_event = async function (event_id) {
|
|
824
824
|
const SESSION_ID = Object.keys(SESSION_OBJ)[0];
|
|
825
|
-
const api_utils = await func.common.get_module(
|
|
825
|
+
const { api_utils } = await func.common.get_module(
|
|
826
826
|
SESSION_ID,
|
|
827
827
|
"xuda-api-library.mjs"
|
|
828
828
|
);
|
|
@@ -840,7 +840,7 @@ func.api.invoke_event = async function (event_id) {
|
|
|
840
840
|
};
|
|
841
841
|
func.api.call_api_program = async function (prog_id, params) {
|
|
842
842
|
const SESSION_ID = Object.keys(SESSION_OBJ)[0];
|
|
843
|
-
const api_utils = await func.common.get_module(
|
|
843
|
+
const { api_utils } = await func.common.get_module(
|
|
844
844
|
SESSION_ID,
|
|
845
845
|
"xuda-api-library.mjs"
|
|
846
846
|
);
|
|
@@ -7622,7 +7622,7 @@ func.events.execute = async function (
|
|
|
7622
7622
|
return report_error(plugin_setup_ret);
|
|
7623
7623
|
}
|
|
7624
7624
|
|
|
7625
|
-
const api_utils = await func.common.get_module(
|
|
7625
|
+
const { api_utils } = await func.common.get_module(
|
|
7626
7626
|
SESSION_ID,
|
|
7627
7627
|
"xuda-api-library.mjs"
|
|
7628
7628
|
);
|