@sentry/replay
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -7,3 +7,3 @@ import { DsnComponents, Integration, Breadcrumb } from '@sentry/types'; | ||
/** | ||
* Returns true if we want to flush immediately, otherwise continue with normal batching | ||
* Returns true to return control to calling function, otherwise continue with normal batching | ||
*/ | ||
@@ -43,4 +43,5 @@ declare type AddUpdateCallback = () => boolean | void; | ||
/** | ||
* The timestamp of the first event since the last flush. | ||
* This is used to determine if the maximum allowed time has passed before we should flush events again. | ||
* The timestamp of the first event since the last flush. This is used to | ||
* determine if the maximum allowed time has passed before events should be | ||
* flushed again. | ||
*/ | ||
@@ -60,3 +61,3 @@ private initialEventTimestampSinceFlush; | ||
static attachmentUrlFromDsn(dsn: DsnComponents, eventId: string): string; | ||
constructor({ uploadMinDelay, uploadMaxDelay, stickySession, // TBD: Making this opt-in for now | ||
constructor({ flushMinDelay, flushMaxDelay, initialFlushDelay, stickySession, // TBD: Making this opt-in for now | ||
useCompression, rrwebConfig: { maskAllInputs, blockClass, ignoreClass, maskTextClass, ...rrwebRecordOptions }, }?: SentryReplayConfiguration); | ||
@@ -67,7 +68,7 @@ setupOnce(): void; | ||
* We want to batch uploads of replay events. Save events only if | ||
* `<uploadMinDelay>` milliseconds have elapsed since the last event | ||
* *OR* if `<uploadMaxDelay>` milliseconds have elapsed. | ||
* `<flushMinDelay>` milliseconds have elapsed since the last event | ||
* *OR* if `<flushMaxDelay>` milliseconds have elapsed. | ||
* | ||
* Accepts a callback to perform side-effects and returns a boolean value if we | ||
* should flush events immediately | ||
* Accepts a callback to perform side-effects and returns true to stop batch | ||
* processing and hand back control to caller. | ||
*/ | ||
@@ -74,0 +75,0 @@ addUpdate(cb?: AddUpdateCallback): void; |
@@ -36,2 +36,6 @@ interface SessionObject { | ||
private _sequenceId; | ||
/** | ||
* Previous session ID | ||
*/ | ||
private _previousSessionId; | ||
readonly options: Required<SessionOptions>; | ||
@@ -45,4 +49,6 @@ constructor(session?: Partial<SessionObject>, { stickySession }?: SessionOptions); | ||
set sequenceId(id: number); | ||
get previousSessionId(): string; | ||
set previousSessionId(id: string); | ||
toJSON(): SessionObject; | ||
} | ||
export {}; |
@@ -36,8 +36,12 @@ import type { eventWithTime } from 'rrweb/typings/types'; | ||
*/ | ||
uploadMinDelay?: number; | ||
flushMinDelay?: number; | ||
/** | ||
* The max amount of time to wait before sending a replay | ||
*/ | ||
uploadMaxDelay?: number; | ||
flushMaxDelay?: number; | ||
/** | ||
* The amount of time to buffer the initial snapshot | ||
*/ | ||
initialFlushDelay?: number; | ||
/** | ||
* If false, will create a new session per pageload | ||
@@ -44,0 +48,0 @@ */ |
{ | ||
"name": "@sentry/replay", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "User replays for Sentry", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
374419
3658