@sentry/replay 7.107.0 → 7.109.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/esm/index.js CHANGED
@@ -3615,6 +3615,7 @@ function record(options = {}) {
3615
3615
  incrementalSnapshotCount++;
3616
3616
  const exceedCount = checkoutEveryNth && incrementalSnapshotCount >= checkoutEveryNth;
3617
3617
  const exceedTime = checkoutEveryNms &&
3618
+ lastFullSnapshotEvent &&
3618
3619
  e.timestamp - lastFullSnapshotEvent.timestamp > checkoutEveryNms;
3619
3620
  if (exceedCount || exceedTime) {
3620
3621
  takeFullSnapshot(true);
@@ -9139,16 +9140,16 @@ const DEFAULT_NETWORK_HEADERS = ['content-length', 'content-type', 'accept'];
9139
9140
 
9140
9141
  let _initialized = false;
9141
9142
 
9142
- const replayIntegration = ((options) => {
9143
+ const replayIntegration$1 = ((options) => {
9143
9144
  // eslint-disable-next-line deprecation/deprecation
9144
- return new Replay(options);
9145
+ return new Replay$1(options);
9145
9146
  }) ;
9146
9147
 
9147
9148
  /**
9148
9149
  * The main replay integration class, to be passed to `init({ integrations: [] })`.
9149
9150
  * @deprecated Use `replayIntegration()` instead.
9150
9151
  */
9151
- class Replay {
9152
+ class Replay$1 {
9152
9153
  /**
9153
9154
  * @inheritDoc
9154
9155
  */
@@ -9222,7 +9223,7 @@ class Replay {
9222
9223
  ignoreClass,
9223
9224
  } = {}) {
9224
9225
  // eslint-disable-next-line deprecation/deprecation
9225
- this.name = Replay.id;
9226
+ this.name = Replay$1.id;
9226
9227
 
9227
9228
  const privacyOptions = getPrivacyOptions({
9228
9229
  mask,
@@ -9484,7 +9485,7 @@ Sentry.init({ replaysOnErrorSampleRate: ${errorSampleRate} })`,
9484
9485
  }
9485
9486
  /* eslint-enable @typescript-eslint/no-non-null-assertion */
9486
9487
  }
9487
- }Replay.__initStatic();
9488
+ }Replay$1.__initStatic();
9488
9489
 
9489
9490
  /** Parse Replay-related options from SDK options */
9490
9491
  function loadReplayOptionsFromClient(initialOptions) {
@@ -9534,12 +9535,24 @@ function _getMergedNetworkHeaders(headers) {
9534
9535
  * This is a small utility to get a type-safe instance of the Replay integration.
9535
9536
  */
9536
9537
  // eslint-disable-next-line deprecation/deprecation
9537
- function getReplay() {
9538
+ function getReplay$1() {
9538
9539
  const client = getClient();
9539
9540
  return (
9540
9541
  client && client.getIntegrationByName && client.getIntegrationByName('Replay')
9541
9542
  );
9542
9543
  }
9543
9544
 
9544
- export { Replay, getReplay, replayIntegration };
9545
+ // eslint-disable-next-line deprecation/deprecation
9546
+
9547
+ /** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */
9548
+ const getReplay = getReplay$1;
9549
+
9550
+ /** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */
9551
+ const replayIntegration = replayIntegration$1;
9552
+
9553
+ /** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */
9554
+ // eslint-disable-next-line deprecation/deprecation
9555
+ class Replay extends Replay$1 {}
9556
+
9557
+ export { Replay$1 as InternalReplay, Replay, getReplay, getReplay$1 as internalGetReplay, replayIntegration$1 as internalReplayIntegration, replayIntegration };
9545
9558
  //# sourceMappingURL=index.js.map