@sentry/browser 6.14.0 → 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 +21 -14
- 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 +21 -14
- 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/dist/integrations/trycatch.js +1 -1
- package/dist/integrations/trycatch.js.map +1 -1
- package/dist/transports/xhr.js +1 -1
- package/dist/transports/xhr.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/esm/integrations/trycatch.js +1 -1
- package/esm/integrations/trycatch.js.map +1 -1
- package/esm/transports/xhr.js +1 -1
- package/esm/transports/xhr.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;
|
|
@@ -465,8 +465,7 @@ var Sentry = (function (exports) {
|
|
|
465
465
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
466
466
|
function mixinProperties(obj, proto) {
|
|
467
467
|
for (const prop in proto) {
|
|
468
|
-
|
|
469
|
-
if (!obj.hasOwnProperty(prop)) {
|
|
468
|
+
if (!Object.prototype.hasOwnProperty.call(obj, prop)) {
|
|
470
469
|
// @ts-ignore typescript complains about indexing so we remove
|
|
471
470
|
obj[prop] = proto[prop];
|
|
472
471
|
}
|
|
@@ -4362,7 +4361,7 @@ var Sentry = (function (exports) {
|
|
|
4362
4361
|
hub.bindClient(client);
|
|
4363
4362
|
}
|
|
4364
4363
|
|
|
4365
|
-
const SDK_VERSION = '6.
|
|
4364
|
+
const SDK_VERSION = '6.15.0';
|
|
4366
4365
|
|
|
4367
4366
|
let originalFunctionToString;
|
|
4368
4367
|
/** Patch toString calls to return proper name for wrapped functions */
|
|
@@ -4968,16 +4967,24 @@ var Sentry = (function (exports) {
|
|
|
4968
4967
|
event = eventFromStacktrace(computeStackTrace(exception));
|
|
4969
4968
|
return event;
|
|
4970
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
|
|
4971
4977
|
if (isDOMError(exception) || isDOMException(exception)) {
|
|
4972
|
-
// If it is a DOMError or DOMException (which are legacy APIs, but still supported in some browsers)
|
|
4973
|
-
// then we just extract the name, code, and message, as they don't provide anything else
|
|
4974
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/DOMError
|
|
4975
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/DOMException
|
|
4976
4978
|
const domException = exception;
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
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
|
+
}
|
|
4981
4988
|
if ('code' in domException) {
|
|
4982
4989
|
event.tags = Object.assign(Object.assign({}, event.tags), { 'DOMException.code': `${domException.code}` });
|
|
4983
4990
|
}
|
|
@@ -5410,7 +5417,7 @@ var Sentry = (function (exports) {
|
|
|
5410
5417
|
};
|
|
5411
5418
|
request.open('POST', sentryRequest.url);
|
|
5412
5419
|
for (const header in this.options.headers) {
|
|
5413
|
-
if (this.options.headers
|
|
5420
|
+
if (Object.prototype.hasOwnProperty.call(this.options.headers, header)) {
|
|
5414
5421
|
request.setRequestHeader(header, this.options.headers[header]);
|
|
5415
5422
|
}
|
|
5416
5423
|
}
|
|
@@ -5930,7 +5937,7 @@ var Sentry = (function (exports) {
|
|
|
5930
5937
|
const global = getGlobalObject();
|
|
5931
5938
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
5932
5939
|
const proto = global[target] && global[target].prototype;
|
|
5933
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
5940
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, no-prototype-builtins
|
|
5934
5941
|
if (!proto || !proto.hasOwnProperty || !proto.hasOwnProperty('addEventListener')) {
|
|
5935
5942
|
return;
|
|
5936
5943
|
}
|