@sentry/replay 7.87.0 → 7.88.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/cjs/index.js +24 -10
- package/cjs/index.js.map +1 -1
- package/esm/index.js +24 -10
- package/esm/index.js.map +1 -1
- package/package.json +8 -8
package/esm/index.js
CHANGED
|
@@ -3442,6 +3442,7 @@ function wrapEvent(e) {
|
|
|
3442
3442
|
eWithTime.timestamp = nowTimestamp();
|
|
3443
3443
|
return eWithTime;
|
|
3444
3444
|
}
|
|
3445
|
+
let _wrappedEmit;
|
|
3445
3446
|
let _takeFullSnapshot;
|
|
3446
3447
|
const mirror = createMirror();
|
|
3447
3448
|
function record(options = {}) {
|
|
@@ -3562,6 +3563,7 @@ function record(options = {}) {
|
|
|
3562
3563
|
}
|
|
3563
3564
|
}
|
|
3564
3565
|
};
|
|
3566
|
+
_wrappedEmit = wrappedEmit;
|
|
3565
3567
|
const wrappedMutationEmit = (m) => {
|
|
3566
3568
|
wrappedEmit(wrapEvent({
|
|
3567
3569
|
type: EventType.IncrementalSnapshot,
|
|
@@ -3602,16 +3604,14 @@ function record(options = {}) {
|
|
|
3602
3604
|
});
|
|
3603
3605
|
}
|
|
3604
3606
|
const processedNodeManager = new ProcessedNodeManager();
|
|
3605
|
-
const canvasManager = getCanvasManager
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
})
|
|
3614
|
-
: new CanvasManagerNoop();
|
|
3607
|
+
const canvasManager = _getCanvasManager(getCanvasManager, {
|
|
3608
|
+
recordCanvas,
|
|
3609
|
+
blockClass,
|
|
3610
|
+
blockSelector,
|
|
3611
|
+
unblockSelector,
|
|
3612
|
+
sampling: sampling['canvas'],
|
|
3613
|
+
dataURLOptions,
|
|
3614
|
+
});
|
|
3615
3615
|
const shadowDomManager = typeof __RRWEB_EXCLUDE_SHADOW_DOM__ === 'boolean' &&
|
|
3616
3616
|
__RRWEB_EXCLUDE_SHADOW_DOM__
|
|
3617
3617
|
? new ShadowDomManagerNoop()
|
|
@@ -3863,8 +3863,22 @@ function takeFullSnapshot(isCheckout) {
|
|
|
3863
3863
|
}
|
|
3864
3864
|
_takeFullSnapshot(isCheckout);
|
|
3865
3865
|
}
|
|
3866
|
+
function wrappedEmit(e) {
|
|
3867
|
+
if (!_wrappedEmit) {
|
|
3868
|
+
return;
|
|
3869
|
+
}
|
|
3870
|
+
_wrappedEmit(e);
|
|
3871
|
+
}
|
|
3866
3872
|
record.mirror = mirror;
|
|
3867
3873
|
record.takeFullSnapshot = takeFullSnapshot;
|
|
3874
|
+
function _getCanvasManager(getCanvasManagerFn, options) {
|
|
3875
|
+
return getCanvasManagerFn
|
|
3876
|
+
? getCanvasManagerFn(Object.assign(Object.assign({}, options), { mirror, win: window, mutationCb: (p) => wrappedEmit(wrapEvent({
|
|
3877
|
+
type: EventType.IncrementalSnapshot,
|
|
3878
|
+
data: Object.assign({ source: IncrementalSource.CanvasMutation }, p),
|
|
3879
|
+
})) }))
|
|
3880
|
+
: new CanvasManagerNoop();
|
|
3881
|
+
}
|
|
3868
3882
|
|
|
3869
3883
|
const ReplayEventTypeIncrementalSnapshot = 3;
|
|
3870
3884
|
const ReplayEventTypeCustom = 5;
|