@iflyrpa/playwright 1.2.19 → 1.2.21

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.cjs CHANGED
@@ -44,7 +44,7 @@ __webpack_require__.d(__webpack_exports__, {
44
44
  });
45
45
  const actions_namespaceObject = require("@iflyrpa/actions");
46
46
  var package_namespaceObject = {
47
- i8: "1.2.18"
47
+ i8: "1.2.20"
48
48
  };
49
49
  const external_node_fs_namespaceObject = require("node:fs");
50
50
  var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
@@ -332,12 +332,9 @@ class PackageManager {
332
332
  async update(name) {
333
333
  const manifest = await this.getManifest(`${name}@latest`);
334
334
  const version = manifest.version;
335
- const plugin = this.require(`${name}@${version}`);
335
+ const plugin = this.require(`${name}@${version}/package.json`);
336
336
  if (plugin) this.task.logger.info(`${name}@${version} 已是最新版本`);
337
- else {
338
- await this.extract(name, version);
339
- this.task.logger.info(`${name}@${version} 安装成功`);
340
- }
337
+ else await this.extract(name, version);
341
338
  return version;
342
339
  }
343
340
  constructor(task){
@@ -460,13 +457,13 @@ function src_define_property(obj, key, value) {
460
457
  class RpaTask extends Task {
461
458
  registerActions(rpaAction) {
462
459
  this.actions = new rpaAction.Action(this);
460
+ this.setActionVersion(rpaAction.version);
463
461
  }
464
462
  async update() {
465
463
  try {
466
464
  const version = await this.packageManager.update(this.actionName);
467
465
  const rpaPackage = this.packageManager.require(`${this.actionName}@${version}/dist/bundle.js`);
468
466
  (null == rpaPackage ? void 0 : rpaPackage.Action) && this.registerActions(rpaPackage);
469
- this.setActionVersion(version);
470
467
  } catch (error) {
471
468
  this.logger.error("更新依赖失败", error);
472
469
  }
@@ -474,7 +471,6 @@ class RpaTask extends Task {
474
471
  constructor(params){
475
472
  super(params), src_define_property(this, "actions", void 0), src_define_property(this, "actionName", "@iflyrpa/actions");
476
473
  this.registerActions(actions_namespaceObject);
477
- this.setActionVersion(actions_namespaceObject.version);
478
474
  params.forceUpdate && this.update();
479
475
  }
480
476
  }
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ 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
12
  var package_namespaceObject = {
13
- i8: "1.2.18"
13
+ i8: "1.2.20"
14
14
  };
15
15
  function _define_property(obj, key, value) {
16
16
  if (key in obj) Object.defineProperty(obj, key, {
@@ -281,12 +281,9 @@ class PackageManager {
281
281
  async update(name) {
282
282
  const manifest = await this.getManifest(`${name}@latest`);
283
283
  const version = manifest.version;
284
- const plugin = this.require(`${name}@${version}`);
284
+ const plugin = this.require(`${name}@${version}/package.json`);
285
285
  if (plugin) this.task.logger.info(`${name}@${version} 已是最新版本`);
286
- else {
287
- await this.extract(name, version);
288
- this.task.logger.info(`${name}@${version} 安装成功`);
289
- }
286
+ else await this.extract(name, version);
290
287
  return version;
291
288
  }
292
289
  constructor(task){
@@ -409,13 +406,13 @@ function src_define_property(obj, key, value) {
409
406
  class RpaTask extends Task {
410
407
  registerActions(rpaAction) {
411
408
  this.actions = new rpaAction.Action(this);
409
+ this.setActionVersion(rpaAction.version);
412
410
  }
413
411
  async update() {
414
412
  try {
415
413
  const version = await this.packageManager.update(this.actionName);
416
414
  const rpaPackage = this.packageManager.require(`${this.actionName}@${version}/dist/bundle.js`);
417
415
  (null == rpaPackage ? void 0 : rpaPackage.Action) && this.registerActions(rpaPackage);
418
- this.setActionVersion(version);
419
416
  } catch (error) {
420
417
  this.logger.error("更新依赖失败", error);
421
418
  }
@@ -423,7 +420,6 @@ class RpaTask extends Task {
423
420
  constructor(params){
424
421
  super(params), src_define_property(this, "actions", void 0), src_define_property(this, "actionName", "@iflyrpa/actions");
425
422
  this.registerActions(__WEBPACK_EXTERNAL_MODULE__iflyrpa_actions_bd801d6f__);
426
- this.setActionVersion(__WEBPACK_EXTERNAL_MODULE__iflyrpa_actions_bd801d6f__.version);
427
423
  params.forceUpdate && this.update();
428
424
  }
429
425
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@iflyrpa/playwright",
3
3
  "type": "module",
4
- "version": "1.2.19",
4
+ "version": "1.2.21",
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.1.23",
32
- "@iflyrpa/share": "0.0.5"
31
+ "@iflyrpa/actions": "1.1.25",
32
+ "@iflyrpa/share": "0.0.6"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "rslib build",