@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.es6.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
|
/** Console logging verbosity for the SDK. */
|
|
4
4
|
var LogLevel;
|
|
@@ -4361,7 +4361,7 @@ var Sentry = (function (exports) {
|
|
|
4361
4361
|
hub.bindClient(client);
|
|
4362
4362
|
}
|
|
4363
4363
|
|
|
4364
|
-
const SDK_VERSION = '6.
|
|
4364
|
+
const SDK_VERSION = '6.15.0';
|
|
4365
4365
|
|
|
4366
4366
|
let originalFunctionToString;
|
|
4367
4367
|
/** Patch toString calls to return proper name for wrapped functions */
|
|
@@ -4967,16 +4967,24 @@ var Sentry = (function (exports) {
|
|
|
4967
4967
|
event = eventFromStacktrace(computeStackTrace(exception));
|
|
4968
4968
|
return event;
|
|
4969
4969
|
}
|
|
4970
|
+
// If it is a `DOMError` (which is a legacy API, but still supported in some browsers) then we just extract the name
|
|
4971
|
+
// and message, as it doesn't provide anything else. According to the spec, all `DOMExceptions` should also be
|
|
4972
|
+
// `Error`s, but that's not the case in IE11, so in that case we treat it the same as we do a `DOMError`.
|
|
4973
|
+
//
|
|
4974
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/DOMError
|
|
4975
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/DOMException
|
|
4976
|
+
// https://webidl.spec.whatwg.org/#es-DOMException-specialness
|
|
4970
4977
|
if (isDOMError(exception) || isDOMException(exception)) {
|
|
4971
|
-
// If it is a DOMError or DOMException (which are legacy APIs, but still supported in some browsers)
|
|
4972
|
-
// then we just extract the name, code, and message, as they don't provide anything else
|
|
4973
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/DOMError
|
|
4974
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/DOMException
|
|
4975
4978
|
const domException = exception;
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4979
|
+
if ('stack' in exception) {
|
|
4980
|
+
event = eventFromStacktrace(computeStackTrace(exception));
|
|
4981
|
+
}
|
|
4982
|
+
else {
|
|
4983
|
+
const name = domException.name || (isDOMError(domException) ? 'DOMError' : 'DOMException');
|
|
4984
|
+
const message = domException.message ? `${name}: ${domException.message}` : name;
|
|
4985
|
+
event = eventFromString(message, syntheticException, options);
|
|
4986
|
+
addExceptionTypeValue(event, message);
|
|
4987
|
+
}
|
|
4980
4988
|
if ('code' in domException) {
|
|
4981
4989
|
event.tags = Object.assign(Object.assign({}, event.tags), { 'DOMException.code': `${domException.code}` });
|
|
4982
4990
|
}
|