@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/index.js CHANGED
@@ -1,5 +1,3 @@
1
-
2
- !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]="e1cb75dd-cee5-50ef-9ae8-80ab2cccd402")}catch(e){}}();
3
1
  var __webpack_modules__ = {
4
2
  "./src/utils/XhsXsCommonEnc.js": function(module) {
5
3
  var encrypt_lookup = [
@@ -4402,9 +4400,7 @@ var __webpack_exports__ = {};
4402
4400
  });
4403
4401
  const package_json_namespaceObject = require("@iflyrpa/share/package.json");
4404
4402
  var package_json_default = /*#__PURE__*/ __webpack_require__.n(package_json_namespaceObject);
4405
- var package_namespaceObject = {
4406
- i8: "4.0.4"
4407
- };
4403
+ var package_namespaceObject = JSON.parse('{"i8":"4.0.6-beta.0"}');
4408
4404
  const share_namespaceObject = require("@iflyrpa/share");
4409
4405
  const external_node_fs_namespaceObject = require("node:fs");
4410
4406
  var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
@@ -13457,7 +13453,7 @@ var __webpack_exports__ = {};
13457
13453
  }
13458
13454
  const mock_mockAction = async (task, params)=>{
13459
13455
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
13460
- 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 (0, share_namespaceObject.response)(414, "extraParam 参数缺失或不完整", "");
13456
+ 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 (0, share_namespaceObject.response)(414, "extraParam 参数缺失或不完整", "");
13461
13457
  let currentStep = "初始化";
13462
13458
  try {
13463
13459
  currentStep = "验证账号信息";
@@ -23378,8 +23374,8 @@ var __webpack_exports__ = {};
23378
23374
  params: fetchCoverParams
23379
23375
  }, {
23380
23376
  retries: 3,
23381
- retryDelay: 20,
23382
- timeout: 3000
23377
+ retryDelay: 500,
23378
+ timeout: 30000
23383
23379
  });
23384
23380
  for (const item of batchCoverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item.fileIds)uploadInfos.push({
23385
23381
  bucket: item.bucket || "",
@@ -23398,8 +23394,8 @@ var __webpack_exports__ = {};
23398
23394
  params: fetchCoverParams
23399
23395
  }, {
23400
23396
  retries: 3,
23401
- retryDelay: 20,
23402
- timeout: 3000
23397
+ retryDelay: 500,
23398
+ timeout: 30000
23403
23399
  });
23404
23400
  for (const item of coverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item.fileIds)uploadInfos.push({
23405
23401
  bucket: item.bucket || "",
@@ -23460,7 +23456,9 @@ var __webpack_exports__ = {};
23460
23456
  headers: {
23461
23457
  "x-cos-security-token": ossToken
23462
23458
  },
23463
- defaultErrorMsg: "图片上传异常,请稍后重试发布。"
23459
+ defaultErrorMsg: "图片上传异常,请稍后重试。"
23460
+ }, {
23461
+ timeout: 60000
23464
23462
  });
23465
23463
  return {
23466
23464
  ossFileId,
@@ -23470,6 +23468,8 @@ var __webpack_exports__ = {};
23470
23468
  originSize
23471
23469
  };
23472
23470
  } catch (error) {
23471
+ const e = Http.handleApiError(error);
23472
+ 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)}`);
23473
23473
  attempt++;
23474
23474
  }
23475
23475
  }
@@ -24449,8 +24449,8 @@ var __webpack_exports__ = {};
24449
24449
  params: fetchCoverParams
24450
24450
  }, {
24451
24451
  retries: 3,
24452
- retryDelay: 20,
24453
- timeout: 3000
24452
+ retryDelay: 500,
24453
+ timeout: 8000
24454
24454
  });
24455
24455
  for (const item of batchCoverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item?.fileIds ?? [])uploadInfos.push({
24456
24456
  bucket: item.bucket || "",
@@ -24469,8 +24469,8 @@ var __webpack_exports__ = {};
24469
24469
  params: fetchCoverParams
24470
24470
  }, {
24471
24471
  retries: 3,
24472
- retryDelay: 20,
24473
- timeout: 3000
24472
+ retryDelay: 500,
24473
+ timeout: 8000
24474
24474
  });
24475
24475
  for (const item of coverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item?.fileIds ?? [])uploadInfos.push({
24476
24476
  bucket: item.bucket || "",
@@ -24515,6 +24515,8 @@ var __webpack_exports__ = {};
24515
24515
  "x-cos-security-token": ossToken
24516
24516
  },
24517
24517
  defaultErrorMsg: "图片上传异常,请稍后重试发布。"
24518
+ }, {
24519
+ timeout: 60000
24518
24520
  });
24519
24521
  return {
24520
24522
  ossFileId,
@@ -25675,5 +25677,4 @@ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_targe
25675
25677
  value: true
25676
25678
  });
25677
25679
 
25678
- //# sourceMappingURL=index.js.map
25679
- //# debugId=e1cb75dd-cee5-50ef-9ae8-80ab2cccd402
25680
+ //# sourceMappingURL=index.js.map