@iflyrpa/actions 1.2.20-beta.0 → 1.2.20-beta.2
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 +3 -6
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/bundle.js
CHANGED
|
@@ -18934,9 +18934,7 @@ var __webpack_exports__ = {};
|
|
|
18934
18934
|
if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
|
|
18935
18935
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
18936
18936
|
};
|
|
18937
|
-
var package_namespaceObject = {
|
|
18938
|
-
i8: "1.2.19"
|
|
18939
|
-
};
|
|
18937
|
+
var package_namespaceObject = JSON.parse('{"i8":"1.2.20-beta.1"}');
|
|
18940
18938
|
const BetaFlag = "HuiwenCanary";
|
|
18941
18939
|
class Action {
|
|
18942
18940
|
constructor(task){
|
|
@@ -18944,11 +18942,10 @@ var __webpack_exports__ = {};
|
|
|
18944
18942
|
}
|
|
18945
18943
|
async bindTask(func, params) {
|
|
18946
18944
|
let responseData;
|
|
18945
|
+
this.task.isBeta = this.task.isFeatOn(BetaFlag);
|
|
18947
18946
|
this.task._timerRecord = {
|
|
18948
18947
|
ActionStart: Date.now()
|
|
18949
18948
|
};
|
|
18950
|
-
this.task.isBeta = this.task.isFeatOn(BetaFlag);
|
|
18951
|
-
console.log(`当前用户: ${this.task.isBeta ? "测试用户" : "非测试用户"}`);
|
|
18952
18949
|
if (this.task.setArticleId) this.task.setArticleId(params.articleId ?? "");
|
|
18953
18950
|
if (this.task.setSaveType) this.task.setSaveType(params.saveType ?? "");
|
|
18954
18951
|
if (void 0 !== this.task.isInitializedGB) this.task.setGbInitType(this.task.isInitializedGB);
|
|
@@ -18960,7 +18957,7 @@ var __webpack_exports__ = {};
|
|
|
18960
18957
|
} finally{
|
|
18961
18958
|
this.task._timerRecord['ActionEnd'] = Date.now();
|
|
18962
18959
|
}
|
|
18963
|
-
if (this.task.setTimeConsuming) this.task.setTimeConsuming(this.task._timerRecord);
|
|
18960
|
+
if (this.task.isBeta && this.task.setTimeConsuming) this.task.setTimeConsuming(this.task._timerRecord);
|
|
18964
18961
|
if (200 === responseData.code) this.task.logger.info(`${func.name} action params error`, responseData);
|
|
18965
18962
|
else if (0 !== responseData.code) {
|
|
18966
18963
|
this.task.logger.error(responseData.message || `${func.name} 执行失败`, stringifyError(responseData.data), responseData.extra);
|