@iflyrpa/actions 4.0.4 → 4.0.6-beta.0

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.
package/dist/bundle.js CHANGED
@@ -1,6 +1,4 @@
1
1
  /*! For license information please see bundle.js.LICENSE.txt */
2
-
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="aed90b90-6fd5-5e1b-ba81-6ede67b0dc32")}catch(e){}}();
4
2
  var __webpack_modules__ = {
5
3
  "../../node_modules/.pnpm/agent-base@7.1.4/node_modules/agent-base/dist/helpers.js": function(__unused_webpack_module, exports1, __webpack_require__) {
6
4
  "use strict";
@@ -12492,9 +12490,7 @@ var __webpack_exports__ = {};
12492
12490
  var package_namespaceObject = {
12493
12491
  i8: "0.1.2"
12494
12492
  };
12495
- var package_namespaceObject_0 = {
12496
- i8: "4.0.4"
12497
- };
12493
+ var package_namespaceObject_0 = JSON.parse('{"i8":"4.0.6-beta.0"}');
12498
12494
  const external_node_fs_namespaceObject = require("node:fs");
12499
12495
  var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
12500
12496
  const external_node_http_namespaceObject = require("node:http");
@@ -38528,7 +38524,7 @@ var __webpack_exports__ = {};
38528
38524
  }
38529
38525
  const mock_mockAction = async (task, params)=>{
38530
38526
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
38531
- if (!params.extraParam || !params.extraParam["security-sdk/s_sdk_pri_key"] || !params.extraParam["security-sdk/s_sdk_pub_key"] || !params.extraParam["security-sdk/s_sdk_sign_data_key/web_protect"] || !params.extraParam["security-sdk/s_sdk_server_cert_key"] || !params.extraParam["security-sdk/s_sdk_crypt_sdk"]) return utils_response(414, "extraParam 参数缺失或不完整", "");
38527
+ if (!params.extraParam || !params.extraParam["security-sdk/s_sdk_sign_data_key/web_protect"] || !params.extraParam["security-sdk/s_sdk_server_cert_key"] || !params.extraParam["security-sdk/s_sdk_crypt_sdk"]) return utils_response(414, "extraParam 参数缺失或不完整", "");
38532
38528
  let currentStep = "初始化";
38533
38529
  try {
38534
38530
  currentStep = "验证账号信息";
@@ -48449,8 +48445,8 @@ var __webpack_exports__ = {};
48449
48445
  params: fetchCoverParams
48450
48446
  }, {
48451
48447
  retries: 3,
48452
- retryDelay: 20,
48453
- timeout: 3000
48448
+ retryDelay: 500,
48449
+ timeout: 30000
48454
48450
  });
48455
48451
  for (const item of batchCoverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item.fileIds)uploadInfos.push({
48456
48452
  bucket: item.bucket || "",
@@ -48469,8 +48465,8 @@ var __webpack_exports__ = {};
48469
48465
  params: fetchCoverParams
48470
48466
  }, {
48471
48467
  retries: 3,
48472
- retryDelay: 20,
48473
- timeout: 3000
48468
+ retryDelay: 500,
48469
+ timeout: 30000
48474
48470
  });
48475
48471
  for (const item of coverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item.fileIds)uploadInfos.push({
48476
48472
  bucket: item.bucket || "",
@@ -48531,7 +48527,9 @@ var __webpack_exports__ = {};
48531
48527
  headers: {
48532
48528
  "x-cos-security-token": ossToken
48533
48529
  },
48534
- defaultErrorMsg: "图片上传异常,请稍后重试发布。"
48530
+ defaultErrorMsg: "图片上传异常,请稍后重试。"
48531
+ }, {
48532
+ timeout: 60000
48535
48533
  });
48536
48534
  return {
48537
48535
  ossFileId,
@@ -48541,6 +48539,8 @@ var __webpack_exports__ = {};
48541
48539
  originSize
48542
48540
  };
48543
48541
  } catch (error) {
48542
+ const e = Http.handleApiError(error);
48543
+ task.logger.warn(`[xhs upload] 第${attempt + 1}次失败 index=${index} bucket=${ossBucketIndex} domain=${ossDomain} fileId=${ossFileId} code=${e.code} msg=${e.message} data=${stringifyError(e.data)}`);
48544
48544
  attempt++;
48545
48545
  }
48546
48546
  }
@@ -49520,8 +49520,8 @@ var __webpack_exports__ = {};
49520
49520
  params: fetchCoverParams
49521
49521
  }, {
49522
49522
  retries: 3,
49523
- retryDelay: 20,
49524
- timeout: 3000
49523
+ retryDelay: 500,
49524
+ timeout: 8000
49525
49525
  });
49526
49526
  for (const item of batchCoverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item?.fileIds ?? [])uploadInfos.push({
49527
49527
  bucket: item.bucket || "",
@@ -49540,8 +49540,8 @@ var __webpack_exports__ = {};
49540
49540
  params: fetchCoverParams
49541
49541
  }, {
49542
49542
  retries: 3,
49543
- retryDelay: 20,
49544
- timeout: 3000
49543
+ retryDelay: 500,
49544
+ timeout: 8000
49545
49545
  });
49546
49546
  for (const item of coverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item?.fileIds ?? [])uploadInfos.push({
49547
49547
  bucket: item.bucket || "",
@@ -49586,6 +49586,8 @@ var __webpack_exports__ = {};
49586
49586
  "x-cos-security-token": ossToken
49587
49587
  },
49588
49588
  defaultErrorMsg: "图片上传异常,请稍后重试发布。"
49589
+ }, {
49590
+ timeout: 60000
49589
49591
  });
49590
49592
  return {
49591
49593
  ossFileId,
@@ -50746,5 +50748,4 @@ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_targe
50746
50748
  value: true
50747
50749
  });
50748
50750
 
50749
- //# sourceMappingURL=bundle.js.map
50750
- //# debugId=aed90b90-6fd5-5e1b-ba81-6ede67b0dc32
50751
+ //# sourceMappingURL=bundle.js.map