@iflyrpa/playwright 1.2.15 → 1.2.17
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 +5 -2
- package/dist/index.js +5 -2
- 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.16"
|
|
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);
|
|
@@ -247,7 +247,10 @@ class Logger extends SentryInstance {
|
|
|
247
247
|
}
|
|
248
248
|
error(prefix, error) {
|
|
249
249
|
if (error instanceof Error) error.message = `${prefix}: ${error.message}`;
|
|
250
|
-
else error
|
|
250
|
+
else if (error && 'object' == typeof error) {
|
|
251
|
+
const errorStr = JSON.stringify(error, null, 2);
|
|
252
|
+
error = new Error(`${prefix}: ${errorStr}`);
|
|
253
|
+
} else error = new Error(`${prefix}: ${error}`);
|
|
251
254
|
external_loglevel_default().error(error);
|
|
252
255
|
this.captureException(error);
|
|
253
256
|
}
|
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.16"
|
|
14
14
|
};
|
|
15
15
|
function _define_property(obj, key, value) {
|
|
16
16
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
@@ -198,7 +198,10 @@ class Logger extends SentryInstance {
|
|
|
198
198
|
}
|
|
199
199
|
error(prefix, error) {
|
|
200
200
|
if (error instanceof Error) error.message = `${prefix}: ${error.message}`;
|
|
201
|
-
else error
|
|
201
|
+
else if (error && 'object' == typeof error) {
|
|
202
|
+
const errorStr = JSON.stringify(error, null, 2);
|
|
203
|
+
error = new Error(`${prefix}: ${errorStr}`);
|
|
204
|
+
} else error = new Error(`${prefix}: ${error}`);
|
|
202
205
|
__WEBPACK_EXTERNAL_MODULE_loglevel__["default"].error(error);
|
|
203
206
|
this.captureException(error);
|
|
204
207
|
}
|
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.17",
|
|
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.21",
|
|
32
32
|
"@iflyrpa/share": "0.0.5"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|