@sentry/replay 7.108.0 → 7.110.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
@@ -3621,6 +3621,7 @@ function record(options = {}) {
3621
3621
  incrementalSnapshotCount++;
3622
3622
  const exceedCount = checkoutEveryNth && incrementalSnapshotCount >= checkoutEveryNth;
3623
3623
  const exceedTime = checkoutEveryNms &&
3624
+ lastFullSnapshotEvent &&
3624
3625
  e.timestamp - lastFullSnapshotEvent.timestamp > checkoutEveryNms;
3625
3626
  if (exceedCount || exceedTime) {
3626
3627
  takeFullSnapshot(true);
@@ -9145,16 +9146,16 @@ const DEFAULT_NETWORK_HEADERS = ['content-length', 'content-type', 'accept'];
9145
9146
 
9146
9147
  let _initialized = false;
9147
9148
 
9148
- const replayIntegration = ((options) => {
9149
+ const replayIntegration$1 = ((options) => {
9149
9150
  // eslint-disable-next-line deprecation/deprecation
9150
- return new Replay(options);
9151
+ return new Replay$1(options);
9151
9152
  }) ;
9152
9153
 
9153
9154
  /**
9154
9155
  * The main replay integration class, to be passed to `init({ integrations: [] })`.
9155
9156
  * @deprecated Use `replayIntegration()` instead.
9156
9157
  */
9157
- class Replay {
9158
+ class Replay$1 {
9158
9159
  /**
9159
9160
  * @inheritDoc
9160
9161
  */
@@ -9228,7 +9229,7 @@ class Replay {
9228
9229
  ignoreClass,
9229
9230
  } = {}) {
9230
9231
  // eslint-disable-next-line deprecation/deprecation
9231
- this.name = Replay.id;
9232
+ this.name = Replay$1.id;
9232
9233
 
9233
9234
  const privacyOptions = getPrivacyOptions({
9234
9235
  mask,
@@ -9490,7 +9491,7 @@ Sentry.init({ replaysOnErrorSampleRate: ${errorSampleRate} })`,
9490
9491
  }
9491
9492
  /* eslint-enable @typescript-eslint/no-non-null-assertion */
9492
9493
  }
9493
- }Replay.__initStatic();
9494
+ }Replay$1.__initStatic();
9494
9495
 
9495
9496
  /** Parse Replay-related options from SDK options */
9496
9497
  function loadReplayOptionsFromClient(initialOptions) {
@@ -9540,14 +9541,29 @@ function _getMergedNetworkHeaders(headers) {
9540
9541
  * This is a small utility to get a type-safe instance of the Replay integration.
9541
9542
  */
9542
9543
  // eslint-disable-next-line deprecation/deprecation
9543
- function getReplay() {
9544
+ function getReplay$1() {
9544
9545
  const client = core.getClient();
9545
9546
  return (
9546
9547
  client && client.getIntegrationByName && client.getIntegrationByName('Replay')
9547
9548
  );
9548
9549
  }
9549
9550
 
9551
+ // eslint-disable-next-line deprecation/deprecation
9552
+
9553
+ /** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */
9554
+ const getReplay = getReplay$1;
9555
+
9556
+ /** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */
9557
+ const replayIntegration = replayIntegration$1;
9558
+
9559
+ /** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */
9560
+ // eslint-disable-next-line deprecation/deprecation
9561
+ class Replay extends Replay$1 {}
9562
+
9563
+ exports.InternalReplay = Replay$1;
9550
9564
  exports.Replay = Replay;
9551
9565
  exports.getReplay = getReplay;
9566
+ exports.internalGetReplay = getReplay$1;
9567
+ exports.internalReplayIntegration = replayIntegration$1;
9552
9568
  exports.replayIntegration = replayIntegration;
9553
9569
  //# sourceMappingURL=index.js.map