@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/bundle.js +6 -5
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1380,7 +1380,8 @@ const errnoMap = {
|
|
|
1380
1380
|
401100032: "异常,请检查图片(如:格式、版权、合规性等)。",
|
|
1381
1381
|
20040034: "封面图片推荐jpg、png格式,不支持gif格式。",
|
|
1382
1382
|
20040124: "服务器异常,请稍后重试!",
|
|
1383
|
-
20040001: "当前用户未登录,请登陆后重试!"
|
|
1383
|
+
20040001: "当前用户未登录,请登陆后重试!",
|
|
1384
|
+
401100025: "该应用不支持此媒资类型"
|
|
1384
1385
|
};
|
|
1385
1386
|
const mockAction = async (task, params)=>{
|
|
1386
1387
|
const { baijiahaoSingleCover, baijiahaoMultCover, baijiahaoCoverType } = params.settingInfo;
|
|
@@ -1626,7 +1627,7 @@ const rpaAction = async (task, params)=>{
|
|
|
1626
1627
|
const findActivity = activityFormItem.locator(".cheetah-form-item-control").getByText(name, {
|
|
1627
1628
|
exact: true
|
|
1628
1629
|
});
|
|
1629
|
-
if (await findActivity.count() > 0) findActivity.first().locator("..").click();
|
|
1630
|
+
if (await findActivity.count() > 0) await findActivity.first().locator("..").click();
|
|
1630
1631
|
}
|
|
1631
1632
|
}
|
|
1632
1633
|
const { articleId, message } = await new Promise(async (resolve)=>{
|
|
@@ -1643,7 +1644,7 @@ const rpaAction = async (task, params)=>{
|
|
|
1643
1644
|
};
|
|
1644
1645
|
page.on("response", handleResponse);
|
|
1645
1646
|
const operatorContainer = page.locator(".editor-component-operator");
|
|
1646
|
-
if ("draft" === params.saveType) operatorContainer.locator(".op-btn-outter-content").filter({
|
|
1647
|
+
if ("draft" === params.saveType) await operatorContainer.locator(".op-btn-outter-content").filter({
|
|
1647
1648
|
hasText: "存草稿"
|
|
1648
1649
|
}).locator("button").click();
|
|
1649
1650
|
else if (params.settingInfo.timer) {
|
|
@@ -1708,7 +1709,7 @@ const rpaAction = async (task, params)=>{
|
|
|
1708
1709
|
await page.locator(".cheetah-modal-confirm-btns button").filter({
|
|
1709
1710
|
hasText: "定时发布"
|
|
1710
1711
|
}).click();
|
|
1711
|
-
} else operatorContainer.locator(".op-btn-outter-content").filter({
|
|
1712
|
+
} else await operatorContainer.locator(".op-btn-outter-content").filter({
|
|
1712
1713
|
hasText: /^发布/
|
|
1713
1714
|
}).locator("button").click();
|
|
1714
1715
|
});
|
|
@@ -5309,7 +5310,7 @@ const xiaohongshuPublish = async (task, params)=>{
|
|
|
5309
5310
|
if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
|
|
5310
5311
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
5311
5312
|
};
|
|
5312
|
-
var package_namespaceObject = JSON.parse('{"i8":"1.2.16-beta.
|
|
5313
|
+
var package_namespaceObject = JSON.parse('{"i8":"1.2.16-beta.8"}');
|
|
5313
5314
|
class Action {
|
|
5314
5315
|
constructor(task){
|
|
5315
5316
|
this.task = task;
|