@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/index.mjs CHANGED
@@ -5996,9 +5996,7 @@ const xiaohongshuPublish = async (task, params)=>{
5996
5996
  if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
5997
5997
  return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
5998
5998
  };
5999
- var package_namespaceObject = {
6000
- i8: "1.2.19"
6001
- };
5999
+ var package_namespaceObject = JSON.parse('{"i8":"1.2.20-beta.1"}');
6002
6000
  const BetaFlag = "HuiwenCanary";
6003
6001
  class Action {
6004
6002
  constructor(task){
@@ -6006,11 +6004,10 @@ class Action {
6006
6004
  }
6007
6005
  async bindTask(func, params) {
6008
6006
  let responseData;
6007
+ this.task.isBeta = this.task.isFeatOn(BetaFlag);
6009
6008
  this.task._timerRecord = {
6010
6009
  ActionStart: Date.now()
6011
6010
  };
6012
- this.task.isBeta = this.task.isFeatOn(BetaFlag);
6013
- console.log(`当前用户: ${this.task.isBeta ? "测试用户" : "非测试用户"}`);
6014
6011
  if (this.task.setArticleId) this.task.setArticleId(params.articleId ?? "");
6015
6012
  if (this.task.setSaveType) this.task.setSaveType(params.saveType ?? "");
6016
6013
  if (void 0 !== this.task.isInitializedGB) this.task.setGbInitType(this.task.isInitializedGB);
@@ -6022,7 +6019,7 @@ class Action {
6022
6019
  } finally{
6023
6020
  this.task._timerRecord['ActionEnd'] = Date.now();
6024
6021
  }
6025
- if (this.task.setTimeConsuming) this.task.setTimeConsuming(this.task._timerRecord);
6022
+ if (this.task.isBeta && this.task.setTimeConsuming) this.task.setTimeConsuming(this.task._timerRecord);
6026
6023
  if (200 === responseData.code) this.task.logger.info(`${func.name} action params error`, responseData);
6027
6024
  else if (0 !== responseData.code) {
6028
6025
  this.task.logger.error(responseData.message || `${func.name} 执行失败`, stringifyError(responseData.data), responseData.extra);