Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/replay

Package Overview
Dependencies
Maintainers
12
Versions
232
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/replay - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

17

dist/dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc