@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.mjs 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]="b88e36bc-ad59-5586-98ef-aba93fe1c33f")}catch(e){}}();
3
1
  import * as __WEBPACK_EXTERNAL_MODULE_crypto__ from "crypto";
4
2
  import * as __WEBPACK_EXTERNAL_MODULE_fs__ from "fs";
5
3
  import * as __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_package_json_58ae5f06__ from "@iflyrpa/share/package.json";
@@ -4352,9 +4350,7 @@ function __webpack_require__(moduleId) {
4352
4350
  return module;
4353
4351
  };
4354
4352
  })();
4355
- var package_namespaceObject = {
4356
- i8: "4.0.4"
4357
- };
4353
+ var package_namespaceObject = JSON.parse('{"i8":"4.0.6-beta.0"}');
4358
4354
  const PROXY_CREDENTIALS = [
4359
4355
  {
4360
4356
  ip: "47.110.131.129",
@@ -13380,7 +13376,7 @@ function safeSerialize(obj) {
13380
13376
  }
13381
13377
  const mock_mockAction = async (task, params)=>{
13382
13378
  const updateTaskState = task.taskStageStore?.update?.bind(task.taskStageStore, task.taskId || "");
13383
- 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, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.response)(414, "extraParam 参数缺失或不完整", "");
13379
+ 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, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.response)(414, "extraParam 参数缺失或不完整", "");
13384
13380
  let currentStep = "初始化";
13385
13381
  try {
13386
13382
  currentStep = "验证账号信息";
@@ -23297,8 +23293,8 @@ const xiaohongshuPublish_mock_mockAction = async (task, params)=>{
23297
23293
  params: fetchCoverParams
23298
23294
  }, {
23299
23295
  retries: 3,
23300
- retryDelay: 20,
23301
- timeout: 3000
23296
+ retryDelay: 500,
23297
+ timeout: 30000
23302
23298
  });
23303
23299
  for (const item of batchCoverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item.fileIds)uploadInfos.push({
23304
23300
  bucket: item.bucket || "",
@@ -23317,8 +23313,8 @@ const xiaohongshuPublish_mock_mockAction = async (task, params)=>{
23317
23313
  params: fetchCoverParams
23318
23314
  }, {
23319
23315
  retries: 3,
23320
- retryDelay: 20,
23321
- timeout: 3000
23316
+ retryDelay: 500,
23317
+ timeout: 30000
23322
23318
  });
23323
23319
  for (const item of coverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item.fileIds)uploadInfos.push({
23324
23320
  bucket: item.bucket || "",
@@ -23379,7 +23375,9 @@ const xiaohongshuPublish_mock_mockAction = async (task, params)=>{
23379
23375
  headers: {
23380
23376
  "x-cos-security-token": ossToken
23381
23377
  },
23382
- defaultErrorMsg: "图片上传异常,请稍后重试发布。"
23378
+ defaultErrorMsg: "图片上传异常,请稍后重试。"
23379
+ }, {
23380
+ timeout: 60000
23383
23381
  });
23384
23382
  return {
23385
23383
  ossFileId,
@@ -23389,6 +23387,8 @@ const xiaohongshuPublish_mock_mockAction = async (task, params)=>{
23389
23387
  originSize
23390
23388
  };
23391
23389
  } catch (error) {
23390
+ const e = Http.handleApiError(error);
23391
+ 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)}`);
23392
23392
  attempt++;
23393
23393
  }
23394
23394
  }
@@ -24368,8 +24368,8 @@ const rpaAction_Server_Mock = async (task, params)=>{
24368
24368
  params: fetchCoverParams
24369
24369
  }, {
24370
24370
  retries: 3,
24371
- retryDelay: 20,
24372
- timeout: 3000
24371
+ retryDelay: 500,
24372
+ timeout: 8000
24373
24373
  });
24374
24374
  for (const item of batchCoverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item?.fileIds ?? [])uploadInfos.push({
24375
24375
  bucket: item.bucket || "",
@@ -24388,8 +24388,8 @@ const rpaAction_Server_Mock = async (task, params)=>{
24388
24388
  params: fetchCoverParams
24389
24389
  }, {
24390
24390
  retries: 3,
24391
- retryDelay: 20,
24392
- timeout: 3000
24391
+ retryDelay: 500,
24392
+ timeout: 8000
24393
24393
  });
24394
24394
  for (const item of coverIdInfo?.data?.uploadTempPermits ?? [])for (const fileId of item?.fileIds ?? [])uploadInfos.push({
24395
24395
  bucket: item.bucket || "",
@@ -24434,6 +24434,8 @@ const rpaAction_Server_Mock = async (task, params)=>{
24434
24434
  "x-cos-security-token": ossToken
24435
24435
  },
24436
24436
  defaultErrorMsg: "图片上传异常,请稍后重试发布。"
24437
+ }, {
24438
+ timeout: 60000
24437
24439
  });
24438
24440
  return {
24439
24441
  ossFileId,
@@ -25590,5 +25592,4 @@ class Action {
25590
25592
  var __webpack_exports__version = package_namespaceObject.i8;
25591
25593
  export { Action, ActionCommonParamsSchema, BaijiahaoPublishParamsSchema, BetaFlag, CollectionDetailSchema, ConfigDataSchema, DouyinCheckVerifyQrCodeParamsSchema, DouyinCreateCommentReplyParamsSchema, DouyinGetCollectionParamsSchema, DouyinGetCommentListParamsSchema, DouyinGetCommentReplyListParamsSchema, DouyinGetHotParamsSchema, DouyinGetLocationParamsSchema, DouyinGetMusicByCategoryParamsSchema, DouyinGetMusicCategoryParamsSchema, DouyinGetMusicParamsSchema, DouyinGetTopicsParamsSchema, DouyinGetVerifyQrCodeParamsSchema, DouyinGetWorkListParamsSchema, DouyinPublishParamsSchema, FetchArticlesDataSchema, FetchArticlesParamsSchema, Http, ProxyAgent, SearchAccountInfoParamsSchema, SessionCheckResultSchema, ShipinhaoCheckLinkValidateParamsSchema, ShipinhaoGetLocationParamsSchema, ShipinhaoGetMsgParamsSchema, ShipinhaoPublishParamsSchema, ShipinhaoSendMsgParamsSchema, ToutiaoPublishParamsSchema, UnreadCountSchema, WeixinPublishParamsSchema, WxBjhSessionParamsSchema, XhsWebSearchParamsSchema, XiaohongshuPublishParamsSchema, bjhConfigDataSchema, douyinConfigDataSchema, getFileState, reportLogger, rpaAction_Server_Mock, shipinhaoConfigDataSchema, ttConfigDataSchema, wxConfigDataSchema, xhsConfigDataSchema, __webpack_exports__version as version };
25592
25594
 
25593
- //# sourceMappingURL=index.mjs.map
25594
- //# debugId=b88e36bc-ad59-5586-98ef-aba93fe1c33f
25595
+ //# sourceMappingURL=index.mjs.map