@sentry/replay 7.71.0 → 7.72.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 +6 -0
- package/cjs/index.js.map +1 -1
- package/esm/index.js +6 -0
- package/esm/index.js.map +1 -1
- package/package.json +5 -5
- package/types/coreHandlers/handleGlobalEvent.d.ts.map +1 -1
package/cjs/index.js
CHANGED
|
@@ -5019,6 +5019,12 @@ function handleGlobalEventListener(
|
|
|
5019
5019
|
return event;
|
|
5020
5020
|
}
|
|
5021
5021
|
|
|
5022
|
+
// Ensure we do not add replay_id if the session is expired
|
|
5023
|
+
const isSessionActive = replay.checkAndHandleExpiredSession();
|
|
5024
|
+
if (!isSessionActive) {
|
|
5025
|
+
return event;
|
|
5026
|
+
}
|
|
5027
|
+
|
|
5022
5028
|
// Unless `captureExceptions` is enabled, we want to ignore errors coming from rrweb
|
|
5023
5029
|
// As there can be a bunch of stuff going wrong in internals there, that we don't want to bubble up to users
|
|
5024
5030
|
if (isRrwebError(event, hint) && !replay.getOptions()._experiments.captureExceptions) {
|