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