@commercetools-frontend/sentry 22.33.0 → 22.34.0
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.
|
@@ -46,7 +46,7 @@ var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construc
|
|
|
46
46
|
var _pt__default = /*#__PURE__*/_interopDefault(_pt);
|
|
47
47
|
|
|
48
48
|
// NOTE: This string will be replaced on build time with the package version.
|
|
49
|
-
var version = "22.
|
|
49
|
+
var version = "22.34.0";
|
|
50
50
|
|
|
51
51
|
const makeErrorToCapture = error => {
|
|
52
52
|
if (error instanceof Error) return error;
|
|
@@ -139,6 +139,13 @@ const reportErrorToSentry = (error, extraInfo, getIsEnabled) => {
|
|
|
139
139
|
} else {
|
|
140
140
|
Sentry__namespace.setExtra('extra', extraInfo.extra);
|
|
141
141
|
}
|
|
142
|
+
} else if (error instanceof ErrorEvent) {
|
|
143
|
+
Sentry__namespace.setExtras({
|
|
144
|
+
filename: error.filename,
|
|
145
|
+
lineno: error.lineno,
|
|
146
|
+
colno: error.colno,
|
|
147
|
+
error: error.error
|
|
148
|
+
});
|
|
142
149
|
}
|
|
143
150
|
// Generate a unique ID referring to the last generated Sentry error
|
|
144
151
|
const errorId = sendErrorToSentry(error);
|
|
@@ -45,7 +45,7 @@ var history__default = /*#__PURE__*/_interopDefault(history);
|
|
|
45
45
|
var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construct);
|
|
46
46
|
|
|
47
47
|
// NOTE: This string will be replaced on build time with the package version.
|
|
48
|
-
var version = "22.
|
|
48
|
+
var version = "22.34.0";
|
|
49
49
|
|
|
50
50
|
const makeErrorToCapture = error => {
|
|
51
51
|
if (error instanceof Error) return error;
|
|
@@ -138,6 +138,13 @@ const reportErrorToSentry = (error, extraInfo, getIsEnabled) => {
|
|
|
138
138
|
} else {
|
|
139
139
|
Sentry__namespace.setExtra('extra', extraInfo.extra);
|
|
140
140
|
}
|
|
141
|
+
} else if (error instanceof ErrorEvent) {
|
|
142
|
+
Sentry__namespace.setExtras({
|
|
143
|
+
filename: error.filename,
|
|
144
|
+
lineno: error.lineno,
|
|
145
|
+
colno: error.colno,
|
|
146
|
+
error: error.error
|
|
147
|
+
});
|
|
141
148
|
}
|
|
142
149
|
// Generate a unique ID referring to the last generated Sentry error
|
|
143
150
|
const errorId = sendErrorToSentry(error);
|
|
@@ -14,7 +14,7 @@ import _pt from 'prop-types';
|
|
|
14
14
|
import { PureComponent, Component } from 'react';
|
|
15
15
|
|
|
16
16
|
// NOTE: This string will be replaced on build time with the package version.
|
|
17
|
-
var version = "22.
|
|
17
|
+
var version = "22.34.0";
|
|
18
18
|
|
|
19
19
|
const makeErrorToCapture = error => {
|
|
20
20
|
if (error instanceof Error) return error;
|
|
@@ -107,6 +107,13 @@ const reportErrorToSentry = (error, extraInfo, getIsEnabled) => {
|
|
|
107
107
|
} else {
|
|
108
108
|
Sentry.setExtra('extra', extraInfo.extra);
|
|
109
109
|
}
|
|
110
|
+
} else if (error instanceof ErrorEvent) {
|
|
111
|
+
Sentry.setExtras({
|
|
112
|
+
filename: error.filename,
|
|
113
|
+
lineno: error.lineno,
|
|
114
|
+
colno: error.colno,
|
|
115
|
+
error: error.error
|
|
116
|
+
});
|
|
110
117
|
}
|
|
111
118
|
// Generate a unique ID referring to the last generated Sentry error
|
|
112
119
|
const errorId = sendErrorToSentry(error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/sentry",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.34.0",
|
|
4
4
|
"description": "Components to set up Sentry for a MC application",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/runtime": "^7.22.15",
|
|
32
32
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
33
|
-
"@commercetools-frontend/browser-history": "22.
|
|
34
|
-
"@commercetools-frontend/constants": "22.
|
|
33
|
+
"@commercetools-frontend/browser-history": "22.34.0",
|
|
34
|
+
"@commercetools-frontend/constants": "22.34.0",
|
|
35
35
|
"@sentry/browser": "7.117.0",
|
|
36
36
|
"@sentry/react": "7.117.0",
|
|
37
37
|
"@sentry/types": "7.117.0",
|