@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 +11 -10
- package/dist/index.mjs +11 -10
- package/package.json +1 -1
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.
|
|
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
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
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.
|
|
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
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
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
|
};
|