@iflyrpa/playwright 4.0.9-beta.1 → 4.0.9-beta.2
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 +27 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +99 -0
- package/dist/index.js +21 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2553,12 +2553,17 @@ var __webpack_exports__ = {};
|
|
|
2553
2553
|
"use strict";
|
|
2554
2554
|
__webpack_require__.r(__webpack_exports__);
|
|
2555
2555
|
__webpack_require__.d(__webpack_exports__, {
|
|
2556
|
-
|
|
2556
|
+
getLatestVersionRecord: ()=>getLatestVersionRecord,
|
|
2557
|
+
getMaxUpdateLevel: ()=>getMaxUpdateLevel,
|
|
2558
|
+
getVersionRecord: ()=>getVersionRecord,
|
|
2559
|
+
RpaTask: ()=>RpaTask,
|
|
2557
2560
|
version: ()=>src_version,
|
|
2558
|
-
|
|
2561
|
+
compareVersion: ()=>compareVersion,
|
|
2562
|
+
getVersionRecordsSince: ()=>getVersionRecordsSince,
|
|
2563
|
+
getVersionHistory: ()=>getVersionHistory
|
|
2559
2564
|
});
|
|
2560
2565
|
const actions_namespaceObject = require("@iflyrpa/actions");
|
|
2561
|
-
var package_namespaceObject = JSON.parse('{"i8":"4.0.9-beta.
|
|
2566
|
+
var package_namespaceObject = JSON.parse('{"i8":"4.0.9-beta.2"}');
|
|
2562
2567
|
const external_node_fs_namespaceObject = require("node:fs");
|
|
2563
2568
|
var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
|
|
2564
2569
|
const external_node_path_namespaceObject = require("node:path");
|
|
@@ -5687,6 +5692,25 @@ app.on("window-all-closed", (e) => e.preventDefault());
|
|
|
5687
5692
|
this.electronPackage = this.installElectron();
|
|
5688
5693
|
}
|
|
5689
5694
|
}
|
|
5695
|
+
var version_history_namespaceObject = JSON.parse('{"name":"@iflyrpa/playwright","currentVersion":"4.0.9-beta.2","lastUpdate":"2026-08-13","maxVersions":10,"versions":[{"version":"4.0.9-beta.2","releaseDate":"2026-08-13","releaseNote":["1.增加版本更新记录","2.优化错误提示"],"updateLevel":1,"updateStrategy":"建议更新","changeType":"patch"},{"version":"4.0.9-beta.1","releaseDate":"2024-08-10","releaseNote":["改进多个 action 的用户错误提示信息"],"updateLevel":1,"updateStrategy":"建议更新","changeType":"patch"}]}');
|
|
5696
|
+
function getVersionHistory() {
|
|
5697
|
+
return version_history_namespaceObject;
|
|
5698
|
+
}
|
|
5699
|
+
function getLatestVersionRecord() {
|
|
5700
|
+
return getVersionHistory().versions[0] ?? null;
|
|
5701
|
+
}
|
|
5702
|
+
function getVersionRecord(version) {
|
|
5703
|
+
return getVersionHistory().versions.find((v)=>v.version === version) ?? null;
|
|
5704
|
+
}
|
|
5705
|
+
function getVersionRecordsSince(fromVersion) {
|
|
5706
|
+
const { versions } = getVersionHistory();
|
|
5707
|
+
const index = versions.findIndex((v)=>v.version === fromVersion);
|
|
5708
|
+
return -1 === index ? versions : versions.slice(0, index);
|
|
5709
|
+
}
|
|
5710
|
+
function getMaxUpdateLevel(records) {
|
|
5711
|
+
if (0 === records.length) return null;
|
|
5712
|
+
return records.reduce((max, r)=>r.updateLevel > max ? r.updateLevel : max, 0);
|
|
5713
|
+
}
|
|
5690
5714
|
function src_define_property(obj, key, value) {
|
|
5691
5715
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
5692
5716
|
value: value,
|