@sentry/browser 6.19.3 → 6.19.4

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.19.3 (fe6f7b3) | https://github.com/getsentry/sentry-javascript */
1
+ /*! @sentry/browser 6.19.4 (261f2e4) | https://github.com/getsentry/sentry-javascript */
2
2
  var Sentry = (function (exports) {
3
3
 
4
4
  /**
@@ -35,22 +35,6 @@ var Sentry = (function (exports) {
35
35
  });
36
36
  }
37
37
 
38
- /**
39
- * This module exists for optimizations in the build process through rollup and terser. We define some global
40
- * constants, which can be overridden during build. By guarding certain pieces of code with functions that return these
41
- * constants, we can control whether or not they appear in the final bundle. (Any code guarded by a false condition will
42
- * never run, and will hence be dropped during treeshaking.) The two primary uses for this are stripping out calls to
43
- * `logger` and preventing node-related code from appearing in browser bundles.
44
- */
45
- /**
46
- * Figures out if we're building with debug functionality.
47
- *
48
- * @returns true if this is a debug build
49
- */
50
- function isDebugBuild() {
51
- return true;
52
- }
53
-
54
38
  /**
55
39
  * NOTE: In order to avoid circular dependencies, if you add a function to this module and it needs to print something,
56
40
  * you must either a) use `console.log` rather than the logger, or b) put your function elsewhere.
@@ -4454,7 +4438,7 @@ var Sentry = (function (exports) {
4454
4438
  return `Too many ${category} requests, backing off until: ${new Date(disabledUntil(rateLimits, category)).toISOString()}`;
4455
4439
  }
4456
4440
 
4457
- const SDK_VERSION = '6.19.3';
4441
+ const SDK_VERSION = '6.19.4';
4458
4442
 
4459
4443
  let originalFunctionToString;
4460
4444
  /** Patch toString calls to return proper name for wrapped functions */
@@ -5174,7 +5158,7 @@ var Sentry = (function (exports) {
5174
5158
  const status = eventStatusFromHttpCode(response.status);
5175
5159
  this._rateLimits = updateRateLimits(this._rateLimits, headers);
5176
5160
  // eslint-disable-next-line deprecation/deprecation
5177
- if (this._isRateLimited(requestType) && isDebugBuild()) {
5161
+ if (this._isRateLimited(requestType)) {
5178
5162
  // eslint-disable-next-line deprecation/deprecation
5179
5163
  logger.warn(`Too many ${requestType} requests, backing off until: ${this._disabledUntil(requestType)}`);
5180
5164
  }