sentry-vir 0.2.1 → 0.2.2
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.
|
@@ -34,7 +34,9 @@ function extractExtraEventContext(event) {
|
|
|
34
34
|
const fromSubSymbol = 'originalException' in event
|
|
35
35
|
? extractExtraContentFromSymbol(event.originalException)
|
|
36
36
|
: undefined;
|
|
37
|
-
const fromCapture = 'captureContext' in event
|
|
37
|
+
const fromCapture = 'captureContext' in event && 'extra' in event.captureContext
|
|
38
|
+
? event.captureContext?.extra
|
|
39
|
+
: undefined;
|
|
38
40
|
const combined = {
|
|
39
41
|
...fromRootSymbol,
|
|
40
42
|
...fromSubSymbol,
|
|
@@ -29,7 +29,9 @@ export function extractExtraEventContext(event) {
|
|
|
29
29
|
const fromSubSymbol = 'originalException' in event
|
|
30
30
|
? extractExtraContentFromSymbol(event.originalException)
|
|
31
31
|
: undefined;
|
|
32
|
-
const fromCapture = 'captureContext' in event
|
|
32
|
+
const fromCapture = 'captureContext' in event && 'extra' in event.captureContext
|
|
33
|
+
? event.captureContext?.extra
|
|
34
|
+
: undefined;
|
|
33
35
|
const combined = {
|
|
34
36
|
...fromRootSymbol,
|
|
35
37
|
...fromSubSymbol,
|