@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.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.
|
|
@@ -549,8 +549,7 @@ var Sentry = (function (exports) {
|
|
|
549
549
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
550
550
|
function mixinProperties(obj, proto) {
|
|
551
551
|
for (var prop in proto) {
|
|
552
|
-
|
|
553
|
-
if (!obj.hasOwnProperty(prop)) {
|
|
552
|
+
if (!Object.prototype.hasOwnProperty.call(obj, prop)) {
|
|
554
553
|
// @ts-ignore typescript complains about indexing so we remove
|
|
555
554
|
obj[prop] = proto[prop];
|
|
556
555
|
}
|
|
@@ -4559,7 +4558,7 @@ var Sentry = (function (exports) {
|
|
|
4559
4558
|
hub.bindClient(client);
|
|
4560
4559
|
}
|
|
4561
4560
|
|
|
4562
|
-
var SDK_VERSION = '6.
|
|
4561
|
+
var SDK_VERSION = '6.15.0';
|
|
4563
4562
|
|
|
4564
4563
|
var originalFunctionToString;
|
|
4565
4564
|
/** Patch toString calls to return proper name for wrapped functions */
|
|
@@ -5160,16 +5159,24 @@ var Sentry = (function (exports) {
|
|
|
5160
5159
|
event = eventFromStacktrace(computeStackTrace(exception));
|
|
5161
5160
|
return event;
|
|
5162
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
|
|
5163
5169
|
if (isDOMError(exception) || isDOMException(exception)) {
|
|
5164
|
-
// If it is a DOMError or DOMException (which are legacy APIs, but still supported in some browsers)
|
|
5165
|
-
// then we just extract the name, code, and message, as they don't provide anything else
|
|
5166
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/DOMError
|
|
5167
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/DOMException
|
|
5168
5170
|
var domException = exception;
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
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
|
+
}
|
|
5173
5180
|
if ('code' in domException) {
|
|
5174
5181
|
event.tags = __assign(__assign({}, event.tags), { 'DOMException.code': "" + domException.code });
|
|
5175
5182
|
}
|
|
@@ -5640,7 +5647,7 @@ var Sentry = (function (exports) {
|
|
|
5640
5647
|
};
|
|
5641
5648
|
request.open('POST', sentryRequest.url);
|
|
5642
5649
|
for (var header in _this.options.headers) {
|
|
5643
|
-
if (_this.options.headers
|
|
5650
|
+
if (Object.prototype.hasOwnProperty.call(_this.options.headers, header)) {
|
|
5644
5651
|
request.setRequestHeader(header, _this.options.headers[header]);
|
|
5645
5652
|
}
|
|
5646
5653
|
}
|
|
@@ -6176,7 +6183,7 @@ var Sentry = (function (exports) {
|
|
|
6176
6183
|
var global = getGlobalObject();
|
|
6177
6184
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
6178
6185
|
var proto = global[target] && global[target].prototype;
|
|
6179
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
6186
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, no-prototype-builtins
|
|
6180
6187
|
if (!proto || !proto.hasOwnProperty || !proto.hasOwnProperty('addEventListener')) {
|
|
6181
6188
|
return;
|
|
6182
6189
|
}
|