@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.es6.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
|
/** Console logging verbosity for the SDK. */
|
|
4
4
|
var LogLevel;
|
|
@@ -1867,35 +1867,25 @@ var Sentry = (function (exports) {
|
|
|
1867
1867
|
}
|
|
1868
1868
|
|
|
1869
1869
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
1870
|
-
/** SyncPromise internal states */
|
|
1871
|
-
var States;
|
|
1872
|
-
(function (States) {
|
|
1873
|
-
/** Pending */
|
|
1874
|
-
States["PENDING"] = "PENDING";
|
|
1875
|
-
/** Resolved / OK */
|
|
1876
|
-
States["RESOLVED"] = "RESOLVED";
|
|
1877
|
-
/** Rejected / Error */
|
|
1878
|
-
States["REJECTED"] = "REJECTED";
|
|
1879
|
-
})(States || (States = {}));
|
|
1880
1870
|
/**
|
|
1881
1871
|
* Thenable class that behaves like a Promise and follows it's interface
|
|
1882
1872
|
* but is not async internally
|
|
1883
1873
|
*/
|
|
1884
1874
|
class SyncPromise {
|
|
1885
1875
|
constructor(executor) {
|
|
1886
|
-
this._state =
|
|
1876
|
+
this._state = "PENDING" /* PENDING */;
|
|
1887
1877
|
this._handlers = [];
|
|
1888
1878
|
/** JSDoc */
|
|
1889
1879
|
this._resolve = (value) => {
|
|
1890
|
-
this._setResult(
|
|
1880
|
+
this._setResult("RESOLVED" /* RESOLVED */, value);
|
|
1891
1881
|
};
|
|
1892
1882
|
/** JSDoc */
|
|
1893
1883
|
this._reject = (reason) => {
|
|
1894
|
-
this._setResult(
|
|
1884
|
+
this._setResult("REJECTED" /* REJECTED */, reason);
|
|
1895
1885
|
};
|
|
1896
1886
|
/** JSDoc */
|
|
1897
1887
|
this._setResult = (state, value) => {
|
|
1898
|
-
if (this._state !==
|
|
1888
|
+
if (this._state !== "PENDING" /* PENDING */) {
|
|
1899
1889
|
return;
|
|
1900
1890
|
}
|
|
1901
1891
|
if (isThenable(value)) {
|
|
@@ -1914,7 +1904,7 @@ var Sentry = (function (exports) {
|
|
|
1914
1904
|
};
|
|
1915
1905
|
/** JSDoc */
|
|
1916
1906
|
this._executeHandlers = () => {
|
|
1917
|
-
if (this._state ===
|
|
1907
|
+
if (this._state === "PENDING" /* PENDING */) {
|
|
1918
1908
|
return;
|
|
1919
1909
|
}
|
|
1920
1910
|
const cachedHandlers = this._handlers.slice();
|
|
@@ -1923,13 +1913,13 @@ var Sentry = (function (exports) {
|
|
|
1923
1913
|
if (handler.done) {
|
|
1924
1914
|
return;
|
|
1925
1915
|
}
|
|
1926
|
-
if (this._state ===
|
|
1916
|
+
if (this._state === "RESOLVED" /* RESOLVED */) {
|
|
1927
1917
|
if (handler.onfulfilled) {
|
|
1928
1918
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
1929
1919
|
handler.onfulfilled(this._value);
|
|
1930
1920
|
}
|
|
1931
1921
|
}
|
|
1932
|
-
if (this._state ===
|
|
1922
|
+
if (this._state === "REJECTED" /* REJECTED */) {
|
|
1933
1923
|
if (handler.onrejected) {
|
|
1934
1924
|
handler.onrejected(this._value);
|
|
1935
1925
|
}
|
|
@@ -4361,7 +4351,7 @@ var Sentry = (function (exports) {
|
|
|
4361
4351
|
hub.bindClient(client);
|
|
4362
4352
|
}
|
|
4363
4353
|
|
|
4364
|
-
const SDK_VERSION = '6.
|
|
4354
|
+
const SDK_VERSION = '6.16.0';
|
|
4365
4355
|
|
|
4366
4356
|
let originalFunctionToString;
|
|
4367
4357
|
/** Patch toString calls to return proper name for wrapped functions */
|