@commercetools-frontend/sentry 27.5.3 → 27.6.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.
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
4
6
  var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
5
7
  var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
@@ -14,7 +16,7 @@ var _getPrototypeOf = require('@babel/runtime-corejs3/helpers/getPrototypeOf');
14
16
  var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
15
17
  var react = require('react');
16
18
 
17
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
19
+ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
18
20
 
19
21
  function _interopNamespace(e) {
20
22
  if (e && e.__esModule) return e;
@@ -30,7 +32,7 @@ function _interopNamespace(e) {
30
32
  }
31
33
  });
32
34
  }
33
- n.default = e;
35
+ n["default"] = e;
34
36
  return Object.freeze(n);
35
37
  }
36
38
 
@@ -42,12 +44,12 @@ var history__default = /*#__PURE__*/_interopDefault(history);
42
44
  var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construct);
43
45
 
44
46
  // NOTE: This string will be replaced on build time with the package version.
45
- var version = "27.5.3";
47
+ var version = "27.6.0";
46
48
 
47
49
  const makeErrorToCapture = error => {
48
50
  if (error instanceof Error) return error;
49
51
  if (error instanceof ErrorEvent) return new Error(error.message);
50
- return new Error(_JSON$stringify__default.default(error.reason || 'Unhandled rejection without a reason'));
52
+ return new Error(_JSON$stringify__default["default"](error.reason || 'Unhandled rejection without a reason'));
51
53
  };
