@xuda.io/xuda-worker-bundle-min 1.3.253 → 1.3.255

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 +4 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -774,7 +774,8 @@ func.common.get_module = async function (SESSION_ID, module) {
774
774
  const invoke_init_module = function (module_ret, params) {
775
775
  if (!module_ret.init_module) return;
776
776
 
777
- return module_ret.init_module(params);
777
+ module_ret.init_module(params);
778
+ return module_ret;
778
779
  };
779
780
  const _session = SESSION_OBJ[SESSION_ID];
780
781
  if (_session.worker_type === "Dev") {
@@ -787,7 +788,7 @@ func.common.get_module = async function (SESSION_ID, module) {
787
788
  typeof IS_DOCKER !== "undefined" ||
788
789
  typeof IS_PROCESS_SERVER !== "undefined"
789
790
  ) {
790
- ret = await import(
791
+ ret = await get_ret(
791
792
  func.utils.get_resource_filename(
792
793
  SESSION_OBJ[SESSION_ID].engine_mode === "live_preview"
793
794
  ? ""
@@ -796,7 +797,7 @@ func.common.get_module = async function (SESSION_ID, module) {
796
797
  )
797
798
  );
798
799
  } else {
799
- ret = await import(
800
+ ret = await get_ret(
800
801
  func.common.get_url(
801
802
  SESSION_ID,
802
803
  "dist",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.253",
3
+ "version": "1.3.255",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {