@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.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @sentry/browser 6.14.1 (687b6c4) | https://github.com/getsentry/sentry-javascript */
1
+ /*! @sentry/browser 6.14.2 (9a623dd) | https://github.com/getsentry/sentry-javascript */
2
2
  var Sentry = (function (exports) {
3
3
  /*! *****************************************************************************
4
4
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -336,7 +336,7 @@ var Sentry = (function (exports) {
336
336
  return Object.prototype.toString.call(wat) === '[object DOMException]';
337
337
  }
338
338
  /**
339
- * Checks whether given value's type is a string
339
+ * Checks whether the given value's type is string
340
340
  * {@link isString}.
341
341
  *
342
342
  * @param wat A value to be checked.
@@ -1185,10 +1185,9 @@ var Sentry = (function (exports) {
1185
1185
  * Given any object, return the new object with removed keys that value was `undefined`.
1186
1186
  * Works recursively on objects and arrays.
1187
1187
  */
1188
- function dropUndefinedKeys(val) {
1188
+ function dropUndefinedKeys(obj) {
1189
1189
  var e_1, _a;
1190
- if (isPlainObject(val)) {
1191
- var obj = val;
1190
+ if (isPlainObject(obj)) {
1192
1191
  var rv = {};
1193
1192
  try {
1194
1193
  for (var _b = __values(Object.keys(obj)), _c = _b.next(); !_c.done; _c = _b.next()) {
@@ -1207,10 +1206,10 @@ var Sentry = (function (exports) {
1207
1206
  }
1208
1207
  return rv;
1209
1208
  }
1210
- if (Array.isArray(val)) {
1211
- return val.map(dropUndefinedKeys);
1209
+ if (Array.isArray(obj)) {
1210
+ return obj.map(dropUndefinedKeys);
1212
1211
  }
1213
- return val;
1212
+ return obj;
1214
1213
  }
1215
1214
 
1216
1215
  /**
@@ -4558,7 +4557,7 @@ var Sentry = (function (exports) {
4558
4557
  hub.bindClient(client);
4559
4558
  }
4560
4559
 
4561
- var SDK_VERSION = '6.14.1';
4560
+ var SDK_VERSION = '6.14.2';
4562
4561
 
4563
4562
  var originalFunctionToString;
4564
4563
  /** Patch toString calls to return proper name for wrapped functions */
@@ -5151,11 +5150,10 @@ var Sentry = (function (exports) {
5151
5150
  function eventFromUnknownInput(exception, syntheticException, options) {
5152
5151
  if (options === void 0) { options = {}; }
5153
5152
  var event;
5154
- if (isErrorEvent(exception) && exception.error) {
5153
+ if (isErrorEvent(exception)) {
5155
5154
  // If it is an ErrorEvent with `error` property, extract it to get actual Error
5156
- var errorEvent = exception;
5157
5155
  // eslint-disable-next-line no-param-reassign
5158
- exception = errorEvent.error;
5156
+ exception = exception.error;
5159
5157
  event = eventFromStacktrace(computeStackTrace(exception));
5160
5158
  return event;
5161
5159
  }