@xuda.io/xuda-worker-bundle-min 1.3.418 → 1.3.420

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 +33 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -382,7 +382,12 @@ func.common.db = async function (
382
382
  }
383
383
 
384
384
  if (doc.stat < 3) {
385
- return await func.common.perform_rpi_request(SESSION_ID, serviceP);
385
+ return await func.common.perform_rpi_request(
386
+ SESSION_ID,
387
+ serviceP,
388
+ opt,
389
+ data
390
+ );
386
391
  }
387
392
  return await func.db.pouch[serviceP](SESSION_ID, dataP);
388
393
  } catch (err) {}
@@ -398,7 +403,9 @@ func.common.db = async function (
398
403
  } catch (err) {
399
404
  const json = await func.common.perform_rpi_request(
400
405
  SESSION_ID,
401
- serviceP
406
+ serviceP,
407
+ opt,
408
+ data
402
409
  );
403
410
  if (json.opt) {
404
411
  try {
@@ -428,7 +435,12 @@ func.common.db = async function (
428
435
  await db.get(dataP.row_id);
429
436
  return await func.db.pouch[serviceP](SESSION_ID, dataP);
430
437
  } catch (err) {
431
- return await func.common.perform_rpi_request(SESSION_ID, serviceP);
438
+ return await func.common.perform_rpi_request(
439
+ SESSION_ID,
440
+ serviceP,
441
+ opt,
442
+ data
443
+ );
432
444
  }
433
445
  };
434
446
  const create_dbs_pouch = async function (db) {
@@ -436,7 +448,12 @@ func.common.db = async function (
436
448
  try {
437
449
  return await func.db.pouch[serviceP](SESSION_ID, dataP);
438
450
  } catch (err) {
439
- return await func.common.perform_rpi_request(SESSION_ID, serviceP);
451
+ return await func.common.perform_rpi_request(
452
+ SESSION_ID,
453
+ serviceP,
454
+ opt,
455
+ data
456
+ );
440
457
  }
441
458
  };
442
459
 
@@ -489,7 +506,9 @@ func.common.db = async function (
489
506
  try {
490
507
  const json = await func.common.perform_rpi_request(
491
508
  SESSION_ID,
492
- serviceP
509
+ serviceP,
510
+ opt,
511
+ data
493
512
  );
494
513
  return success_callback(json, true);
495
514
  } catch (err) {
@@ -501,7 +520,9 @@ func.common.db = async function (
501
520
  try {
502
521
  const json = await func.common.perform_rpi_request(
503
522
  SESSION_ID,
504
- serviceP
523
+ serviceP,
524
+ opt,
525
+ data
505
526
  );
506
527
  return success_callback(json, true);
507
528
  } catch (err) {
@@ -1038,7 +1059,12 @@ func.api.call_api_program = async function (prog_id, params) {
1038
1059
  return await api_utils.call_api_program(prog_id, params, null);
1039
1060
  };
1040
1061
 
1041
- func.common.perform_rpi_request = async function (SESSION_ID, serviceP) {
1062
+ func.common.perform_rpi_request = async function (
1063
+ SESSION_ID,
1064
+ serviceP,
1065
+ opt = {},
1066
+ data
1067
+ ) {
1042
1068
  var url = func.common.get_url(SESSION_ID, "rpi", "");
1043
1069
  var _session = SESSION_OBJ[SESSION_ID];
1044
1070
  const app_id = _session.APP_ID;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.418",
3
+ "version": "1.3.420",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {