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