@sentry/browser 6.14.3 → 6.15.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 +18 -10
- 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 +18 -10
- package/build/bundle.js.map +1 -1
- package/build/bundle.min.js +2 -2
- package/build/bundle.min.js.map +1 -1
- package/dist/eventbuilder.d.ts.map +1 -1
- package/dist/eventbuilder.js +16 -8
- package/dist/eventbuilder.js.map +1 -1
- package/esm/eventbuilder.d.ts.map +1 -1
- package/esm/eventbuilder.js +16 -8
- package/esm/eventbuilder.js.map +1 -1
- package/package.json +5 -5
package/build/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @sentry/browser 6.
|
|
1
|
+
/*! @sentry/browser 6.15.0 (aa30ab6) | https://github.com/getsentry/sentry-javascript */
|
|
2
2
|
var Sentry = (function (exports) {
|
|
3
3
|
/*! *****************************************************************************
|
|
4
4
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4558,7 +4558,7 @@ var Sentry = (function (exports) {
|
|
|
4558
4558
|
hub.bindClient(client);
|
|
4559
4559
|
}
|
|
4560
4560
|
|
|
4561
|
-
var SDK_VERSION = '6.
|
|
4561
|
+
var SDK_VERSION = '6.15.0';
|
|
4562
4562
|
|
|
4563
4563
|
var originalFunctionToString;
|
|
4564
4564
|
/** Patch toString calls to return proper name for wrapped functions */
|
|
@@ -5159,16 +5159,24 @@ var Sentry = (function (exports) {
|
|
|
5159
5159
|
event = eventFromStacktrace(computeStackTrace(exception));
|
|
5160
5160
|
return event;
|
|
5161
5161
|
}
|
|
5162
|
+
// If it is a `DOMError` (which is a legacy API, but still supported in some browsers) then we just extract the name
|
|
5163
|
+
// and message, as it doesn't provide anything else. According to the spec, all `DOMExceptions` should also be
|
|
5164
|
+
// `Error`s, but that's not the case in IE11, so in that case we treat it the same as we do a `DOMError`.
|
|
5165
|
+
//
|
|
5166
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/DOMError
|
|
5167
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/DOMException
|
|
5168
|
+
// https://webidl.spec.whatwg.org/#es-DOMException-specialness
|
|
5162
5169
|
if (isDOMError(exception) || isDOMException(exception)) {
|
|
5163
|
-
// If it is a DOMError or DOMException (which are legacy APIs, but still supported in some browsers)
|
|
5164
|
-
// then we just extract the name, code, and message, as they don't provide anything else
|
|
5165
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/DOMError
|
|
5166
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/DOMException
|
|
5167
5170
|
var domException = exception;
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5171
|
+
if ('stack' in exception) {
|
|
5172
|
+
event = eventFromStacktrace(computeStackTrace(exception));
|
|
5173
|
+
}
|
|
5174
|
+
else {
|
|
5175
|
+
var name_1 = domException.name || (isDOMError(domException) ? 'DOMError' : 'DOMException');
|
|
5176
|
+
var message = domException.message ? name_1 + ": " + domException.message : name_1;
|
|
5177
|
+
event = eventFromString(message, syntheticException, options);
|
|
5178
|
+
addExceptionTypeValue(event, message);
|
|
5179
|
+
}
|
|
5172
5180
|
if ('code' in domException) {
|
|
5173
5181
|
event.tags = __assign(__assign({}, event.tags), { 'DOMException.code': "" + domException.code });
|
|
5174
5182
|
}
|