@iflyrpa/playwright 4.0.9-beta.1 → 4.0.9-beta.3
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 +38 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +123 -0
- package/dist/index.js +32 -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.3"}');
|
|
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.3","lastUpdate":"2026-08-14","maxVersions":10,"versions":[{"version":"4.0.9-beta.3","releaseDate":"2026-08-14","releaseNote":["1. 测试更新","2. 重要修复,需要更新"],"updateLevel":2,"updateStrategy":"强制更新并重启","changeType":"patch"},{"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,
|
|
@@ -5703,6 +5727,9 @@ app.on("window-all-closed", (e) => e.preventDefault());
|
|
|
5703
5727
|
this.currentActionVersion = rpaAction.version;
|
|
5704
5728
|
this.setActionVersion(rpaAction.version);
|
|
5705
5729
|
}
|
|
5730
|
+
getActionVersion() {
|
|
5731
|
+
return this.currentActionVersion;
|
|
5732
|
+
}
|
|
5706
5733
|
getActionVersionInfo() {
|
|
5707
5734
|
return {
|
|
5708
5735
|
current: this.currentActionVersion,
|
|
@@ -5759,6 +5786,14 @@ app.on("window-all-closed", (e) => e.preventDefault());
|
|
|
5759
5786
|
}
|
|
5760
5787
|
return this.getActionVersionInfo();
|
|
5761
5788
|
}
|
|
5789
|
+
verifyActionMemoryUpdate() {
|
|
5790
|
+
var _this_actions;
|
|
5791
|
+
if (!(null === (_this_actions = this.actions) || void 0 === _this_actions ? void 0 : _this_actions.getActionVersionMarker)) return {
|
|
5792
|
+
error: "getActionVersionMarker 方法不存在,可能是旧版本的 @iflyrpa/actions",
|
|
5793
|
+
currentVersion: this.currentActionVersion
|
|
5794
|
+
};
|
|
5795
|
+
return this.actions.getActionVersionMarker();
|
|
5796
|
+
}
|
|
5762
5797
|
constructor(params){
|
|
5763
5798
|
super(params), src_define_property(this, "actions", void 0), src_define_property(this, "actionName", "@iflyrpa/actions"), src_define_property(this, "bundledActionVersion", actions_namespaceObject.version), src_define_property(this, "currentActionVersion", actions_namespaceObject.version), src_define_property(this, "latestActionVersion", null), src_define_property(this, "appliedUpdate", false), src_define_property(this, "updateChannel", "latest"), src_define_property(this, "updateError", void 0), src_define_property(this, "updateTask", null);
|
|
5764
5799
|
this.registerActions(actions_namespaceObject);
|