@xuda.io/xuda-worker-bundle-min 1.3.254 → 1.3.256

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 +127 -67
  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) {
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) {
@@ -760,6 +760,7 @@ func.common.get_module = async function (SESSION_ID, module) {
760
760
  DOCS_OBJ,
761
761
  SESSION_OBJ,
762
762
  _,
763
+ ...paramsP,
763
764
  };
764
765
  if (typeof IS_PROCESS_SERVER !== "undefined")
765
766
  params.IS_PROCESS_SERVER = IS_PROCESS_SERVER;
@@ -774,7 +775,8 @@ func.common.get_module = async function (SESSION_ID, module) {
774
775
  const invoke_init_module = function (module_ret, params) {
775
776
  if (!module_ret.init_module) return;
776
777
 
777
- return module_ret.init_module(params);
778
+ module_ret.init_module(params);
779
+ return module_ret;
778
780
  };
779
781
  const _session = SESSION_OBJ[SESSION_ID];
780
782
  if (_session.worker_type === "Dev") {
@@ -854,17 +856,25 @@ func.api.set_field_value = async function (field_id, value) {
854
856
  const SESSION_ID = Object.keys(SESSION_OBJ)[0];
855
857
  const api_utils = await func.common.get_module(
856
858
  SESSION_ID,
857
- "xuda-api-library.mjs"
859
+ "xuda-api-library.mjs",
860
+ {
861
+ func,
862
+ glb,
863
+ SESSION_OBJ,
864
+ SESSION_ID,
865
+ APP_OBJ,
866
+ dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
867
+ }
858
868
  );
859
869
 
860
- api_utils.init_module({
861
- func,
862
- glb,
863
- SESSION_OBJ,
864
- SESSION_ID,
865
- APP_OBJ,
866
- dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
867
- });
870
+ // api_utils.init_module({
871
+ // func,
872
+ // glb,
873
+ // SESSION_OBJ,
874
+ // SESSION_ID,
875
+ // APP_OBJ,
876
+ // dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
877
+ // });
868
878
 
869
879
  return await api_utils.set_field_value(field_id, value);
870
880
  };
@@ -872,17 +882,25 @@ func.api.get_field_value = async function (field_id) {
872
882
  const SESSION_ID = Object.keys(SESSION_OBJ)[0];
873
883
  const api_utils = await func.common.get_module(
874
884
  SESSION_ID,
875
- "xuda-api-library.mjs"
885
+ "xuda-api-library.mjs",
886
+ {
887
+ func,
888
+ glb,
889
+ SESSION_OBJ,
890
+ SESSION_ID,
891
+ APP_OBJ,
892
+ dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
893
+ }
876
894
  );
877
895
 
878
- api_utils.init_module({
879
- func,
880
- glb,
881
- SESSION_OBJ,
882
- SESSION_ID,
883
- APP_OBJ,
884
- dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
885
- });
896
+ // api_utils.init_module({
897
+ // func,
898
+ // glb,
899
+ // SESSION_OBJ,
900
+ // SESSION_ID,
901
+ // APP_OBJ,
902
+ // dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
903
+ // });
886
904
 
887
905
  return await api_utils.get_field_value(field_id);
888
906
  };
@@ -890,17 +908,25 @@ func.api.invoke_event = async function (event_id) {
890
908
  const SESSION_ID = Object.keys(SESSION_OBJ)[0];
891
909
  const api_utils = await func.common.get_module(
892
910
  SESSION_ID,
893
- "xuda-api-library.mjs"
911
+ "xuda-api-library.mjs",
912
+ {
913
+ func,
914
+ glb,
915
+ SESSION_OBJ,
916
+ SESSION_ID,
917
+ APP_OBJ,
918
+ dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
919
+ }
894
920
  );
895
921
 
896
- api_utils.init_module({
897
- func,
898
- glb,
899
- SESSION_OBJ,
900
- SESSION_ID,
901
- APP_OBJ,
902
- dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
903
- });
922
+ // api_utils.init_module({
923
+ // func,
924
+ // glb,
925
+ // SESSION_OBJ,
926
+ // SESSION_ID,
927
+ // APP_OBJ,
928
+ // dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
929
+ // });
904
930
 
905
931
  return await api_utils.invoke_event(event_id);
906
932
  };
@@ -908,17 +934,25 @@ func.api.call_api_program = async function (prog_id, params) {
908
934
  const SESSION_ID = Object.keys(SESSION_OBJ)[0];
909
935
  const api_utils = await func.common.get_module(
910
936
  SESSION_ID,
911
- "xuda-api-library.mjs"
937
+ "xuda-api-library.mjs",
938
+ {
939
+ func,
940
+ glb,
941
+ SESSION_OBJ,
942
+ SESSION_ID,
943
+ APP_OBJ,
944
+ dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
945
+ }
912
946
  );
913
947
 
914
- api_utils.init_module({
915
- func,
916
- glb,
917
- SESSION_OBJ,
918
- SESSION_ID,
919
- APP_OBJ,
920
- dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
921
- });
948
+ // api_utils.init_module({
949
+ // func,
950
+ // glb,
951
+ // SESSION_OBJ,
952
+ // SESSION_ID,
953
+ // APP_OBJ,
954
+ // dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
955
+ // });
922
956
 
923
957
  return await api_utils.call_api_program(prog_id, params, null);
924
958
  };
@@ -1134,17 +1168,25 @@ glb.lifecycle = {
1134
1168
 
1135
1169
  const xu_api = await func.common.get_module(
1136
1170
  SESSION_ID,
1137
- "xuda-api-library.mjs"
1171
+ "xuda-api-library.mjs",
1172
+ {
1173
+ func,
1174
+ glb,
1175
+ SESSION_OBJ,
1176
+ SESSION_ID,
1177
+ APP_OBJ,
1178
+ dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
1179
+ }
1138
1180
  );
1139
1181
 
1140
- xu_api.init_module({
1141
- func,
1142
- glb,
1143
- SESSION_OBJ,
1144
- SESSION_ID,
1145
- APP_OBJ,
1146
- dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
1147
- });
1182
+ // xu_api.init_module({
1183
+ // func,
1184
+ // glb,
1185
+ // SESSION_OBJ,
1186
+ // SESSION_ID,
1187
+ // APP_OBJ,
1188
+ // dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
1189
+ // });
1148
1190
 
1149
1191
  var params = {
1150
1192
  SESSION_ID,
@@ -7685,18 +7727,27 @@ func.events.execute = async function (
7685
7727
 
7686
7728
  const api_utils = await func.common.get_module(
7687
7729
  SESSION_ID,
7688
- "xuda-api-library.mjs"
7730
+ "xuda-api-library.mjs",
7731
+ {
7732
+ func,
7733
+ glb,
7734
+ SESSION_OBJ,
7735
+ SESSION_ID,
7736
+ APP_OBJ,
7737
+ dsSession: dsP,
7738
+ job_id: jobNoP,
7739
+ }
7689
7740
  );
7690
7741
 
7691
- api_utils.init_module({
7692
- func,
7693
- glb,
7694
- SESSION_OBJ,
7695
- SESSION_ID,
7696
- APP_OBJ,
7697
- dsSession: dsP,
7698
- job_id: jobNoP,
7699
- });
7742
+ // api_utils.init_module({
7743
+ // func,
7744
+ // glb,
7745
+ // SESSION_OBJ,
7746
+ // SESSION_ID,
7747
+ // APP_OBJ,
7748
+ // dsSession: dsP,
7749
+ // job_id: jobNoP,
7750
+ // });
7700
7751
 
7701
7752
  const params = {
7702
7753
  SESSION_ID,
@@ -8955,18 +9006,27 @@ func.expression.secure_eval = async function (
8955
9006
  ) {
8956
9007
  const api_utils = await func.common.get_module(
8957
9008
  SESSION_ID,
8958
- "xuda-api-library.mjs"
9009
+ "xuda-api-library.mjs",
9010
+ {
9011
+ func,
9012
+ glb,
9013
+ SESSION_OBJ,
9014
+ SESSION_ID,
9015
+ APP_OBJ,
9016
+ dsSession: dsSessionP,
9017
+ job_id,
9018
+ }
8959
9019
  );
8960
9020
 
8961
- api_utils.init_module({
8962
- func,
8963
- glb,
8964
- SESSION_OBJ,
8965
- SESSION_ID,
8966
- APP_OBJ,
8967
- dsSession: dsSessionP,
8968
- job_id,
8969
- });
9021
+ // api_utils.init_module({
9022
+ // func,
9023
+ // glb,
9024
+ // SESSION_OBJ,
9025
+ // SESSION_ID,
9026
+ // APP_OBJ,
9027
+ // dsSession: dsSessionP,
9028
+ // job_id,
9029
+ // });
8970
9030
 
8971
9031
  const xu = api_utils;
8972
9032
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.254",
3
+ "version": "1.3.256",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {