@sentry/replay 7.28.0 → 7.28.1
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/replay.js +6 -0
- package/cjs/replay.js.map +1 -1
- package/cjs/util/getReplayEvent.js +10 -8
- package/cjs/util/getReplayEvent.js.map +1 -1
- package/esm/replay.js +6 -0
- package/esm/replay.js.map +1 -1
- package/esm/util/getReplayEvent.js +10 -8
- package/esm/util/getReplayEvent.js.map +1 -1
- package/package.json +4 -4
- package/types/replay.d.ts.map +1 -1
- package/types/util/getReplayEvent.d.ts +1 -1
- package/types/util/getReplayEvent.d.ts.map +1 -1
package/cjs/replay.js
CHANGED
|
@@ -919,6 +919,12 @@ class ReplayContainer {
|
|
|
919
919
|
};
|
|
920
920
|
|
|
921
921
|
const replayEvent = await getReplayEvent.getReplayEvent({ scope, client, replayId, event: baseEvent });
|
|
922
|
+
|
|
923
|
+
if (!replayEvent) {
|
|
924
|
+
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.error('[Replay] An event processor returned null, will not send replay.');
|
|
925
|
+
return;
|
|
926
|
+
}
|
|
927
|
+
|
|
922
928
|
replayEvent.tags = {
|
|
923
929
|
...replayEvent.tags,
|
|
924
930
|
sessionSampleRate: this._options.sessionSampleRate,
|