@xuda.io/xuda-worker-bundle-min 1.3.256 → 1.3.258
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 +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -739,7 +739,7 @@ var WEBSOCKET_PROCESS_PID = null;
|
|
|
739
739
|
|
|
740
740
|
glb.worker_queue_num = 0;
|
|
741
741
|
|
|
742
|
-
func.common.get_module = async function (SESSION_ID, module, paramsP) {
|
|
742
|
+
func.common.get_module = async function (SESSION_ID, module, paramsP = {}) {
|
|
743
743
|
let ret;
|
|
744
744
|
|
|
745
745
|
const get_ret = async function (src) {
|
|
@@ -773,7 +773,7 @@ func.common.get_module = async function (SESSION_ID, module, paramsP) {
|
|
|
773
773
|
return params;
|
|
774
774
|
};
|
|
775
775
|
const invoke_init_module = function (module_ret, params) {
|
|
776
|
-
if (!module_ret.init_module) return;
|
|
776
|
+
if (!module_ret.init_module) return module_ret;
|
|
777
777
|
|
|
778
778
|
module_ret.init_module(params);
|
|
779
779
|
return module_ret;
|