@sentry/replay 7.46.0 → 7.47.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/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getCurrentHub, addBreadcrumb, addGlobalEventProcessor, prepareEvent, setContext, captureException } from '@sentry/core';
|
|
2
|
-
import { GLOBAL_OBJ, logger, uuid4, htmlTreeAsString, dropUndefinedKeys, addInstrumentationHandler, browserPerformanceTimeOrigin, createEnvelope, createEventEnvelopeHeaders, getSdkMetadataForEnvelopeHeader, isNodeEnv } from '@sentry/utils';
|
|
2
|
+
import { GLOBAL_OBJ, logger, uuid4, normalize, htmlTreeAsString, dropUndefinedKeys, addInstrumentationHandler, browserPerformanceTimeOrigin, createEnvelope, createEventEnvelopeHeaders, getSdkMetadataForEnvelopeHeader, isNodeEnv } from '@sentry/utils';
|
|
3
3
|
|
|
4
4
|
// exporting a separate copy of `WINDOW` rather than exporting the one from `@sentry/browser`
|
|
5
5
|
// prevents the browser package from being bundled in the CDN bundle, and avoids a
|
|
@@ -4069,7 +4069,7 @@ function addBreadcrumbEvent(replay, breadcrumb) {
|
|
|
4069
4069
|
timestamp: (breadcrumb.timestamp || 0) * 1000,
|
|
4070
4070
|
data: {
|
|
4071
4071
|
tag: 'breadcrumb',
|
|
4072
|
-
payload: breadcrumb,
|
|
4072
|
+
payload: normalize(breadcrumb),
|
|
4073
4073
|
},
|
|
4074
4074
|
});
|
|
4075
4075
|
|
|
@@ -5498,7 +5498,6 @@ async function sendReplayRequest({
|
|
|
5498
5498
|
}
|
|
5499
5499
|
|
|
5500
5500
|
const baseEvent = {
|
|
5501
|
-
// @ts-ignore private api
|
|
5502
5501
|
type: REPLAY_EVENT_NAME,
|
|
5503
5502
|
...(includeReplayStartTimestamp ? { replay_start_timestamp: initialTimestamp / 1000 } : {}),
|
|
5504
5503
|
timestamp: timestamp / 1000,
|