@iflyrpa/actions 1.2.16-beta.7 → 1.2.16-beta.8
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 +1 -1
package/dist/bundle.js
CHANGED
|
@@ -14314,7 +14314,8 @@ var __webpack_exports__ = {};
|
|
|
14314
14314
|
401100032: "异常,请检查图片(如:格式、版权、合规性等)。",
|
|
14315
14315
|
20040034: "封面图片推荐jpg、png格式,不支持gif格式。",
|
|
14316
14316
|
20040124: "服务器异常,请稍后重试!",
|
|
14317
|
-
20040001: "当前用户未登录,请登陆后重试!"
|
|
14317
|
+
20040001: "当前用户未登录,请登陆后重试!",
|
|
14318
|
+
401100025: "该应用不支持此媒资类型"
|
|
14318
14319
|
};
|
|
14319
14320
|
const mockAction = async (task, params)=>{
|
|
14320
14321
|
const { baijiahaoSingleCover, baijiahaoMultCover, baijiahaoCoverType } = params.settingInfo;
|
|
@@ -14560,7 +14561,7 @@ var __webpack_exports__ = {};
|
|
|
14560
14561
|
const findActivity = activityFormItem.locator(".cheetah-form-item-control").getByText(name, {
|
|
14561
14562
|
exact: true
|
|
14562
14563
|
});
|
|
14563
|
-
if (await findActivity.count() > 0) findActivity.first().locator("..").click();
|
|
14564
|
+
if (await findActivity.count() > 0) await findActivity.first().locator("..").click();
|
|
14564
14565
|
}
|
|
14565
14566
|
}
|
|
14566
14567
|
const { articleId, message } = await new Promise(async (resolve)=>{
|
|
@@ -14577,7 +14578,7 @@ var __webpack_exports__ = {};
|
|
|
14577
14578
|
};
|
|
14578
14579
|
page.on("response", handleResponse);
|
|
14579
14580
|
const operatorContainer = page.locator(".editor-component-operator");
|
|
14580
|
-
if ("draft" === params.saveType) operatorContainer.locator(".op-btn-outter-content").filter({
|
|
14581
|
+
if ("draft" === params.saveType) await operatorContainer.locator(".op-btn-outter-content").filter({
|
|
14581
14582
|
hasText: "存草稿"
|
|
14582
14583
|
}).locator("button").click();
|
|
14583
14584
|
else if (params.settingInfo.timer) {
|
|
@@ -14642,7 +14643,7 @@ var __webpack_exports__ = {};
|
|
|
14642
14643
|
await page.locator(".cheetah-modal-confirm-btns button").filter({
|
|
14643
14644
|
hasText: "定时发布"
|
|
14644
14645
|
}).click();
|
|
14645
|
-
} else operatorContainer.locator(".op-btn-outter-content").filter({
|
|
14646
|
+
} else await operatorContainer.locator(".op-btn-outter-content").filter({
|
|
14646
14647
|
hasText: /^发布/
|
|
14647
14648
|
}).locator("button").click();
|
|
14648
14649
|
});
|
|
@@ -18246,7 +18247,7 @@ var __webpack_exports__ = {};
|
|
|
18246
18247
|
if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
|
|
18247
18248
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
18248
18249
|
};
|
|
18249
|
-
var package_namespaceObject = JSON.parse('{"i8":"1.2.16-beta.
|
|
18250
|
+
var package_namespaceObject = JSON.parse('{"i8":"1.2.16-beta.7"}');
|
|
18250
18251
|
class Action {
|
|
18251
18252
|
constructor(task){
|
|
18252
18253
|
this.task = task;
|