@iflyrpa/playwright 1.2.58-beta.1 → 1.2.58-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 +11 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.js +11 -4
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2557,7 +2557,7 @@ var __webpack_exports__ = {};
|
|
|
2557
2557
|
RpaTask: ()=>RpaTask
|
|
2558
2558
|
});
|
|
2559
2559
|
const actions_namespaceObject = require("@iflyrpa/actions");
|
|
2560
|
-
var package_namespaceObject = JSON.parse('{"i8":"1.2.58-beta.
|
|
2560
|
+
var package_namespaceObject = JSON.parse('{"i8":"1.2.58-beta.2"}');
|
|
2561
2561
|
const external_node_fs_namespaceObject = require("node:fs");
|
|
2562
2562
|
var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
|
|
2563
2563
|
const external_node_path_namespaceObject = require("node:path");
|
|
@@ -2824,6 +2824,10 @@ app.on("window-all-closed", (e) => e.preventDefault());
|
|
|
2824
2824
|
const formattedMessage = messages.filter((message)=>void 0 !== message).map((message)=>{
|
|
2825
2825
|
if (message instanceof Error) return `${message.name}: ${message.message}\n${message.stack}`;
|
|
2826
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);
|
|
2827
2831
|
return message;
|
|
2828
2832
|
}).join(" ");
|
|
2829
2833
|
logToFile(methodName, formattedMessage);
|
|
@@ -5506,18 +5510,21 @@ app.on("window-all-closed", (e) => e.preventDefault());
|
|
|
5506
5510
|
setUser(user) {
|
|
5507
5511
|
this.growthBook = GrowthBookInstance.getGBInstance({
|
|
5508
5512
|
debug: this.debug,
|
|
5509
|
-
user: user
|
|
5513
|
+
user: user,
|
|
5514
|
+
cachePath: this.cachePath
|
|
5510
5515
|
});
|
|
5511
5516
|
this.initializeGrowthBook().then((res)=>{
|
|
5512
5517
|
var _this_growthBook;
|
|
5513
5518
|
if (res && !res.success) throw new Error(res.source);
|
|
5514
|
-
this.
|
|
5519
|
+
this.isInitializedGB = true;
|
|
5520
|
+
this.logger.updateGBInitStatus(true);
|
|
5515
5521
|
this.logger.updateBetaFlag((null === (_this_growthBook = this.growthBook) || void 0 === _this_growthBook ? void 0 : _this_growthBook.isFeatureOn(actions_namespaceObject.BetaFlag)) ?? false);
|
|
5516
5522
|
this.logger.info("GrowthBook 初始化成功");
|
|
5517
5523
|
this.debug && console.log("GrowthBook 初始化成功", res);
|
|
5518
5524
|
}).catch((error)=>{
|
|
5519
5525
|
var _this_growthBook;
|
|
5520
|
-
this.
|
|
5526
|
+
this.isInitializedGB = false;
|
|
5527
|
+
this.logger.updateGBInitStatus(false);
|
|
5521
5528
|
this.logger.updateBetaFlag((null === (_this_growthBook = this.growthBook) || void 0 === _this_growthBook ? void 0 : _this_growthBook.isFeatureOn(actions_namespaceObject.BetaFlag)) ?? false);
|
|
5522
5529
|
this.logger.warn("GrowthBook 初始化失败", {
|
|
5523
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,7 +2550,7 @@ function __webpack_require__(moduleId) {
|
|
|
2550
2550
|
});
|
|
2551
2551
|
};
|
|
2552
2552
|
})();
|
|
2553
|
-
var package_namespaceObject = JSON.parse('{"i8":"1.2.58-beta.
|
|
2553
|
+
var package_namespaceObject = JSON.parse('{"i8":"1.2.58-beta.2"}');
|
|
2554
2554
|
function _define_property(obj, key, value) {
|
|
2555
2555
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
2556
2556
|
value: value,
|
|
@@ -2802,6 +2802,10 @@ class Logger extends SentryInstance {
|
|
|
2802
2802
|
const formattedMessage = messages.filter((message)=>void 0 !== message).map((message)=>{
|
|
2803
2803
|
if (message instanceof Error) return `${message.name}: ${message.message}\n${message.stack}`;
|
|
2804
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);
|
|
2805
2809
|
return message;
|
|
2806
2810
|
}).join(" ");
|
|
2807
2811
|
logToFile(methodName, formattedMessage);
|
|
@@ -5482,18 +5486,21 @@ class Task {
|
|
|
5482
5486
|
setUser(user) {
|
|
5483
5487
|
this.growthBook = GrowthBookInstance.getGBInstance({
|
|
5484
5488
|
debug: this.debug,
|
|
5485
|
-
user: user
|
|
5489
|
+
user: user,
|
|
5490
|
+
cachePath: this.cachePath
|
|
5486
5491
|
});
|
|
5487
5492
|
this.initializeGrowthBook().then((res)=>{
|
|
5488
5493
|
var _this_growthBook;
|
|
5489
5494
|
if (res && !res.success) throw new Error(res.source);
|
|
5490
|
-
this.
|
|
5495
|
+
this.isInitializedGB = true;
|
|
5496
|
+
this.logger.updateGBInitStatus(true);
|
|
5491
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);
|
|
5492
5498
|
this.logger.info("GrowthBook 初始化成功");
|
|
5493
5499
|
this.debug && console.log("GrowthBook 初始化成功", res);
|
|
5494
5500
|
}).catch((error)=>{
|
|
5495
5501
|
var _this_growthBook;
|
|
5496
|
-
this.
|
|
5502
|
+
this.isInitializedGB = false;
|
|
5503
|
+
this.logger.updateGBInitStatus(false);
|
|
5497
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);
|
|
5498
5505
|
this.logger.warn("GrowthBook 初始化失败", {
|
|
5499
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.3",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"@sentry/node": "^9.11.0",
|
|
28
28
|
"extract-zip": "^2.0.1",
|
|
29
29
|
"loglevel": "^1.9.2",
|
|
30
|
-
"@iflyrpa/actions": "1.2.25-beta.
|
|
30
|
+
"@iflyrpa/actions": "1.2.25-beta.3",
|
|
31
31
|
"@iflyrpa/pacote": "1.0.0",
|
|
32
|
-
"@iflyrpa/share": "0.0.15-beta.
|
|
32
|
+
"@iflyrpa/share": "0.0.15-beta.3"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "rslib build",
|