@iflyrpa/playwright 1.2.39-beta.2 → 1.2.40

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/README.md CHANGED
@@ -13,7 +13,6 @@ iflyrpa 封装的一组特定场景的自动化脚本,支持的场景如下:
13
13
  | 微信公众号(小绿书-图文模式) | weixinmpPublish | 发布 | Mock Api / RPA |
14
14
  | 微信公众号 | weixinPublish | 发布 | Mock Api |
15
15
  | 小红书 | xiaohongshuPublish | 发布 | Mock Api / RPA |
16
- | 小红书 | searchXiaohongshuTopicList | 搜索小红书话题 | Mock Api |
17
16
  | 小红书 | searchXiaohongshuLocation | 搜索小红书地址 | Mock Api |
18
17
 
19
18
  ## 安装
package/dist/index.cjs CHANGED
@@ -43,7 +43,9 @@ __webpack_require__.d(__webpack_exports__, {
43
43
  RpaTask: ()=>RpaTask
44
44
  });
45
45
  const actions_namespaceObject = require("@iflyrpa/actions");
46
- var package_namespaceObject = JSON.parse('{"i8":"1.2.39-beta.1"}');
46
+ var package_namespaceObject = {
47
+ i8: "1.2.39"
48
+ };
47
49
  const external_node_fs_namespaceObject = require("node:fs");
48
50
  var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
49
51
  const external_node_path_namespaceObject = require("node:path");
@@ -195,10 +197,14 @@ class SentryInstance {
195
197
  updateUser(user) {
196
198
  this.user = user;
197
199
  }
200
+ updateArticleId(articleId) {
201
+ this.articleId = articleId;
202
+ }
198
203
  setScope(callback, extras) {
199
204
  (0, node_namespaceObject.withScope)((scope)=>{
200
205
  scope.setTransactionName("rpa");
201
206
  if (this.coreVersion) scope.setTag("coreVersion", this.coreVersion);
207
+ if (this.articleId) scope.setTag("articleId", this.articleId);
202
208
  if (this.user) scope.setUser(this.user);
203
209
  if (extras) scope.setExtras(extras);
204
210
  callback(scope);
@@ -220,6 +226,7 @@ class SentryInstance {
220
226
  sentry_define_property(this, "sentry", void 0);
221
227
  sentry_define_property(this, "coreVersion", void 0);
222
228
  sentry_define_property(this, "user", void 0);
229
+ sentry_define_property(this, "articleId", void 0);
223
230
  this.user = taskParams.user;
224
231
  this.sentry = (0, node_namespaceObject.initWithoutDefaultIntegrations)({
225
232
  dsn: DEFAULT_SENTRY_DSN,
@@ -431,6 +438,9 @@ class Task {
431
438
  setUser(user) {
432
439
  this.logger.updateUser(user);
433
440
  }
441
+ setArticleId(articleId) {
442
+ this.logger.updateArticleId(articleId);
443
+ }
434
444
  constructor(taskParam){
435
445
  task_define_property(this, "logger", void 0);
436
446
  task_define_property(this, "cachePath", void 0);
package/dist/index.d.ts CHANGED
@@ -42,9 +42,11 @@ declare class SentryInstance {
42
42
  private sentry;
43
43
  private coreVersion?;
44
44
  private user?;
45
+ private articleId?;
45
46
  constructor(taskParams: TaskParams);
46
47
  updateCoreVersion(version: string): void;
47
48
  updateUser(user: User): void;
49
+ updateArticleId(articleId?: string): void;
48
50
  private setScope;
49
51
  captureException(error: unknown, extras?: Record<string, unknown>): void;
50
52
  captureMessage(message: string, level?: SeverityLevel, extras?: Record<string, unknown>): void;
@@ -96,6 +98,7 @@ declare class Task implements AutomateTask {
96
98
  createPage(pageParams: PageParams): Promise<Page>;
97
99
  protected setActionVersion(version: string): void;
98
100
  setUser(user: User): void;
101
+ setArticleId(articleId: string): void;
99
102
  }
100
103
 
101
104
  declare interface TaskParams {
package/dist/index.js CHANGED
@@ -9,7 +9,9 @@ import * as __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__ from "@iflyrpa/s
9
9
  import * as __WEBPACK_EXTERNAL_MODULE_loglevel__ from "loglevel";
10
10
  import * as __WEBPACK_EXTERNAL_MODULE__sentry_node_4658624b__ from "@sentry/node";
11
11
  import * as __WEBPACK_EXTERNAL_MODULE__iflyrpa_pacote_56da1cff__ from "@iflyrpa/pacote";
12
- var package_namespaceObject = JSON.parse('{"i8":"1.2.39-beta.1"}');
12
+ var package_namespaceObject = {
13
+ i8: "1.2.39"
14
+ };
13
15
  function _define_property(obj, key, value) {
14
16
  if (key in obj) Object.defineProperty(obj, key, {
15
17
  value: value,
@@ -146,10 +148,14 @@ class SentryInstance {
146
148
  updateUser(user) {
147
149
  this.user = user;
148
150
  }
151
+ updateArticleId(articleId) {
152
+ this.articleId = articleId;
153
+ }
149
154
  setScope(callback, extras) {
150
155
  (0, __WEBPACK_EXTERNAL_MODULE__sentry_node_4658624b__.withScope)((scope)=>{
151
156
  scope.setTransactionName("rpa");
152
157
  if (this.coreVersion) scope.setTag("coreVersion", this.coreVersion);
158
+ if (this.articleId) scope.setTag("articleId", this.articleId);
153
159
  if (this.user) scope.setUser(this.user);
154
160
  if (extras) scope.setExtras(extras);
155
161
  callback(scope);
@@ -171,6 +177,7 @@ class SentryInstance {
171
177
  sentry_define_property(this, "sentry", void 0);
172
178
  sentry_define_property(this, "coreVersion", void 0);
173
179
  sentry_define_property(this, "user", void 0);
180
+ sentry_define_property(this, "articleId", void 0);
174
181
  this.user = taskParams.user;
175
182
  this.sentry = (0, __WEBPACK_EXTERNAL_MODULE__sentry_node_4658624b__.initWithoutDefaultIntegrations)({
176
183
  dsn: DEFAULT_SENTRY_DSN,
@@ -380,6 +387,9 @@ class Task {
380
387
  setUser(user) {
381
388
  this.logger.updateUser(user);
382
389
  }
390
+ setArticleId(articleId) {
391
+ this.logger.updateArticleId(articleId);
392
+ }
383
393
  constructor(taskParam){
384
394
  task_define_property(this, "logger", void 0);
385
395
  task_define_property(this, "cachePath", void 0);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@iflyrpa/playwright",
3
3
  "type": "module",
4
- "version": "1.2.39-beta.2",
4
+ "version": "1.2.40",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -28,8 +28,8 @@
28
28
  "extract-zip": "^2.0.1",
29
29
  "loglevel": "^1.9.2",
30
30
  "@iflyrpa/pacote": "1.0.0",
31
- "@iflyrpa/actions": "1.2.6-beta.2",
32
- "@iflyrpa/share": "0.0.8"
31
+ "@iflyrpa/actions": "1.2.7",
32
+ "@iflyrpa/share": "0.0.9"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "rslib build",