@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/index.js
CHANGED
|
@@ -6048,9 +6048,7 @@ var __webpack_exports__ = {};
|
|
|
6048
6048
|
if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
|
|
6049
6049
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
6050
6050
|
};
|
|
6051
|
-
var package_namespaceObject = {
|
|
6052
|
-
i8: "1.2.19"
|
|
6053
|
-
};
|
|
6051
|
+
var package_namespaceObject = JSON.parse('{"i8":"1.2.20-beta.1"}');
|
|
6054
6052
|
const BetaFlag = "HuiwenCanary";
|
|
6055
6053
|
class Action {
|
|
6056
6054
|
constructor(task){
|
|
@@ -6058,11 +6056,10 @@ var __webpack_exports__ = {};
|
|
|
6058
6056
|
}
|
|
6059
6057
|
async bindTask(func, params) {
|
|
6060
6058
|
let responseData;
|
|
6059
|
+
this.task.isBeta = this.task.isFeatOn(BetaFlag);
|
|
6061
6060
|
this.task._timerRecord = {
|
|
6062
6061
|
ActionStart: Date.now()
|
|
6063
6062
|
};
|
|
6064
|
-
this.task.isBeta = this.task.isFeatOn(BetaFlag);
|
|
6065
|
-
console.log(`当前用户: ${this.task.isBeta ? "测试用户" : "非测试用户"}`);
|
|
6066
6063
|
if (this.task.setArticleId) this.task.setArticleId(params.articleId ?? "");
|
|
6067
6064
|
if (this.task.setSaveType) this.task.setSaveType(params.saveType ?? "");
|
|
6068
6065
|
if (void 0 !== this.task.isInitializedGB) this.task.setGbInitType(this.task.isInitializedGB);
|
|
@@ -6074,7 +6071,7 @@ var __webpack_exports__ = {};
|
|
|
6074
6071
|
} finally{
|
|
6075
6072
|
this.task._timerRecord['ActionEnd'] = Date.now();
|
|
6076
6073
|
}
|
|
6077
|
-
if (this.task.setTimeConsuming) this.task.setTimeConsuming(this.task._timerRecord);
|
|
6074
|
+
if (this.task.isBeta && this.task.setTimeConsuming) this.task.setTimeConsuming(this.task._timerRecord);
|
|
6078
6075
|
if (200 === responseData.code) this.task.logger.info(`${func.name} action params error`, responseData);
|
|
6079
6076
|
else if (0 !== responseData.code) {
|
|
6080
6077
|
this.task.logger.error(responseData.message || `${func.name} 执行失败`, stringifyError(responseData.data), responseData.extra);
|