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

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 +125 -66
  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;
@@ -855,17 +856,25 @@ func.api.set_field_value = async function (field_id, value) {
855
856
  const SESSION_ID = Object.keys(SESSION_OBJ)[0];
856
857
  const api_utils = await func.common.get_module(
857
858
  SESSION_ID,
858
- "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
+ }
859
868
  );
860
869
 
861
- api_utils.init_module({
862
- func,
863
- glb,
864
- SESSION_OBJ,
865
- SESSION_ID,
866
- APP_OBJ,
867
- dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
868
- });
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
+ // });
869
878
 
870
879
  return await api_utils.set_field_value(field_id, value);
871
880
  };
@@ -873,17 +882,25 @@ func.api.get_field_value = async function (field_id) {
873
882
  const SESSION_ID = Object.keys(SESSION_OBJ)[0];
874
883
  const api_utils = await func.common.get_module(
875
884
  SESSION_ID,
876
- "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
+ }
877
894
  );
878
895
 
879
- api_utils.init_module({
880
- func,
881
- glb,
882
- SESSION_OBJ,
883
- SESSION_ID,
884
- APP_OBJ,
885
- dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
886
- });
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
+ // });
887
904
 
888
905
  return await api_utils.get_field_value(field_id);
889
906
  };
@@ -891,17 +908,25 @@ func.api.invoke_event = async function (event_id) {
891
908
  const SESSION_ID = Object.keys(SESSION_OBJ)[0];
892
909
  const api_utils = await func.common.get_module(
893
910
  SESSION_ID,
894
- "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
+ }
895
920
  );
896
921
 
897
- api_utils.init_module({
898
- func,
899
- glb,
900
- SESSION_OBJ,
901
- SESSION_ID,
902
- APP_OBJ,
903
- dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
904
- });
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
+ // });
905
930
 
906
931
  return await api_utils.invoke_event(event_id);
907
932
  };
@@ -909,17 +934,25 @@ func.api.call_api_program = async function (prog_id, params) {
909
934
  const SESSION_ID = Object.keys(SESSION_OBJ)[0];
910
935
  const api_utils = await func.common.get_module(
911
936
  SESSION_ID,
912
- "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
+ }
913
946
  );
914
947
 
915
- api_utils.init_module({
916
- func,
917
- glb,
918
- SESSION_OBJ,
919
- SESSION_ID,
920
- APP_OBJ,
921
- dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
922
- });
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
+ // });
923
956
 
924
957
  return await api_utils.call_api_program(prog_id, params, null);
925
958
  };
@@ -1135,17 +1168,25 @@ glb.lifecycle = {
1135
1168
 
1136
1169
  const xu_api = await func.common.get_module(
1137
1170
  SESSION_ID,
1138
- "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
+ }
1139
1180
  );
1140
1181
 
1141
- xu_api.init_module({
1142
- func,
1143
- glb,
1144
- SESSION_OBJ,
1145
- SESSION_ID,
1146
- APP_OBJ,
1147
- dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).length - 1,
1148
- });
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
+ // });
1149
1190
 
1150
1191
  var params = {
1151
1192
  SESSION_ID,
@@ -7686,18 +7727,27 @@ func.events.execute = async function (
7686
7727
 
7687
7728
  const api_utils = await func.common.get_module(
7688
7729
  SESSION_ID,
7689
- "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
+ }
7690
7740
  );
7691
7741
 
7692
- api_utils.init_module({
7693
- func,
7694
- glb,
7695
- SESSION_OBJ,
7696
- SESSION_ID,
7697
- APP_OBJ,
7698
- dsSession: dsP,
7699
- job_id: jobNoP,
7700
- });
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
+ // });
7701
7751
 
7702
7752
  const params = {
7703
7753
  SESSION_ID,
@@ -8956,18 +9006,27 @@ func.expression.secure_eval = async function (
8956
9006
  ) {
8957
9007
  const api_utils = await func.common.get_module(
8958
9008
  SESSION_ID,
8959
- "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
+ }
8960
9019
  );
8961
9020
 
8962
- api_utils.init_module({
8963
- func,
8964
- glb,
8965
- SESSION_OBJ,
8966
- SESSION_ID,
8967
- APP_OBJ,
8968
- dsSession: dsSessionP,
8969
- job_id,
8970
- });
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
+ // });
8971
9030
 
8972
9031
  const xu = api_utils;
8973
9032
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.255",
3
+ "version": "1.3.257",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {