@sentry/replay 7.66.0-alpha.0 → 7.67.0-beta.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 CHANGED
@@ -5887,6 +5887,8 @@ function loadOrCreateSession(
5887
5887
  return createSession(sessionOptions, { previousSessionId: existingSession.id });
5888
5888
  }
5889
5889
 
5890
+ const ReplayEventTypeCustom = 5;
5891
+
5890
5892
  function isCustomEvent(event) {
5891
5893
  return event.type === EventType.Custom;
5892
5894
  }
@@ -8894,7 +8896,11 @@ class ReplayContainer {
8894
8896
  }
8895
8897
 
8896
8898
  // Session is expired, trigger a full snapshot (which will create a new session)
8897
- this._triggerFullSnapshot();
8899
+ if (this.isPaused()) {
8900
+ this.resume();
8901
+ } else {
8902
+ this._triggerFullSnapshot();
8903
+ }
8898
8904
 
8899
8905
  return false;
8900
8906
  }
@@ -8937,7 +8943,7 @@ class ReplayContainer {
8937
8943
 
8938
8944
  this.addUpdate(() => {
8939
8945
  void addEvent(this, {
8940
- type: EventType.Custom,
8946
+ type: ReplayEventTypeCustom,
8941
8947
  timestamp: breadcrumb.timestamp || 0,
8942
8948
  data: {
8943
8949
  tag: 'breadcrumb',