@iflyrpa/playwright 1.2.5 → 1.2.6
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 +4 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -5
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -44,7 +44,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
44
44
|
});
|
|
45
45
|
const actions_namespaceObject = require("@iflyrpa/actions");
|
|
46
46
|
var package_namespaceObject = {
|
|
47
|
-
i8: "1.2.
|
|
47
|
+
i8: "1.2.6"
|
|
48
48
|
};
|
|
49
49
|
const external_node_fs_namespaceObject = require("node:fs");
|
|
50
50
|
var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
|
|
@@ -245,10 +245,9 @@ class Logger {
|
|
|
245
245
|
warn(...msg) {
|
|
246
246
|
external_loglevel_default().warn(...msg);
|
|
247
247
|
}
|
|
248
|
-
error(prefix,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
if ("object" == typeof err) error = `${prefix}:${JSON.stringify(err)}`;
|
|
248
|
+
error(prefix, error) {
|
|
249
|
+
if (error instanceof Error) error.message = `${prefix}: ${error.message}`;
|
|
250
|
+
else error = new Error(`${prefix}: ${error}`);
|
|
252
251
|
external_loglevel_default().error(error);
|
|
253
252
|
this.sentry.captureException(error);
|
|
254
253
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ declare class Logger implements LoggerImplement {
|
|
|
17
17
|
debug(...msg: any[]): void;
|
|
18
18
|
info(...msg: any[]): void;
|
|
19
19
|
warn(...msg: any[]): void;
|
|
20
|
-
error(prefix: string,
|
|
20
|
+
error(prefix: string, error?: Error | unknown): void;
|
|
21
21
|
close(): void;
|
|
22
22
|
}
|
|
23
23
|
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_loglevel__ from "loglevel";
|
|
|
10
10
|
import * as __WEBPACK_EXTERNAL_MODULE__sentry_node_4658624b__ from "@sentry/node";
|
|
11
11
|
import * as __WEBPACK_EXTERNAL_MODULE__iflyrpa_pacote_56da1cff__ from "@iflyrpa/pacote";
|
|
12
12
|
var package_namespaceObject = {
|
|
13
|
-
i8: "1.2.
|
|
13
|
+
i8: "1.2.6"
|
|
14
14
|
};
|
|
15
15
|
function _define_property(obj, key, value) {
|
|
16
16
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
@@ -195,10 +195,9 @@ class Logger {
|
|
|
195
195
|
warn(...msg) {
|
|
196
196
|
__WEBPACK_EXTERNAL_MODULE_loglevel__["default"].warn(...msg);
|
|
197
197
|
}
|
|
198
|
-
error(prefix,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
if ("object" == typeof err) error = `${prefix}:${JSON.stringify(err)}`;
|
|
198
|
+
error(prefix, error) {
|
|
199
|
+
if (error instanceof Error) error.message = `${prefix}: ${error.message}`;
|
|
200
|
+
else error = new Error(`${prefix}: ${error}`);
|
|
202
201
|
__WEBPACK_EXTERNAL_MODULE_loglevel__["default"].error(error);
|
|
203
202
|
this.sentry.captureException(error);
|
|
204
203
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iflyrpa/playwright",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.6",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"extract-zip": "^2.0.1",
|
|
29
29
|
"loglevel": "^1.9.2",
|
|
30
30
|
"@iflyrpa/pacote": "1.0.0",
|
|
31
|
-
"@iflyrpa/actions": "1.1.
|
|
31
|
+
"@iflyrpa/actions": "1.1.13",
|
|
32
32
|
"@iflyrpa/share": "0.0.3"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|