@iflyrpa/playwright 1.2.58-beta.0 → 1.2.58-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 +11 -6
- package/dist/index.d.ts +3 -3
- package/dist/index.js +11 -6
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2557,9 +2557,7 @@ var __webpack_exports__ = {};
|
|
|
2557
2557
|
RpaTask: ()=>RpaTask
|
|
2558
2558
|
});
|
|
2559
2559
|
const actions_namespaceObject = require("@iflyrpa/actions");
|
|
2560
|
-
var package_namespaceObject = {
|
|
2561
|
-
i8: "1.2.57"
|
|
2562
|
-
};
|
|
2560
|
+
var package_namespaceObject = JSON.parse('{"i8":"1.2.58-beta.1"}');
|
|
2563
2561
|
const external_node_fs_namespaceObject = require("node:fs");
|
|
2564
2562
|
var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
|
|
2565
2563
|
const external_node_path_namespaceObject = require("node:path");
|
|
@@ -2826,6 +2824,10 @@ app.on("window-all-closed", (e) => e.preventDefault());
|
|
|
2826
2824
|
const formattedMessage = messages.filter((message)=>void 0 !== message).map((message)=>{
|
|
2827
2825
|
if (message instanceof Error) return `${message.name}: ${message.message}\n${message.stack}`;
|
|
2828
2826
|
if ("object" == typeof message) return JSON.stringify(message);
|
|
2827
|
+
const loggerTime = `${new Date().toLocaleTimeString('zh-CN', {
|
|
2828
|
+
hour12: false
|
|
2829
|
+
})}.${String(new Date().getMilliseconds()).padStart(3, '0')}`;
|
|
2830
|
+
console.log(`Logger(${loggerTime}):`, message);
|
|
2829
2831
|
return message;
|
|
2830
2832
|
}).join(" ");
|
|
2831
2833
|
logToFile(methodName, formattedMessage);
|
|
@@ -5508,18 +5510,21 @@ app.on("window-all-closed", (e) => e.preventDefault());
|
|
|
5508
5510
|
setUser(user) {
|
|
5509
5511
|
this.growthBook = GrowthBookInstance.getGBInstance({
|
|
5510
5512
|
debug: this.debug,
|
|
5511
|
-
user: user
|
|
5513
|
+
user: user,
|
|
5514
|
+
cachePath: this.cachePath
|
|
5512
5515
|
});
|
|
5513
5516
|
this.initializeGrowthBook().then((res)=>{
|
|
5514
5517
|
var _this_growthBook;
|
|
5515
5518
|
if (res && !res.success) throw new Error(res.source);
|
|
5516
|
-
this.
|
|
5519
|
+
this.isInitializedGB = true;
|
|
5520
|
+
this.logger.updateGBInitStatus(true);
|
|
5517
5521
|
this.logger.updateBetaFlag((null === (_this_growthBook = this.growthBook) || void 0 === _this_growthBook ? void 0 : _this_growthBook.isFeatureOn(actions_namespaceObject.BetaFlag)) ?? false);
|
|
5518
5522
|
this.logger.info("GrowthBook 初始化成功");
|
|
5519
5523
|
this.debug && console.log("GrowthBook 初始化成功", res);
|
|
5520
5524
|
}).catch((error)=>{
|
|
5521
5525
|
var _this_growthBook;
|
|
5522
|
-
this.
|
|
5526
|
+
this.isInitializedGB = false;
|
|
5527
|
+
this.logger.updateGBInitStatus(false);
|
|
5523
5528
|
this.logger.updateBetaFlag((null === (_this_growthBook = this.growthBook) || void 0 === _this_growthBook ? void 0 : _this_growthBook.isFeatureOn(actions_namespaceObject.BetaFlag)) ?? false);
|
|
5524
5529
|
this.logger.warn("GrowthBook 初始化失败", {
|
|
5525
5530
|
details: error.message
|
package/dist/index.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ declare class Task implements AutomateTask {
|
|
|
66
66
|
debug: boolean;
|
|
67
67
|
packagesDir: string;
|
|
68
68
|
packageManager: PackageManager;
|
|
69
|
-
_timerRecord: Record<string,
|
|
69
|
+
_timerRecord: Record<string, number>;
|
|
70
70
|
private playwrightPackage;
|
|
71
71
|
private electronPackage;
|
|
72
72
|
private _electronApp;
|
|
@@ -112,7 +112,7 @@ declare class Task implements AutomateTask {
|
|
|
112
112
|
setArticleId(articleId: string): void;
|
|
113
113
|
setSaveType(saveType: string): void;
|
|
114
114
|
setGbInitType(status: boolean): void;
|
|
115
|
-
setTimeConsuming(Record: Record<string,
|
|
115
|
+
setTimeConsuming(Record: Record<string, number>): void;
|
|
116
116
|
isFeatOn(key: string): boolean;
|
|
117
117
|
private initializeGrowthBook;
|
|
118
118
|
}
|
|
@@ -125,7 +125,7 @@ declare interface TaskParams {
|
|
|
125
125
|
enverionment?: string;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
declare type TimeConsuming = Record<string,
|
|
128
|
+
declare type TimeConsuming = Record<string, number>;
|
|
129
129
|
|
|
130
130
|
export declare const version: string;
|
|
131
131
|
|
package/dist/index.js
CHANGED
|
@@ -2550,9 +2550,7 @@ function __webpack_require__(moduleId) {
|
|
|
2550
2550
|
});
|
|
2551
2551
|
};
|
|
2552
2552
|
})();
|
|
2553
|
-
var package_namespaceObject = {
|
|
2554
|
-
i8: "1.2.57"
|
|
2555
|
-
};
|
|
2553
|
+
var package_namespaceObject = JSON.parse('{"i8":"1.2.58-beta.1"}');
|
|
2556
2554
|
function _define_property(obj, key, value) {
|
|
2557
2555
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
2558
2556
|
value: value,
|
|
@@ -2804,6 +2802,10 @@ class Logger extends SentryInstance {
|
|
|
2804
2802
|
const formattedMessage = messages.filter((message)=>void 0 !== message).map((message)=>{
|
|
2805
2803
|
if (message instanceof Error) return `${message.name}: ${message.message}\n${message.stack}`;
|
|
2806
2804
|
if ("object" == typeof message) return JSON.stringify(message);
|
|
2805
|
+
const loggerTime = `${new Date().toLocaleTimeString('zh-CN', {
|
|
2806
|
+
hour12: false
|
|
2807
|
+
})}.${String(new Date().getMilliseconds()).padStart(3, '0')}`;
|
|
2808
|
+
console.log(`Logger(${loggerTime}):`, message);
|
|
2807
2809
|
return message;
|
|
2808
2810
|
}).join(" ");
|
|
2809
2811
|
logToFile(methodName, formattedMessage);
|
|
@@ -5484,18 +5486,21 @@ class Task {
|
|
|
5484
5486
|
setUser(user) {
|
|
5485
5487
|
this.growthBook = GrowthBookInstance.getGBInstance({
|
|
5486
5488
|
debug: this.debug,
|
|
5487
|
-
user: user
|
|
5489
|
+
user: user,
|
|
5490
|
+
cachePath: this.cachePath
|
|
5488
5491
|
});
|
|
5489
5492
|
this.initializeGrowthBook().then((res)=>{
|
|
5490
5493
|
var _this_growthBook;
|
|
5491
5494
|
if (res && !res.success) throw new Error(res.source);
|
|
5492
|
-
this.
|
|
5495
|
+
this.isInitializedGB = true;
|
|
5496
|
+
this.logger.updateGBInitStatus(true);
|
|
5493
5497
|
this.logger.updateBetaFlag((null === (_this_growthBook = this.growthBook) || void 0 === _this_growthBook ? void 0 : _this_growthBook.isFeatureOn(__WEBPACK_EXTERNAL_MODULE__iflyrpa_actions_bd801d6f__.BetaFlag)) ?? false);
|
|
5494
5498
|
this.logger.info("GrowthBook 初始化成功");
|
|
5495
5499
|
this.debug && console.log("GrowthBook 初始化成功", res);
|
|
5496
5500
|
}).catch((error)=>{
|
|
5497
5501
|
var _this_growthBook;
|
|
5498
|
-
this.
|
|
5502
|
+
this.isInitializedGB = false;
|
|
5503
|
+
this.logger.updateGBInitStatus(false);
|
|
5499
5504
|
this.logger.updateBetaFlag((null === (_this_growthBook = this.growthBook) || void 0 === _this_growthBook ? void 0 : _this_growthBook.isFeatureOn(__WEBPACK_EXTERNAL_MODULE__iflyrpa_actions_bd801d6f__.BetaFlag)) ?? false);
|
|
5500
5505
|
this.logger.warn("GrowthBook 初始化失败", {
|
|
5501
5506
|
details: error.message
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iflyrpa/playwright",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.58-beta.
|
|
4
|
+
"version": "1.2.58-beta.2",
|
|
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.2.25-beta.
|
|
32
|
-
"@iflyrpa/share": "0.0.15-beta.
|
|
31
|
+
"@iflyrpa/actions": "1.2.25-beta.2",
|
|
32
|
+
"@iflyrpa/share": "0.0.15-beta.2"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "rslib build",
|