@iflyrpa/playwright 1.0.10-beta.0 → 1.0.10-beta.1

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
@@ -15,7 +15,7 @@ const log__default = /*#__PURE__*/_interopDefaultCompat(log);
15
15
 
16
16
  const name = "@iflyrpa/playwright";
17
17
  const type = "module";
18
- const version$1 = "1.0.10-beta.0";
18
+ const version$1 = "1.0.10-beta.1";
19
19
  const description = "";
20
20
  const main = "./dist/index.cjs";
21
21
  const module$1 = "./dist/index.mjs";
@@ -688,15 +688,16 @@ class LocalAutomateTask {
688
688
  }
689
689
  const RpaTask = (params) => {
690
690
  const logger = Logger.getInstance(params.cachePath);
691
- const packageManager = new PackageManager({
692
- packageName: packageJson.name,
693
- cacheDir: params.cachePath,
694
- forceUpdate: !!params.forceUpdate
695
- });
696
- const localPackge = packageManager.getPlugin(packageJson.name);
697
- if (localPackge?.LocalAutomateTask && localPackge?.version && semver.gt(localPackge.version, packageJson.version)) {
698
- logger.info(`\u4F7F\u7528\u8FDC\u7A0B\u7684\u65B0\u7248\u672C\uFF0C\u7248\u672C\u53F7\u4E3A\uFF1A${localPackge.version}`);
699
- return new localPackge.LocalAutomateTask(params);
691
+ if (params.forceUpdate) {
692
+ const packageManager = new PackageManager({
693
+ packageName: packageJson.name,
694
+ cacheDir: params.cachePath
695
+ });
696
+ const localPackge = packageManager.getPlugin(packageJson.name);
697
+ if (localPackge?.LocalAutomateTask && localPackge?.version && semver.gt(localPackge.version, packageJson.version)) {
698
+ logger.info(`\u4F7F\u7528\u8FDC\u7A0B\u7684\u65B0\u7248\u672C\uFF0C\u7248\u672C\u53F7\u4E3A\uFF1A${localPackge.version}`);
699
+ return new localPackge.LocalAutomateTask(params);
700
+ }
700
701
  }
701
702
  return new LocalAutomateTask(params);
702
703
  };
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import { spawn } from 'node:child_process';
6
6
 
7
7
  const name = "@iflyrpa/playwright";
8
8
  const type = "module";
9
- const version$1 = "1.0.10-beta.0";
9
+ const version$1 = "1.0.10-beta.1";
10
10
  const description = "";
11
11
  const main = "./dist/index.cjs";
12
12
  const module = "./dist/index.mjs";
@@ -679,15 +679,16 @@ class LocalAutomateTask {
679
679
  }
680
680
  const RpaTask = (params) => {
681
681
  const logger = Logger.getInstance(params.cachePath);
682
- const packageManager = new PackageManager({
683
- packageName: packageJson.name,
684
- cacheDir: params.cachePath,
685
- forceUpdate: !!params.forceUpdate
686
- });
687
- const localPackge = packageManager.getPlugin(packageJson.name);
688
- if (localPackge?.LocalAutomateTask && localPackge?.version && semver.gt(localPackge.version, packageJson.version)) {
689
- logger.info(`\u4F7F\u7528\u8FDC\u7A0B\u7684\u65B0\u7248\u672C\uFF0C\u7248\u672C\u53F7\u4E3A\uFF1A${localPackge.version}`);
690
- return new localPackge.LocalAutomateTask(params);
682
+ if (params.forceUpdate) {
683
+ const packageManager = new PackageManager({
684
+ packageName: packageJson.name,
685
+ cacheDir: params.cachePath
686
+ });
687
+ const localPackge = packageManager.getPlugin(packageJson.name);
688
+ if (localPackge?.LocalAutomateTask && localPackge?.version && semver.gt(localPackge.version, packageJson.version)) {
689
+ logger.info(`\u4F7F\u7528\u8FDC\u7A0B\u7684\u65B0\u7248\u672C\uFF0C\u7248\u672C\u53F7\u4E3A\uFF1A${localPackge.version}`);
690
+ return new localPackge.LocalAutomateTask(params);
691
+ }
691
692
  }
692
693
  return new LocalAutomateTask(params);
693
694
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@iflyrpa/playwright",
3
3
  "type": "module",
4
- "version": "1.0.10-beta.0",
4
+ "version": "1.0.10-beta.1",
5
5
  "description": "",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.mjs",