@commercetools-frontend/sentry 20.12.3 → 21.0.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.
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _typeof = require('@babel/runtime-corejs3/helpers/typeof');
|
|
6
5
|
var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
7
6
|
var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
8
7
|
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
@@ -46,7 +45,7 @@ var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construc
|
|
|
46
45
|
var _pt__default = /*#__PURE__*/_interopDefault(_pt);
|
|
47
46
|
|
|
48
47
|
// NOTE: This string will be replaced on build time with the package version.
|
|
49
|
-
var version = "
|
|
48
|
+
var version = "21.0.0";
|
|
50
49
|
|
|
51
50
|
var makeErrorToCapture = function makeErrorToCapture(error) {
|
|
52
51
|
if (error instanceof Error) return error;
|
|
@@ -71,7 +70,7 @@ var replaceEventValues = function replaceEventValues(source, replacements) {
|
|
|
71
70
|
|
|
72
71
|
var hasPropReplacement = _includesInstanceProperty__default["default"](_context = _Object$keys__default["default"](replacements)).call(_context, prop);
|
|
73
72
|
|
|
74
|
-
switch (
|
|
73
|
+
switch (typeof source[prop]) {
|
|
75
74
|
case 'string':
|
|
76
75
|
if (hasPropReplacement) {
|
|
77
76
|
replaceEventValue(prop);
|
|
@@ -129,7 +128,7 @@ var boot = function boot() {
|
|
|
129
128
|
};
|
|
130
129
|
|
|
131
130
|
var isExtraAsObject = function isExtraAsObject(extrasOrExtra) {
|
|
132
|
-
return
|
|
131
|
+
return typeof extrasOrExtra === 'object';
|
|
133
132
|
};
|
|
134
133
|
|
|
135
134
|
var reportErrorToSentry = function reportErrorToSentry(error, extraInfo, getIsEnabled) {
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _typeof = require('@babel/runtime-corejs3/helpers/typeof');
|
|
6
5
|
var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
7
6
|
var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
8
7
|
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
@@ -45,7 +44,7 @@ var Sentry__namespace = /*#__PURE__*/_interopNamespace(Sentry);
|
|
|
45
44
|
var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construct);
|
|
46
45
|
|
|
47
46
|
// NOTE: This string will be replaced on build time with the package version.
|
|
48
|
-
var version = "
|
|
47
|
+
var version = "21.0.0";
|
|
49
48
|
|
|
50
49
|
var makeErrorToCapture = function makeErrorToCapture(error) {
|
|
51
50
|
if (error instanceof Error) return error;
|
|
@@ -70,7 +69,7 @@ var replaceEventValues = function replaceEventValues(source, replacements) {
|
|
|
70
69
|
|
|
71
70
|
var hasPropReplacement = _includesInstanceProperty__default["default"](_context = _Object$keys__default["default"](replacements)).call(_context, prop);
|
|
72
71
|
|
|
73
|
-
switch (
|
|
72
|
+
switch (typeof source[prop]) {
|
|
74
73
|
case 'string':
|
|
75
74
|
if (hasPropReplacement) {
|
|
76
75
|
replaceEventValue(prop);
|
|
@@ -128,7 +127,7 @@ var boot = function boot() {
|
|
|
128
127
|
};
|
|
129
128
|
|
|
130
129
|
var isExtraAsObject = function isExtraAsObject(extrasOrExtra) {
|
|
131
|
-
return
|
|
130
|
+
return typeof extrasOrExtra === 'object';
|
|
132
131
|
};
|
|
133
132
|
|
|
134
133
|
var reportErrorToSentry = function reportErrorToSentry(error, extraInfo, getIsEnabled) {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _typeof from '@babel/runtime-corejs3/helpers/esm/typeof';
|
|
2
1
|
import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
3
2
|
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
4
3
|
import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
@@ -14,7 +13,7 @@ import _pt from 'prop-types';
|
|
|
14
13
|
import { PureComponent, Component } from 'react';
|
|
15
14
|
|
|
16
15
|
// NOTE: This string will be replaced on build time with the package version.
|
|
17
|
-
var version = "
|
|
16
|
+
var version = "21.0.0";
|
|
18
17
|
|
|
19
18
|
var makeErrorToCapture = function makeErrorToCapture(error) {
|
|
20
19
|
if (error instanceof Error) return error;
|
|
@@ -39,7 +38,7 @@ var replaceEventValues = function replaceEventValues(source, replacements) {
|
|
|
39
38
|
|
|
40
39
|
var hasPropReplacement = _includesInstanceProperty(_context = _Object$keys(replacements)).call(_context, prop);
|
|
41
40
|
|
|
42
|
-
switch (
|
|
41
|
+
switch (typeof source[prop]) {
|
|
43
42
|
case 'string':
|
|
44
43
|
if (hasPropReplacement) {
|
|
45
44
|
replaceEventValue(prop);
|
|
@@ -97,7 +96,7 @@ var boot = function boot() {
|
|
|
97
96
|
};
|
|
98
97
|
|
|
99
98
|
var isExtraAsObject = function isExtraAsObject(extrasOrExtra) {
|
|
100
|
-
return
|
|
99
|
+
return typeof extrasOrExtra === 'object';
|
|
101
100
|
};
|
|
102
101
|
|
|
103
102
|
var reportErrorToSentry = function reportErrorToSentry(error, extraInfo, getIsEnabled) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/sentry",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.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": {
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"module": "dist/commercetools-frontend-sentry.esm.js",
|
|
19
19
|
"files": ["dist", "package.json", "LICENSE", "README.md"],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@babel/runtime": "7.16.
|
|
22
|
-
"@babel/runtime-corejs3": "7.16.
|
|
23
|
-
"@commercetools-frontend/constants": "
|
|
21
|
+
"@babel/runtime": "^7.16.7",
|
|
22
|
+
"@babel/runtime-corejs3": "^7.16.8",
|
|
23
|
+
"@commercetools-frontend/constants": "21.0.0",
|
|
24
24
|
"@sentry/browser": "6.16.1",
|
|
25
25
|
"@types/prop-types": "^15.7.4",
|
|
26
|
-
"@types/react": "^17.0.
|
|
27
|
-
"prop-types": "15.
|
|
26
|
+
"@types/react": "^17.0.38",
|
|
27
|
+
"prop-types": "15.8.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"react": "17.0.2",
|