@iflyrpa/actions 1.1.27 → 1.1.28

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 CHANGED
@@ -12986,7 +12986,7 @@ var __webpack_exports__ = {};
12986
12986
  return lastedHtml;
12987
12987
  };
12988
12988
  const stringifyError = (error)=>{
12989
- if (error instanceof Error) return error;
12989
+ if (error instanceof Error) return error.toString();
12990
12990
  if ("object" == typeof error) return JSON.stringify(error);
12991
12991
  return error;
12992
12992
  };
@@ -13426,9 +13426,10 @@ var __webpack_exports__ = {};
13426
13426
  };
13427
13427
  const getBaijiahaoActivity = async (task, params)=>{
13428
13428
  task.logger.info("查询百家号活动投稿");
13429
+ const cookies = params.cookies ?? [];
13429
13430
  const http = new Http({
13430
13431
  headers: {
13431
- cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
13432
+ cookie: cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
13432
13433
  token: params.token
13433
13434
  }
13434
13435
  });
@@ -13750,7 +13751,7 @@ var __webpack_exports__ = {};
13750
13751
  return {
13751
13752
  code: 400,
13752
13753
  message: `头条号登录状态失效,请重新绑定账号后${"draft" === params.saveType ? "同步" : "发布"}。`,
13753
- data: ""
13754
+ data: page.url()
13754
13755
  };
13755
13756
  }
13756
13757
  const titleInstance = page.locator(".publish-editor-title-wrapper .publish-editor-title textarea");
@@ -15200,7 +15201,7 @@ var __webpack_exports__ = {};
15200
15201
  return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
15201
15202
  };
15202
15203
  var package_namespaceObject = {
15203
- i8: "1.1.26"
15204
+ i8: "1.1.27"
15204
15205
  };
15205
15206
  class Action {
15206
15207
  constructor(task){