@sentry/browser 6.15.0 → 6.16.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.
- package/build/bundle.es6.js +9 -19
- 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 +9 -19
- package/build/bundle.js.map +1 -1
- package/build/bundle.min.js +2 -2
- package/build/bundle.min.js.map +1 -1
- package/package.json +16 -15
package/build/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @sentry/browser 6.
|
|
1
|
+
/*! @sentry/browser 6.16.0 (cec8970) | https://github.com/getsentry/sentry-javascript */
|
|
2
2
|
var Sentry = (function (exports) {
|
|
3
3
|
/*! *****************************************************************************
|
|
4
4
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2031,16 +2031,6 @@ var Sentry = (function (exports) {
|
|
|
2031
2031
|
}
|
|
2032
2032
|
|
|
2033
2033
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
2034
|
-
/** SyncPromise internal states */
|
|
2035
|
-
var States;
|
|
2036
|
-
(function (States) {
|
|
2037
|
-
/** Pending */
|
|
2038
|
-
States["PENDING"] = "PENDING";
|
|
2039
|
-
/** Resolved / OK */
|
|
2040
|
-
States["RESOLVED"] = "RESOLVED";
|
|
2041
|
-
/** Rejected / Error */
|
|
2042
|
-
States["REJECTED"] = "REJECTED";
|
|
2043
|
-
})(States || (States = {}));
|
|
2044
2034
|
/**
|
|
2045
2035
|
* Thenable class that behaves like a Promise and follows it's interface
|
|
2046
2036
|
* but is not async internally
|
|
@@ -2048,19 +2038,19 @@ var Sentry = (function (exports) {
|
|
|
2048
2038
|
var SyncPromise = /** @class */ (function () {
|
|
2049
2039
|
function SyncPromise(executor) {
|
|
2050
2040
|
var _this = this;
|
|
2051
|
-
this._state =
|
|
2041
|
+
this._state = "PENDING" /* PENDING */;
|
|
2052
2042
|
this._handlers = [];
|
|
2053
2043
|
/** JSDoc */
|
|
2054
2044
|
this._resolve = function (value) {
|
|
2055
|
-
_this._setResult(
|
|
2045
|
+
_this._setResult("RESOLVED" /* RESOLVED */, value);
|
|
2056
2046
|
};
|
|
2057
2047
|
/** JSDoc */
|
|
2058
2048
|
this._reject = function (reason) {
|
|
2059
|
-
_this._setResult(
|
|
2049
|
+
_this._setResult("REJECTED" /* REJECTED */, reason);
|
|
2060
2050
|
};
|
|
2061
2051
|
/** JSDoc */
|
|
2062
2052
|
this._setResult = function (state, value) {
|
|
2063
|
-
if (_this._state !==
|
|
2053
|
+
if (_this._state !== "PENDING" /* PENDING */) {
|
|
2064
2054
|
return;
|
|
2065
2055
|
}
|
|
2066
2056
|
if (isThenable(value)) {
|
|
@@ -2079,7 +2069,7 @@ var Sentry = (function (exports) {
|
|
|
2079
2069
|
};
|
|
2080
2070
|
/** JSDoc */
|
|
2081
2071
|
this._executeHandlers = function () {
|
|
2082
|
-
if (_this._state ===
|
|
2072
|
+
if (_this._state === "PENDING" /* PENDING */) {
|
|
2083
2073
|
return;
|
|
2084
2074
|
}
|
|
2085
2075
|
var cachedHandlers = _this._handlers.slice();
|
|
@@ -2088,13 +2078,13 @@ var Sentry = (function (exports) {
|
|
|
2088
2078
|
if (handler.done) {
|
|
2089
2079
|
return;
|
|
2090
2080
|
}
|
|
2091
|
-
if (_this._state ===
|
|
2081
|
+
if (_this._state === "RESOLVED" /* RESOLVED */) {
|
|
2092
2082
|
if (handler.onfulfilled) {
|
|
2093
2083
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
2094
2084
|
handler.onfulfilled(_this._value);
|
|
2095
2085
|
}
|
|
2096
2086
|
}
|
|
2097
|
-
if (_this._state ===
|
|
2087
|
+
if (_this._state === "REJECTED" /* REJECTED */) {
|
|
2098
2088
|
if (handler.onrejected) {
|
|
2099
2089
|
handler.onrejected(_this._value);
|
|
2100
2090
|
}
|
|
@@ -4558,7 +4548,7 @@ var Sentry = (function (exports) {
|
|
|
4558
4548
|
hub.bindClient(client);
|
|
4559
4549
|
}
|
|
4560
4550
|
|
|
4561
|
-
var SDK_VERSION = '6.
|
|
4551
|
+
var SDK_VERSION = '6.16.0';
|
|
4562
4552
|
|
|
4563
4553
|
var originalFunctionToString;
|
|
4564
4554
|
/** Patch toString calls to return proper name for wrapped functions */
|