@sentry/replay 0.5.9 → 0.5.12

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.
@@ -18,11 +18,7 @@ export declare class SentryReplay implements Integration {
18
18
  * @inheritDoc
19
19
  */
20
20
  name: string;
21
- eventBuffer: IEventBuffer;
22
- /**
23
- * Buffer of breadcrumbs to be uploaded
24
- */
25
- breadcrumbs: Breadcrumb[];
21
+ eventBuffer: IEventBuffer | null;
26
22
  /**
27
23
  * List of PerformanceEntry from PerformanceObserver
28
24
  */
@@ -52,14 +48,26 @@ export declare class SentryReplay implements Integration {
52
48
  * immediately before sending recording)
53
49
  */
54
50
  private needsCaptureReplay;
51
+ /**
52
+ * Is the integration currently active?
53
+ */
54
+ private isEnabled;
55
+ /**
56
+ * Have we attached listeners to the core SDK?
57
+ * Note we have to track this as there is no way to remove instrumentation handlers.
58
+ */
59
+ private hasInitializedCoreListeners;
60
+ /**
61
+ * Function to stop recording
62
+ */
63
+ private stopRecording;
55
64
  /**
56
65
  * Captured state when integration is first initialized
57
66
  */
58
67
  private initialState;
59
68
  private context;
60
69
  session: Session | undefined;
61
- constructor({ flushMinDelay, flushMaxDelay, initialFlushDelay, stickySession, // TBD: Making this opt-in for now
62
- useCompression, captureOnlyOnError, replaysSamplingRate, recordingConfig: { maskAllInputs, blockClass, ignoreClass, maskTextClass, ...recordingOptions }, }?: SentryReplayConfiguration);
70
+ constructor({ flushMinDelay, flushMaxDelay, initialFlushDelay, stickySession, useCompression, captureOnlyOnError, replaysSamplingRate, recordingConfig: { maskAllInputs, blockClass, ignoreClass, maskTextClass, ...recordingOptions }, }?: SentryReplayConfiguration);
63
71
  /**
64
72
  * Because we create a transaction in `setupOnce`, we can potentially create a
65
73
  * transaction before some native SDK integrations have run and applied their
@@ -203,7 +211,7 @@ export declare class SentryReplay implements Integration {
203
211
  /**
204
212
  * Only flush if `captureOnlyOnError` is false.
205
213
  */
206
- conditionalFlush(lastActivity?: number): Promise<void> | undefined;
214
+ conditionalFlush(): Promise<void> | undefined;
207
215
  /**
208
216
  * Return and clear context
209
217
  */
@@ -216,7 +224,7 @@ export declare class SentryReplay implements Integration {
216
224
  * Performance events are only added right before flushing - this is probably
217
225
  * due to the buffered performance observer events.
218
226
  */
219
- flushUpdate(lastActivity?: number): Promise<void>;
227
+ flushUpdate(): Promise<void>;
220
228
  /**
221
229
  * Send replay attachment using `fetch()`
222
230
  */
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Deletes a session from storage
3
+ */
4
+ export declare function deleteSession(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/replay",
3
- "version": "0.5.9",
3
+ "version": "0.5.12",
4
4
  "description": "User replays for Sentry",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",