@sentry/browser 6.17.9 → 6.18.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 +13 -11
- 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 +13 -11
- 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 +4 -3
- package/dist/eventbuilder.js.map +1 -1
- package/dist/parsers.d.ts.map +1 -1
- package/dist/parsers.js +4 -3
- package/dist/parsers.js.map +1 -1
- package/esm/eventbuilder.d.ts.map +1 -1
- package/esm/eventbuilder.js +4 -3
- package/esm/eventbuilder.js.map +1 -1
- package/esm/parsers.d.ts.map +1 -1
- package/esm/parsers.js +4 -3
- package/esm/parsers.js.map +1 -1
- package/package.json +4 -4
package/build/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @sentry/browser 6.
|
|
1
|
+
/*! @sentry/browser 6.18.0 (70c1d77) | https://github.com/getsentry/sentry-javascript */
|
|
2
2
|
var Sentry = (function (exports) {
|
|
3
3
|
|
|
4
4
|
/*! *****************************************************************************
|
|
@@ -3040,7 +3040,7 @@ var Sentry = (function (exports) {
|
|
|
3040
3040
|
*/
|
|
3041
3041
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
3042
3042
|
Hub.prototype.captureException = function (exception, hint) {
|
|
3043
|
-
var eventId = (this._lastEventId = uuid4());
|
|
3043
|
+
var eventId = (this._lastEventId = hint && hint.event_id ? hint.event_id : uuid4());
|
|
3044
3044
|
var finalHint = hint;
|
|
3045
3045
|
// If there's no explicit hint provided, mimic the same thing that would happen
|
|
3046
3046
|
// in the minimal itself to create a consistent behavior.
|
|
@@ -3066,7 +3066,7 @@ var Sentry = (function (exports) {
|
|
|
3066
3066
|
* @inheritDoc
|
|
3067
3067
|
*/
|
|
3068
3068
|
Hub.prototype.captureMessage = function (message, level, hint) {
|
|
3069
|
-
var eventId = (this._lastEventId = uuid4());
|
|
3069
|
+
var eventId = (this._lastEventId = hint && hint.event_id ? hint.event_id : uuid4());
|
|
3070
3070
|
var finalHint = hint;
|
|
3071
3071
|
// If there's no explicit hint provided, mimic the same thing that would happen
|
|
3072
3072
|
// in the minimal itself to create a consistent behavior.
|
|
@@ -3092,7 +3092,7 @@ var Sentry = (function (exports) {
|
|
|
3092
3092
|
* @inheritDoc
|
|
3093
3093
|
*/
|
|
3094
3094
|
Hub.prototype.captureEvent = function (event, hint) {
|
|
3095
|
-
var eventId = uuid4();
|
|
3095
|
+
var eventId = hint && hint.event_id ? hint.event_id : uuid4();
|
|
3096
3096
|
if (event.type !== 'transaction') {
|
|
3097
3097
|
this._lastEventId = eventId;
|
|
3098
3098
|
}
|
|
@@ -4478,7 +4478,7 @@ var Sentry = (function (exports) {
|
|
|
4478
4478
|
hub.bindClient(client);
|
|
4479
4479
|
}
|
|
4480
4480
|
|
|
4481
|
-
var SDK_VERSION = '6.
|
|
4481
|
+
var SDK_VERSION = '6.18.0';
|
|
4482
4482
|
|
|
4483
4483
|
var originalFunctionToString;
|
|
4484
4484
|
/** Patch toString calls to return proper name for wrapped functions */
|
|
@@ -4852,9 +4852,10 @@ var Sentry = (function (exports) {
|
|
|
4852
4852
|
},
|
|
4853
4853
|
};
|
|
4854
4854
|
if (syntheticException) {
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4855
|
+
var frames_1 = parseStackFrames(syntheticException);
|
|
4856
|
+
if (frames_1.length) {
|
|
4857
|
+
event.stacktrace = { frames: frames_1 };
|
|
4858
|
+
}
|
|
4858
4859
|
}
|
|
4859
4860
|
return event;
|
|
4860
4861
|
}
|
|
@@ -5020,9 +5021,10 @@ var Sentry = (function (exports) {
|
|
|
5020
5021
|
message: input,
|
|
5021
5022
|
};
|
|
5022
5023
|
if (options.attachStacktrace && syntheticException) {
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5024
|
+
var frames_1 = parseStackFrames(syntheticException);
|
|
5025
|
+
if (frames_1.length) {
|
|
5026
|
+
event.stacktrace = { frames: frames_1 };
|
|
5027
|
+
}
|
|
5026
5028
|
}
|
|
5027
5029
|
return event;
|
|
5028
5030
|
}
|