@sentry/browser 6.17.2 → 6.17.6

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,4 +1,4 @@
1
- /*! @sentry/browser 6.17.2 (37b1213) | https://github.com/getsentry/sentry-javascript */
1
+ /*! @sentry/browser 6.17.6 (4b4faec) | https://github.com/getsentry/sentry-javascript */
2
2
  var Sentry = (function (exports) {
3
3
  /**
4
4
  * TODO(v7): Remove this enum and replace with SeverityLevel
@@ -18,8 +18,7 @@ var Sentry = (function (exports) {
18
18
  Severity["Debug"] = "debug";
19
19
  /** JSDoc */
20
20
  Severity["Critical"] = "critical";
21
- })(exports.Severity || (exports.Severity = {}));
22
- const SeverityLevels = ['fatal', 'error', 'warning', 'log', 'info', 'debug', 'critical'];
21
+ })(exports.Severity || (exports.Severity = {}));
23
22
 
24
23
  /**
25
24
  * Consumes the promise and logs the error when it rejects.
@@ -478,6 +477,8 @@ var Sentry = (function (exports) {
478
477
  return components;
479
478
  }
480
479
 
480
+ const SeverityLevels = ['fatal', 'error', 'warning', 'log', 'info', 'debug', 'critical'];
481
+
481
482
  // TODO: Implement different loggers for different environments
482
483
  const global$1 = getGlobalObject();
483
484
  /** Prefix for logging strings */
@@ -4260,7 +4261,7 @@ var Sentry = (function (exports) {
4260
4261
  hub.bindClient(client);
4261
4262
  }
4262
4263
 
4263
- const SDK_VERSION = '6.17.2';
4264
+ const SDK_VERSION = '6.17.6';
4264
4265
 
4265
4266
  let originalFunctionToString;
4266
4267
  /** Patch toString calls to return proper name for wrapped functions */
@@ -5585,6 +5586,7 @@ var Sentry = (function (exports) {
5585
5586
  attachStacktrace,
5586
5587
  isRejection: false,
5587
5588
  }), url, line, column);
5589
+ event.level = exports.Severity.Error;
5588
5590
  addMechanismAndCapture(hub, error, event, 'onerror');
5589
5591
  });
5590
5592
  }
@@ -6723,6 +6725,7 @@ var Sentry = (function (exports) {
6723
6725
  exports.SDK_NAME = SDK_NAME;
6724
6726
  exports.SDK_VERSION = SDK_VERSION;
6725
6727
  exports.Scope = Scope;
6728
+ exports.Session = Session;
6726
6729
  exports.Transports = index;
6727
6730
  exports.addBreadcrumb = addBreadcrumb;
6728
6731
  exports.addGlobalEventProcessor = addGlobalEventProcessor;