@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.
- package/README.md +14 -2
- package/dist/config/types/src/api/captureReplayEvent.d.ts +15 -0
- package/dist/config/types/src/index.d.ts +17 -9
- package/dist/config/types/src/session/deleteSession.d.ts +4 -0
- package/dist/index.es.js +98 -39
- package/dist/index.js +98 -39
- package/dist/index.js.map +1 -1
- package/dist/types/src/index.d.ts +17 -9
- package/dist/types/src/session/deleteSession.d.ts +4 -0
- package/package.json +1 -1
|
@@ -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,
|
|
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(
|
|
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(
|
|
227
|
+
flushUpdate(): Promise<void>;
|
|
220
228
|
/**
|
|
221
229
|
* Send replay attachment using `fetch()`
|
|
222
230
|
*/
|