@xuda.io/xuda-worker-bundle-min 1.3.326 → 1.3.328

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 +7 -71
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -728,7 +728,7 @@ func.common.get_module = async function (SESSION_ID, module, paramsP = {}) {
728
728
 
729
729
  return module_ret.XudaModule
730
730
  ? new module_ret.XudaModule(params)
731
- : invoke_init_module(module_ret, params);
731
+ : await invoke_init_module(module_ret, params);
732
732
  };
733
733
 
734
734
  const get_params = function () {
@@ -736,6 +736,7 @@ func.common.get_module = async function (SESSION_ID, module, paramsP = {}) {
736
736
  glb,
737
737
  func,
738
738
  APP_OBJ,
739
+ SESSION_ID,
739
740
  PROJECT_OBJ,
740
741
  DOCS_OBJ,
741
742
  SESSION_OBJ,
@@ -752,16 +753,16 @@ func.common.get_module = async function (SESSION_ID, module, paramsP = {}) {
752
753
 
753
754
  return params;
754
755
  };
755
- const invoke_init_module = function (module_ret, params) {
756
+ const invoke_init_module = async function (module_ret, params) {
756
757
  if (!module_ret.init_module) return module_ret;
757
758
 
758
- module_ret.init_module(params);
759
+ await module_ret.init_module(params);
759
760
  return module_ret;
760
761
  };
761
762
  const _session = SESSION_OBJ[SESSION_ID];
762
763
  if (_session.worker_type === "Dev") {
763
764
  ret = await get_ret("./modules/" + module);
764
- // invoke_init_module();
765
+
765
766
  return ret;
766
767
  }
767
768
  if (_session.worker_type === "Debug") {
@@ -791,7 +792,7 @@ func.common.get_module = async function (SESSION_ID, module, paramsP = {}) {
791
792
  )
792
793
  );
793
794
  }
794
- // invoke_init_module();
795
+
795
796
  return ret;
796
797
  }
797
798
 
@@ -827,7 +828,7 @@ func.common.get_module = async function (SESSION_ID, module, paramsP = {}) {
827
828
  )
828
829
  );
829
830
  }
830
- // invoke_init_module();
831
+
831
832
  return ret;
832
833
  };
833
834
 
@@ -847,15 +848,6 @@ func.api.set_field_value = async function (field_id, value) {
847
848
  }
848
849
  );
849
850
 
850
- // api_utils.init_module({
851
- // func,
852
- // glb,
853
- // SESSION_OBJ,
854
- // SESSION_ID,
855
- // APP_OBJ,
856
- // dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
857
- // });
858
-
859
851
  return await api_utils.set_field_value(field_id, value);
860
852
  };
861
853
  func.api.get_field_value = async function (field_id) {
@@ -873,15 +865,6 @@ func.api.get_field_value = async function (field_id) {
873
865
  }
874
866
  );
875
867
 
876
- // api_utils.init_module({
877
- // func,
878
- // glb,
879
- // SESSION_OBJ,
880
- // SESSION_ID,
881
- // APP_OBJ,
882
- // dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
883
- // });
884
-
885
868
  return await api_utils.get_field_value(field_id);
886
869
  };
887
870
  func.api.invoke_event = async function (event_id) {
@@ -899,15 +882,6 @@ func.api.invoke_event = async function (event_id) {
899
882
  }
900
883
  );
901
884
 
902
- // api_utils.init_module({
903
- // func,
904
- // glb,
905
- // SESSION_OBJ,
906
- // SESSION_ID,
907
- // APP_OBJ,
908
- // dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
909
- // });
910
-
911
885
  return await api_utils.invoke_event(event_id);
912
886
  };
913
887
  func.api.call_api_program = async function (prog_id, params) {
@@ -925,15 +899,6 @@ func.api.call_api_program = async function (prog_id, params) {
925
899
  }
926
900
  );
927
901
 
928
- // api_utils.init_module({
929
- // func,
930
- // glb,
931
- // SESSION_OBJ,
932
- // SESSION_ID,
933
- // APP_OBJ,
934
- // dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
935
- // });
936
-
937
902
  return await api_utils.call_api_program(prog_id, params, null);
938
903
  };
939
904
  glb.DEBUG_INFO_OBJ = {};
@@ -1105,15 +1070,6 @@ glb.lifecycle = {
1105
1070
  }
1106
1071
  );
1107
1072
 
1108
- // xu_api.init_module({
1109
- // func,
1110
- // glb,
1111
- // SESSION_OBJ,
1112
- // SESSION_ID,
1113
- // APP_OBJ,
1114
- // dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
1115
- // });
1116
-
1117
1073
  var params = {
1118
1074
  SESSION_ID,
1119
1075
  session_data: _session,
@@ -7826,16 +7782,6 @@ func.events.execute = async function (
7826
7782
  }
7827
7783
  );
7828
7784
 
7829
- // api_utils.init_module({
7830
- // func,
7831
- // glb,
7832
- // SESSION_OBJ,
7833
- // SESSION_ID,
7834
- // APP_OBJ,
7835
- // dsSession: dsP,
7836
- // job_id: jobNoP,
7837
- // });
7838
-
7839
7785
  const params = {
7840
7786
  SESSION_ID,
7841
7787
  method,
@@ -9105,16 +9051,6 @@ func.expression.secure_eval = async function (
9105
9051
  }
9106
9052
  );
9107
9053
 
9108
- // api_utils.init_module({
9109
- // func,
9110
- // glb,
9111
- // SESSION_OBJ,
9112
- // SESSION_ID,
9113
- // APP_OBJ,
9114
- // dsSession: dsSessionP,
9115
- // job_id,
9116
- // });
9117
-
9118
9054
  const xu = api_utils;
9119
9055
 
9120
9056
  if (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.326",
3
+ "version": "1.3.328",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {