@iflyrpa/actions 1.2.16-beta.7 → 1.2.16-beta.9

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
@@ -1428,7 +1428,8 @@ var __webpack_exports__ = {};
1428
1428
  401100032: "异常,请检查图片(如:格式、版权、合规性等)。",
1429
1429
  20040034: "封面图片推荐jpg、png格式,不支持gif格式。",
1430
1430
  20040124: "服务器异常,请稍后重试!",
1431
- 20040001: "当前用户未登录,请登陆后重试!"
1431
+ 20040001: "当前用户未登录,请登陆后重试!",
1432
+ 401100025: "该应用不支持此媒资类型"
1432
1433
  };
1433
1434
  const mockAction = async (task, params)=>{
1434
1435
  const { baijiahaoSingleCover, baijiahaoMultCover, baijiahaoCoverType } = params.settingInfo;
@@ -1674,7 +1675,7 @@ var __webpack_exports__ = {};
1674
1675
  const findActivity = activityFormItem.locator(".cheetah-form-item-control").getByText(name, {
1675
1676
  exact: true
1676
1677
  });
1677
- if (await findActivity.count() > 0) findActivity.first().locator("..").click();
1678
+ if (await findActivity.count() > 0) await findActivity.first().locator("..").click();
1678
1679
  }
1679
1680
  }
1680
1681
  const { articleId, message } = await new Promise(async (resolve)=>{
@@ -1691,7 +1692,7 @@ var __webpack_exports__ = {};
1691
1692
  };
1692
1693
  page.on("response", handleResponse);
1693
1694
  const operatorContainer = page.locator(".editor-component-operator");
1694
- if ("draft" === params.saveType) operatorContainer.locator(".op-btn-outter-content").filter({
1695
+ if ("draft" === params.saveType) await operatorContainer.locator(".op-btn-outter-content").filter({
1695
1696
  hasText: "存草稿"
1696
1697
  }).locator("button").click();
1697
1698
  else if (params.settingInfo.timer) {
@@ -1756,7 +1757,7 @@ var __webpack_exports__ = {};
1756
1757
  await page.locator(".cheetah-modal-confirm-btns button").filter({
1757
1758
  hasText: "定时发布"
1758
1759
  }).click();
1759
- } else operatorContainer.locator(".op-btn-outter-content").filter({
1760
+ } else await operatorContainer.locator(".op-btn-outter-content").filter({
1760
1761
  hasText: /^发布/
1761
1762
  }).locator("button").click();
1762
1763
  });
@@ -5360,7 +5361,7 @@ var __webpack_exports__ = {};
5360
5361
  if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
5361
5362
  return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
5362
5363
  };
5363
- var package_namespaceObject = JSON.parse('{"i8":"1.2.16-beta.6"}');
5364
+ var package_namespaceObject = JSON.parse('{"i8":"1.2.16-beta.8"}');
5364
5365
  class Action {
5365
5366
  constructor(task){
5366
5367
  this.task = task;