@sentry/replay 0.5.23 → 0.6.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/README.md +19 -22
- package/dist/index.es.js +34 -34
- package/dist/index.js +34 -34
- package/dist/index.js.map +1 -1
- package/dist/src/index.d.ts +4 -4
- package/dist/src/types.d.ts +2 -2
- package/dist/src/util/logger.d.ts +1 -1
- package/dist/test/mocks/mockSdk.d.ts +4 -4
- package/dist/types/src/index.d.ts +4 -4
- package/dist/types/src/types.d.ts +2 -2
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -3,12 +3,12 @@ import { CaptureReplayEventParams } from './api/captureReplayEvent';
|
|
|
3
3
|
import { Session } from './session/Session';
|
|
4
4
|
import { ReplayPerformanceEntry } from './createPerformanceEntry';
|
|
5
5
|
import { IEventBuffer } from './eventBuffer';
|
|
6
|
-
import type { AllPerformanceEntry, InstrumentationTypeBreadcrumb, InstrumentationTypeSpan, RecordedEvents, RecordingConfig, RecordingEvent,
|
|
6
|
+
import type { AllPerformanceEntry, InstrumentationTypeBreadcrumb, InstrumentationTypeSpan, RecordedEvents, RecordingConfig, RecordingEvent, ReplayConfiguration, ReplayPluginOptions, ReplayRequest } from './types';
|
|
7
7
|
/**
|
|
8
8
|
* Returns true to return control to calling function, otherwise continue with normal batching
|
|
9
9
|
*/
|
|
10
10
|
declare type AddUpdateCallback = () => boolean | void;
|
|
11
|
-
export declare class
|
|
11
|
+
export declare class Replay implements Integration {
|
|
12
12
|
/**
|
|
13
13
|
* @inheritDoc
|
|
14
14
|
*/
|
|
@@ -26,7 +26,7 @@ export declare class SentryReplay implements Integration {
|
|
|
26
26
|
* Options to pass to `rrweb.record()`
|
|
27
27
|
*/
|
|
28
28
|
readonly recordingOptions: RecordingConfig;
|
|
29
|
-
readonly options:
|
|
29
|
+
readonly options: ReplayPluginOptions;
|
|
30
30
|
private performanceObserver;
|
|
31
31
|
private retryCount;
|
|
32
32
|
private retryInterval;
|
|
@@ -56,7 +56,7 @@ export declare class SentryReplay implements Integration {
|
|
|
56
56
|
private initialState;
|
|
57
57
|
private context;
|
|
58
58
|
session: Session | undefined;
|
|
59
|
-
constructor({ flushMinDelay, flushMaxDelay, initialFlushDelay, stickySession, useCompression, captureOnlyOnError, replaysSamplingRate, maskAllText, recordingConfig: { maskAllInputs, blockClass, ignoreClass, maskTextClass, ...recordingOptions }, }?:
|
|
59
|
+
constructor({ flushMinDelay, flushMaxDelay, initialFlushDelay, stickySession, useCompression, captureOnlyOnError, replaysSamplingRate, maskAllText, recordingConfig: { maskAllInputs, blockClass, ignoreClass, maskTextClass, ...recordingOptions }, }?: ReplayConfiguration);
|
|
60
60
|
/**
|
|
61
61
|
* Because we create a transaction in `setupOnce`, we can potentially create a
|
|
62
62
|
* transaction before some native SDK integrations have run and applied their
|
package/dist/src/types.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface WorkerResponse {
|
|
|
33
33
|
success: boolean;
|
|
34
34
|
response: string | Uint8Array;
|
|
35
35
|
}
|
|
36
|
-
export interface
|
|
36
|
+
export interface ReplayPluginOptions {
|
|
37
37
|
/**
|
|
38
38
|
* The amount of time to wait before sending a replay
|
|
39
39
|
*/
|
|
@@ -69,7 +69,7 @@ export interface SentryReplayPluginOptions {
|
|
|
69
69
|
*/
|
|
70
70
|
maskAllText?: boolean;
|
|
71
71
|
}
|
|
72
|
-
export interface
|
|
72
|
+
export interface ReplayConfiguration extends ReplayPluginOptions {
|
|
73
73
|
/**
|
|
74
74
|
* Options for `rrweb.record()`
|
|
75
75
|
*/
|
|
@@ -4,8 +4,8 @@ declare const logger: {
|
|
|
4
4
|
log: (...args: any[]) => any;
|
|
5
5
|
disable(): void;
|
|
6
6
|
enable(): void;
|
|
7
|
-
debug: (...args: unknown[]) => void;
|
|
8
7
|
info: (...args: unknown[]) => void;
|
|
8
|
+
debug: (...args: unknown[]) => void;
|
|
9
9
|
assert: (...args: unknown[]) => void;
|
|
10
10
|
trace: (...args: unknown[]) => void;
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BrowserOptions } from '@sentry/browser';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Replay } from '@';
|
|
3
|
+
import { ReplayConfiguration } from '@/types';
|
|
4
4
|
interface MockSdkParams {
|
|
5
|
-
replayOptions?:
|
|
5
|
+
replayOptions?: ReplayConfiguration;
|
|
6
6
|
sentryOptions?: BrowserOptions;
|
|
7
7
|
}
|
|
8
8
|
export declare function mockSdk({ replayOptions, sentryOptions, }?: MockSdkParams): {
|
|
9
|
-
replay:
|
|
9
|
+
replay: Replay;
|
|
10
10
|
};
|
|
11
11
|
export {};
|
|
@@ -3,12 +3,12 @@ import { CaptureReplayEventParams } from './api/captureReplayEvent';
|
|
|
3
3
|
import { Session } from './session/Session';
|
|
4
4
|
import { ReplayPerformanceEntry } from './createPerformanceEntry';
|
|
5
5
|
import { IEventBuffer } from './eventBuffer';
|
|
6
|
-
import type { AllPerformanceEntry, InstrumentationTypeBreadcrumb, InstrumentationTypeSpan, RecordedEvents, RecordingConfig, RecordingEvent,
|
|
6
|
+
import type { AllPerformanceEntry, InstrumentationTypeBreadcrumb, InstrumentationTypeSpan, RecordedEvents, RecordingConfig, RecordingEvent, ReplayConfiguration, ReplayPluginOptions, ReplayRequest } from './types';
|
|
7
7
|
/**
|
|
8
8
|
* Returns true to return control to calling function, otherwise continue with normal batching
|
|
9
9
|
*/
|
|
10
10
|
declare type AddUpdateCallback = () => boolean | void;
|
|
11
|
-
export declare class
|
|
11
|
+
export declare class Replay implements Integration {
|
|
12
12
|
/**
|
|
13
13
|
* @inheritDoc
|
|
14
14
|
*/
|
|
@@ -26,7 +26,7 @@ export declare class SentryReplay implements Integration {
|
|
|
26
26
|
* Options to pass to `rrweb.record()`
|
|
27
27
|
*/
|
|
28
28
|
readonly recordingOptions: RecordingConfig;
|
|
29
|
-
readonly options:
|
|
29
|
+
readonly options: ReplayPluginOptions;
|
|
30
30
|
private performanceObserver;
|
|
31
31
|
private retryCount;
|
|
32
32
|
private retryInterval;
|
|
@@ -56,7 +56,7 @@ export declare class SentryReplay implements Integration {
|
|
|
56
56
|
private initialState;
|
|
57
57
|
private context;
|
|
58
58
|
session: Session | undefined;
|
|
59
|
-
constructor({ flushMinDelay, flushMaxDelay, initialFlushDelay, stickySession, useCompression, captureOnlyOnError, replaysSamplingRate, maskAllText, recordingConfig: { maskAllInputs, blockClass, ignoreClass, maskTextClass, ...recordingOptions }, }?:
|
|
59
|
+
constructor({ flushMinDelay, flushMaxDelay, initialFlushDelay, stickySession, useCompression, captureOnlyOnError, replaysSamplingRate, maskAllText, recordingConfig: { maskAllInputs, blockClass, ignoreClass, maskTextClass, ...recordingOptions }, }?: ReplayConfiguration);
|
|
60
60
|
/**
|
|
61
61
|
* Because we create a transaction in `setupOnce`, we can potentially create a
|
|
62
62
|
* transaction before some native SDK integrations have run and applied their
|
|
@@ -33,7 +33,7 @@ export interface WorkerResponse {
|
|
|
33
33
|
success: boolean;
|
|
34
34
|
response: string | Uint8Array;
|
|
35
35
|
}
|
|
36
|
-
export interface
|
|
36
|
+
export interface ReplayPluginOptions {
|
|
37
37
|
/**
|
|
38
38
|
* The amount of time to wait before sending a replay
|
|
39
39
|
*/
|
|
@@ -69,7 +69,7 @@ export interface SentryReplayPluginOptions {
|
|
|
69
69
|
*/
|
|
70
70
|
maskAllText?: boolean;
|
|
71
71
|
}
|
|
72
|
-
export interface
|
|
72
|
+
export interface ReplayConfiguration extends ReplayPluginOptions {
|
|
73
73
|
/**
|
|
74
74
|
* Options for `rrweb.record()`
|
|
75
75
|
*/
|