52
54
  const sendErrorToSentry = error => {
53
55
  if (typeof error === 'string') return Sentry__namespace.captureMessage(error);
@@ -61,7 +63,7 @@ const replaceEventValues = (source, replacements) => {
61
63
  for (const prop in source) {
62
64
  if (Object.prototype.hasOwnProperty.call(source, prop)) {
63
65
  var _context;
64
- const hasPropReplacement = _includesInstanceProperty__default.default(_context = _Object$keys__default.default(replacements)).call(_context, prop);
66
+ const hasPropReplacement = _includesInstanceProperty__default["default"](_context = _Object$keys__default["default"](replacements)).call(_context, prop);
65
67
  switch (typeof source[prop]) {
66
68
  case 'string':
67
69
  if (hasPropReplacement) {
@@ -104,7 +106,7 @@ const boot = () => {
104
106
  onunhandledrejection: false,
105
107
  onerror: false
106
108
  }), Sentry__namespace.reactRouterV5BrowserTracingIntegration({
107
- history: history__default.default
109
+ history: history__default["default"]
108
110
  })],
109
111
  // Sending 5% of transactions. We can adjust that as we see a need to.
110
112
  // Generally we need to find a balance between performance and data volume.
@@ -159,8 +161,8 @@ const reportErrorToSentry = (error, extraInfo, getIsEnabled) => {
159
161
  return undefined;
160
162
  };
161
163
 
162
- function _callSuper$1(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? _Reflect$construct__default.default(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
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
+ function _callSuper$1(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
165
+ 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
166
  /**
165
167
  * This component will let sentry know if any information about the user has
166
168
  * changed.
@@ -208,8 +210,8 @@ let SentryUserTracker = /*#__PURE__*/function (_PureComponent) {
208
210
  }(react.PureComponent);
209
211
  SentryUserTracker.displayName = 'SentryUserTracker';
210
212
 
211
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct__default.default(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
212
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default.default(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
213
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
214
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
213
215
  let SentryUserLogoutTracker = /*#__PURE__*/function (_Component) {
214
216
  function SentryUserLogoutTracker() {
215
217
  _classCallCheck(this, SentryUserLogoutTracker);
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
4
6
  var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
5
7
  var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
@@ -14,7 +16,7 @@ var _getPrototypeOf = require('@babel/runtime-corejs3/helpers/getPrototypeOf');
14
16
  var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
15
17
  var react = require('react');
16
18
 
17
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
19
+ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
18
20
 
19
21
  function _interopNamespace(e) {
20
22
  if (e && e.__esModule) return e;
@@ -30,7 +32,7 @@ function _interopNamespace(e) {
30
32
  }
31
33
  });
32
34
  }
33
- n.default = e;
35
+ n["default"] = e;
34
36
  return Object.freeze(n);
35
37
  }
36
38
 
@@ -42,12 +44,12 @@ var history__default = /*#__PURE__*/_interopDefault(history);
42
44
  var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construct);
43
45
 
44
46
  // NOTE: This string will be replaced on build time with the package version.
45
- var version = "27.5.3";
47
+ var version = "27.6.0";
46
48
 
47
49
  const makeErrorToCapture = error => {
48
50
  if (error instanceof Error) return error;
49
51
  if (error instanceof ErrorEvent) return new Error(error.message);
50
- return new Error(_JSON$stringify__default.default(error.reason || 'Unhandled rejection without a reason'));
52
+ return new Error(_JSON$stringify__default["default"](error.reason || 'Unhandled rejection without a reason'));
51
53
  };
52
54
  const sendErrorToSentry = error => {
53
55
  if (typeof error === 'string') return Sentry__namespace.captureMessage(error);
@@ -61,7 +63,7 @@ const replaceEventValues = (source, replacements) => {
61
63
  for (const prop in source) {
62
64
  if (Object.prototype.hasOwnProperty.call(source, prop)) {
63
65
  var _context;
64
- const hasPropReplacement = _includesInstanceProperty__default.default(_context = _Object$keys__default.default(replacements)).call(_context, prop);
66
+ const hasPropReplacement = _includesInstanceProperty__default["default"](_context = _Object$keys__default["default"](replacements)).call(_context, prop);
65
67
  switch (typeof source[prop]) {
66
68
  case 'string':
67
69
  if (hasPropReplacement) {
@@ -104,7 +106,7 @@ const boot = () => {
104
106
  onunhandledrejection: false,
105
107
  onerror: false
106
108
  }), Sentry__namespace.reactRouterV5BrowserTracingIntegration({
107
- history: history__default.default
109
+ history: history__default["default"]
108
110
  })],
109
111
  // Sending 5% of transactions. We can adjust that as we see a need to.
110
112
  // Generally we need to find a balance between performance and data volume.
@@ -159,8 +161,8 @@ const reportErrorToSentry = (error, extraInfo, getIsEnabled) => {
159
161
  return undefined;
160
162
  };
161
163
 
162
- function _callSuper$1(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? _Reflect$construct__default.default(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
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
+ function _callSuper$1(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
165
+ 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
166
  /**
165
167
  * This component will let sentry know if any information about the user has
166
168
  * changed.
@@ -208,8 +210,8 @@ let SentryUserTracker = /*#__PURE__*/function (_PureComponent) {
208
210
  }(react.PureComponent);
209
211
  SentryUserTracker.displayName = 'SentryUserTracker';
210
212
 
211
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct__default.default(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
212
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default.default(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
213
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
214
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
213
215
  let SentryUserLogoutTracker = /*#__PURE__*/function (_Component) {
214
216
  function SentryUserLogoutTracker() {
215
217
  _classCallCheck(this, SentryUserLogoutTracker);
@@ -13,7 +13,7 @@ import _inherits from '@babel/runtime-corejs3/helpers/esm/inherits';
13
13
  import { PureComponent, Component } from 'react';
14
14
 
15
15
  // NOTE: This string will be replaced on build time with the package version.
16
- var version = "27.5.3";
16
+ var version = "27.6.0";
17
17
 
18
18
  const makeErrorToCapture = error => {
19
19
  if (error instanceof Error) return error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/sentry",
3
- "version": "27.5.3",
3
+ "version": "27.6.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": "27.5.3",
34
- "@commercetools-frontend/constants": "27.5.3",
33
+ "@commercetools-frontend/browser-history": "27.6.0",
34
+ "@commercetools-frontend/constants": "27.6.0",
35
35
  "@sentry/browser": "8.55.0",
36
36
  "@sentry/react": "8.55.0",
37
37
  "@sentry/types": "8.55.0",