@commercetools-frontend/sentry 23.1.0 → 23.2.1
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 = "23.1
|
|
49
|
+
var version = "23.2.1";
|
|
50
50
|
|
|
51
51
|
const makeErrorToCapture = error => {
|
|
52
52
|
if (error instanceof Error) return error;
|
|
@@ -104,11 +104,11 @@ const boot = () => {
|
|
|
104
104
|
// suppress any resize observer errors, see
|
|
105
105
|
// https://github.com/vercel/next.js/discussions/51551
|
|
106
106
|
ignoreErrors: [/ResizeObserver loop (limit exceeded|completed with undelivered notifications)/i],
|
|
107
|
-
integrations: [
|
|
107
|
+
integrations: [browser.globalHandlersIntegration({
|
|
108
108
|
onunhandledrejection: false,
|
|
109
109
|
onerror: false
|
|
110
|
-
}),
|
|
111
|
-
|
|
110
|
+
}), Sentry__namespace.reactRouterV5BrowserTracingIntegration({
|
|
111
|
+
history: history__default["default"]
|
|
112
112
|
})],
|
|
113
113
|
// Sending 5% of transactions. We can adjust that as we see a need to.
|
|
114
114
|
// Generally we need to find a balance between performance and data volume.
|
|
@@ -120,9 +120,9 @@ const boot = () => {
|
|
|
120
120
|
return redactUnsafeEventFields(event);
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
|
-
Sentry__namespace.
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
const sentryScope = Sentry__namespace.getCurrentScope();
|
|
124
|
+
sentryScope.setTag('role', 'frontend');
|
|
125
|
+
sentryScope.setTag('applicationName', window.app.applicationName);
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
128
|
const isExtraAsObject = extrasOrExtra => typeof extrasOrExtra === 'object';
|
|
@@ -160,7 +160,7 @@ const reportErrorToSentry = (error, extraInfo, getIsEnabled) => {
|
|
|
160
160
|
return undefined;
|
|
161
161
|
};
|
|
162
162
|
|
|
163
|
-
function _createSuper$1(
|
|
163
|
+
function _createSuper$1(t) { var r = _isNativeReflectConstruct$1(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = _Reflect$construct__default["default"](o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
164
164
|
function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function () { return !!t; })(); }
|
|
165
165
|
/**
|
|
166
166
|
* This component will let sentry know if any information about the user has
|
|
@@ -217,7 +217,7 @@ SentryUserTracker.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
217
217
|
})
|
|
218
218
|
} : {};
|
|
219
219
|
|
|
220
|
-
function _createSuper(
|
|
220
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = _Reflect$construct__default["default"](o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
221
221
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
222
222
|
let SentryUserLogoutTracker = /*#__PURE__*/function (_Component) {
|
|
223
223
|
_inherits(SentryUserLogoutTracker, _Component);
|
|
@@ -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 = "23.1
|
|
48
|
+
var version = "23.2.1";
|
|
49
49
|
|
|
50
50
|
const makeErrorToCapture = error => {
|
|
51
51
|
if (error instanceof Error) return error;
|
|
@@ -103,11 +103,11 @@ const boot = () => {
|
|
|
103
103
|
// suppress any resize observer errors, see
|
|
104
104
|
// https://github.com/vercel/next.js/discussions/51551
|
|
105
105
|
ignoreErrors: [/ResizeObserver loop (limit exceeded|completed with undelivered notifications)/i],
|
|
106
|
-
integrations: [
|
|
106
|
+
integrations: [browser.globalHandlersIntegration({
|
|
107
107
|
onunhandledrejection: false,
|
|
108
108
|
onerror: false
|
|
109
|
-
}),
|
|
110
|
-
|
|
109
|
+
}), Sentry__namespace.reactRouterV5BrowserTracingIntegration({
|
|
110
|
+
history: history__default["default"]
|
|
111
111
|
})],
|
|
112
112
|
// Sending 5% of transactions. We can adjust that as we see a need to.
|
|
113
113
|
// Generally we need to find a balance between performance and data volume.
|
|
@@ -119,9 +119,9 @@ const boot = () => {
|
|
|
119
119
|
return redactUnsafeEventFields(event);
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
|
-
Sentry__namespace.
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
const sentryScope = Sentry__namespace.getCurrentScope();
|
|
123
|
+
sentryScope.setTag('role', 'frontend');
|
|
124
|
+
sentryScope.setTag('applicationName', window.app.applicationName);
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
const isExtraAsObject = extrasOrExtra => typeof extrasOrExtra === 'object';
|
|
@@ -159,7 +159,7 @@ const reportErrorToSentry = (error, extraInfo, getIsEnabled) => {
|
|
|
159
159
|
return undefined;
|
|
160
160
|
};
|
|
161
161
|
|
|
162
|
-
function _createSuper$1(
|
|
162
|
+
function _createSuper$1(t) { var r = _isNativeReflectConstruct$1(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = _Reflect$construct__default["default"](o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
163
163
|
function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function () { return !!t; })(); }
|
|
164
164
|
/**
|
|
165
165
|
* This component will let sentry know if any information about the user has
|
|
@@ -211,7 +211,7 @@ let SentryUserTracker = /*#__PURE__*/function (_PureComponent) {
|
|
|
211
211
|
SentryUserTracker.displayName = 'SentryUserTracker';
|
|
212
212
|
SentryUserTracker.propTypes = {};
|
|
213
213
|
|
|
214
|
-
function _createSuper(
|
|
214
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = _Reflect$construct__default["default"](o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
215
215
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
216
216
|
let SentryUserLogoutTracker = /*#__PURE__*/function (_Component) {
|
|
217
217
|
_inherits(SentryUserLogoutTracker, _Component);
|
|
@@ -2,7 +2,7 @@ import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringif
|
|
|
2
2
|
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
3
3
|
import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
4
4
|
import * as Sentry from '@sentry/react';
|
|
5
|
-
import {
|
|
5
|
+
import { globalHandlersIntegration } from '@sentry/browser';
|
|
6
6
|
import history from '@commercetools-frontend/browser-history';
|
|
7
7
|
import _Reflect$construct from '@babel/runtime-corejs3/core-js-stable/reflect/construct';
|
|
8
8
|
import _classCallCheck from '@babel/runtime-corejs3/helpers/esm/classCallCheck';
|
|
@@ -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 = "23.1
|
|
17
|
+
var version = "23.2.1";
|
|
18
18
|
|
|
19
19
|
const makeErrorToCapture = error => {
|
|
20
20
|
if (error instanceof Error) return error;
|
|
@@ -72,11 +72,11 @@ const boot = () => {
|
|
|
72
72
|
// suppress any resize observer errors, see
|
|
73
73
|
// https://github.com/vercel/next.js/discussions/51551
|
|
74
74
|
ignoreErrors: [/ResizeObserver loop (limit exceeded|completed with undelivered notifications)/i],
|
|
75
|
-
integrations: [
|
|
75
|
+
integrations: [globalHandlersIntegration({
|
|
76
76
|
onunhandledrejection: false,
|
|
77
77
|
onerror: false
|
|
78
|
-
}),
|
|
79
|
-
|
|
78
|
+
}), Sentry.reactRouterV5BrowserTracingIntegration({
|
|
79
|
+
history
|
|
80
80
|
})],
|
|
81
81
|
// Sending 5% of transactions. We can adjust that as we see a need to.
|
|
82
82
|
// Generally we need to find a balance between performance and data volume.
|
|
@@ -88,9 +88,9 @@ const boot = () => {
|
|
|
88
88
|
return redactUnsafeEventFields(event);
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
|
-
Sentry.
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
const sentryScope = Sentry.getCurrentScope();
|
|
92
|
+
sentryScope.setTag('role', 'frontend');
|
|
93
|
+
sentryScope.setTag('applicationName', window.app.applicationName);
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
const isExtraAsObject = extrasOrExtra => typeof extrasOrExtra === 'object';
|
|
@@ -128,7 +128,7 @@ const reportErrorToSentry = (error, extraInfo, getIsEnabled) => {
|
|
|
128
128
|
return undefined;
|
|
129
129
|
};
|
|
130
130
|
|
|
131
|
-
function _createSuper$1(
|
|
131
|
+
function _createSuper$1(t) { var r = _isNativeReflectConstruct$1(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = _Reflect$construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
132
132
|
function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function () { return !!t; })(); }
|
|
133
133
|
/**
|
|
134
134
|
* This component will let sentry know if any information about the user has
|
|
@@ -185,7 +185,7 @@ SentryUserTracker.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
185
185
|
})
|
|
186
186
|
} : {};
|
|
187
187
|
|
|
188
|
-
function _createSuper(
|
|
188
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = _Reflect$construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
189
189
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
190
190
|
let SentryUserLogoutTracker = /*#__PURE__*/function (_Component) {
|
|
191
191
|
_inherits(SentryUserLogoutTracker, _Component);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/sentry",
|
|
3
|
-
"version": "23.1
|
|
3
|
+
"version": "23.2.1",
|
|
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": "23.1
|
|
34
|
-
"@commercetools-frontend/constants": "23.1
|
|
33
|
+
"@commercetools-frontend/browser-history": "23.2.1",
|
|
34
|
+
"@commercetools-frontend/constants": "23.2.1",
|
|
35
35
|
"@sentry/browser": "7.119.1",
|
|
36
36
|
"@sentry/react": "7.117.0",
|
|
37
37
|
"@sentry/types": "7.117.0",
|