@xuda.io/xuda-worker-bundle-min 1.3.645 → 1.3.647

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 +23 -20
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -6150,7 +6150,7 @@ func.utils.get_drive_url = function (SESSION_ID, val, wrap) {
6150
6150
  _app.is_deployment ? _app.app_datacenter_id : _app.app_id_reference
6151
6151
  }/`;
6152
6152
 
6153
- const FILE_REPLACE_URL = `${url}${val}?token=${_session.opt.token}`;
6153
+ const FILE_REPLACE_URL = `${url}${val}?token=${_session.app_token}`;
6154
6154
 
6155
6155
  let match = `drv_${
6156
6156
  _app.app_replicate || _session.APP_ID
@@ -6224,15 +6224,17 @@ func.utils.debug_report = async function (
6224
6224
  // }
6225
6225
  }, 1000);
6226
6226
 
6227
- func.utils.alerts.invoke(
6228
- SESSION_ID,
6229
- "system_msg",
6230
- "SYS_MSG_1240",
6231
- "debug",
6232
- null,
6233
- msgP,
6234
- sourceP //arguments.callee.caller.toString()- deprecated es6
6235
- );
6227
+ // // temp inactive cause to loop
6228
+
6229
+ // func.utils.alerts.invoke(
6230
+ // SESSION_ID,
6231
+ // "system_msg",
6232
+ // "SYS_MSG_1240",
6233
+ // "debug",
6234
+ // null,
6235
+ // msgP,
6236
+ // sourceP //arguments.callee.caller.toString()- deprecated es6
6237
+ // );
6236
6238
  console.error("XUDA", "ERROR", sourceP, msgP, details);
6237
6239
 
6238
6240
  if (
@@ -6262,7 +6264,7 @@ func.utils.debug_report = async function (
6262
6264
  source: "runtime",
6263
6265
  app_id: _session.APP_ID,
6264
6266
  gtp_token: _session.gtp_token,
6265
- token: _session.opt.token,
6267
+ app_token: _session.app_token,
6266
6268
  };
6267
6269
 
6268
6270
  return func.utils.post_back_to_client(
@@ -6273,14 +6275,15 @@ func.utils.debug_report = async function (
6273
6275
  );
6274
6276
  }
6275
6277
 
6276
- if (!glb.IS_WORKER) {
6277
- await func.common.db(SESSION_ID, "write_log", {
6278
- client_id: _session?.SYS_GLOBAL_OBJ_CLIENT_INFO?.fingerprint,
6279
- source: sourceP,
6280
- log_type: "error",
6281
- msg: msgP,
6282
- });
6283
- }
6278
+ // // temp inactive cause to loop
6279
+ // if (!glb.IS_WORKER) {
6280
+ // await func.common.db(SESSION_ID, "write_log", {
6281
+ // client_id: _session?.SYS_GLOBAL_OBJ_CLIENT_INFO?.fingerprint,
6282
+ // source: sourceP,
6283
+ // log_type: "error",
6284
+ // msg: msgP,
6285
+ // });
6286
+ // }
6284
6287
  }
6285
6288
  if (typeP === "W") console.warn("XUDA", "WARNING", msgP, details);
6286
6289
  if (typeP === "I") console.log("XUDA", "INFO", msgP, details);
@@ -7201,7 +7204,7 @@ func.utils.call_plugin_api = function (SESSION_ID, plugin_nameP, dataP) {
7201
7204
  debug: glb.DEBUG_MODE,
7202
7205
  uid: _session.USR_OBJ._id,
7203
7206
  gtp_token: _session.gtp_token,
7204
- token: _session.opt.token,
7207
+ app_token: _session.app_token,
7205
7208
  };
7206
7209
 
7207
7210
  data = _.assignIn(data, dataP);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.645",
3
+ "version": "1.3.647",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {