@sentry/browser 6.14.1 → 6.14.2
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/build/bundle.es6.js +10 -12
- package/build/bundle.es6.js.map +1 -1
- package/build/bundle.es6.min.js +2 -2
- package/build/bundle.es6.min.js.map +1 -1
- package/build/bundle.js +10 -12
- package/build/bundle.js.map +1 -1
- package/build/bundle.min.js +2 -2
- package/build/bundle.min.js.map +1 -1
- package/dist/eventbuilder.d.ts.map +1 -1
- package/dist/eventbuilder.js +2 -3
- package/dist/eventbuilder.js.map +1 -1
- package/esm/eventbuilder.d.ts.map +1 -1
- package/esm/eventbuilder.js +2 -3
- package/esm/eventbuilder.js.map +1 -1
- package/package.json +5 -5
package/build/bundle.es6.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @sentry/browser 6.14.
|
|
1
|
+
/*! @sentry/browser 6.14.2 (9a623dd) | https://github.com/getsentry/sentry-javascript */
|
|
2
2
|
var Sentry = (function (exports) {
|
|
3
3
|
/** Console logging verbosity for the SDK. */
|
|
4
4
|
var LogLevel;
|
|
@@ -252,7 +252,7 @@ var Sentry = (function (exports) {
|
|
|
252
252
|
return Object.prototype.toString.call(wat) === '[object DOMException]';
|
|
253
253
|
}
|
|
254
254
|
/**
|
|
255
|
-
* Checks whether given value's type is
|
|
255
|
+
* Checks whether the given value's type is string
|
|
256
256
|
* {@link isString}.
|
|
257
257
|
*
|
|
258
258
|
* @param wat A value to be checked.
|
|
@@ -1074,9 +1074,8 @@ var Sentry = (function (exports) {
|
|
|
1074
1074
|
* Given any object, return the new object with removed keys that value was `undefined`.
|
|
1075
1075
|
* Works recursively on objects and arrays.
|
|
1076
1076
|
*/
|
|
1077
|
-
function dropUndefinedKeys(
|
|
1078
|
-
if (isPlainObject(
|
|
1079
|
-
const obj = val;
|
|
1077
|
+
function dropUndefinedKeys(obj) {
|
|
1078
|
+
if (isPlainObject(obj)) {
|
|
1080
1079
|
const rv = {};
|
|
1081
1080
|
for (const key of Object.keys(obj)) {
|
|
1082
1081
|
if (typeof obj[key] !== 'undefined') {
|
|
@@ -1085,10 +1084,10 @@ var Sentry = (function (exports) {
|
|
|
1085
1084
|
}
|
|
1086
1085
|
return rv;
|
|
1087
1086
|
}
|
|
1088
|
-
if (Array.isArray(
|
|
1089
|
-
return
|
|
1087
|
+
if (Array.isArray(obj)) {
|
|
1088
|
+
return obj.map(dropUndefinedKeys);
|
|
1090
1089
|
}
|
|
1091
|
-
return
|
|
1090
|
+
return obj;
|
|
1092
1091
|
}
|
|
1093
1092
|
|
|
1094
1093
|
/**
|
|
@@ -4361,7 +4360,7 @@ var Sentry = (function (exports) {
|
|
|
4361
4360
|
hub.bindClient(client);
|
|
4362
4361
|
}
|
|
4363
4362
|
|
|
4364
|
-
const SDK_VERSION = '6.14.
|
|
4363
|
+
const SDK_VERSION = '6.14.2';
|
|
4365
4364
|
|
|
4366
4365
|
let originalFunctionToString;
|
|
4367
4366
|
/** Patch toString calls to return proper name for wrapped functions */
|
|
@@ -4959,11 +4958,10 @@ var Sentry = (function (exports) {
|
|
|
4959
4958
|
*/
|
|
4960
4959
|
function eventFromUnknownInput(exception, syntheticException, options = {}) {
|
|
4961
4960
|
let event;
|
|
4962
|
-
if (isErrorEvent(exception)
|
|
4961
|
+
if (isErrorEvent(exception)) {
|
|
4963
4962
|
// If it is an ErrorEvent with `error` property, extract it to get actual Error
|
|
4964
|
-
const errorEvent = exception;
|
|
4965
4963
|
// eslint-disable-next-line no-param-reassign
|
|
4966
|
-
exception =
|
|
4964
|
+
exception = exception.error;
|
|
4967
4965
|
event = eventFromStacktrace(computeStackTrace(exception));
|
|
4968
4966
|
return event;
|
|
4969
4967
|
}
|