New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/replay

Package Overview
Dependencies
Maintainers
12
Versions
236
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 7.53.1 to 7.54.0

types/util/throttle.d.ts

10

package.json
{
"name": "@sentry/replay",
"version": "7.53.1",
"version": "7.54.0",
"description": "User replays for Sentry",

@@ -21,3 +21,3 @@ "main": "cjs/index.js",

"@babel/core": "^7.17.5",
"@sentry-internal/replay-worker": "7.53.1",
"@sentry-internal/replay-worker": "7.54.0",
"@sentry-internal/rrweb": "1.108.0",

@@ -29,5 +29,5 @@ "@sentry-internal/rrweb-snapshot": "1.108.0",

"dependencies": {
"@sentry/core": "7.53.1",
"@sentry/types": "7.53.1",
"@sentry/utils": "7.53.1"
"@sentry/core": "7.54.0",
"@sentry/types": "7.54.0",
"@sentry/utils": "7.54.0"
},

@@ -34,0 +34,0 @@ "engines": {

@@ -28,3 +28,3 @@ import type { Integration } from '@sentry/types';

private _replay?;
constructor({ flushMinDelay, flushMaxDelay, stickySession, useCompression, _experiments, sessionSampleRate, errorSampleRate, maskAllText, maskAllInputs, blockAllMedia, networkDetailAllowUrls, networkCaptureBodies, networkRequestHeaders, networkResponseHeaders, mask, unmask, block, unblock, ignore, maskFn, beforeAddRecordingEvent, blockClass, blockSelector, maskInputOptions, maskTextClass, maskTextSelector, ignoreClass, }?: ReplayConfiguration);
constructor({ flushMinDelay, flushMaxDelay, stickySession, useCompression, _experiments, sessionSampleRate, errorSampleRate, maskAllText, maskAllInputs, blockAllMedia, mutationBreadcrumbLimit, mutationLimit, networkDetailAllowUrls, networkCaptureBodies, networkRequestHeaders, networkResponseHeaders, mask, unmask, block, unblock, ignore, maskFn, beforeAddRecordingEvent, blockClass, blockSelector, maskInputOptions, maskTextClass, maskTextSelector, ignoreClass, }?: ReplayConfiguration);
/** If replay has already been initialized */

@@ -31,0 +31,0 @@ protected get _isInitialized(): boolean;

@@ -1,3 +0,5 @@

import type { ReplayRecordingMode } from '@sentry/types';
import type { AddUpdateCallback, AllPerformanceEntry, EventBuffer, InternalEventContext, RecordingOptions, ReplayContainer as ReplayContainerInterface, ReplayPluginOptions, SendBufferedReplayOptions, Session, Timeouts } from './types';
import type { ReplayRecordingMode, Transaction } from '@sentry/types';
import type { AddEventResult, AddUpdateCallback, AllPerformanceEntry, EventBuffer, InternalEventContext, RecordingEvent, RecordingOptions, ReplayContainer as ReplayContainerInterface, ReplayPluginOptions, SendBufferedReplayOptions, Session, Timeouts } from './types';
import type { SKIPPED } from './util/throttle';
import { THROTTLED } from './util/throttle';
/**

@@ -22,2 +24,7 @@ * The main replay container class, which holds all the state and methods for recording and sending replays.

/**
* The current or last active transcation.
* This is only available when performance is enabled.
*/
lastTransaction?: Transaction;
/**
* These are here so we can overwrite them in tests etc.

@@ -27,2 +34,3 @@ * @hidden

readonly timeouts: Timeouts;
private _throttledAddEvent;
/**

@@ -176,2 +184,12 @@ * Options to pass to `rrweb.record()`

/**
* Add a breadcrumb event, that may be throttled.
* If it was throttled, we add a custom breadcrumb to indicate that.
*/
throttledAddEvent(event: RecordingEvent, isCheckout?: boolean): typeof THROTTLED | typeof SKIPPED | Promise<AddEventResult | null>;
/**
* This will get the parametrized route name of the current page.
* This is only available if performance is enabled, and if an instrumented router is used.
*/
getCurrentRoute(): string | undefined;
/**
* Initialize and start all listeners to varying events (DOM,

@@ -178,0 +196,0 @@ * Performance Observer, Recording, Sentry SDK, etc)

@@ -1,3 +0,4 @@

import type { FetchBreadcrumbHint, HandlerDataFetch, ReplayRecordingData, ReplayRecordingMode, SentryWrappedXMLHttpRequest, XhrBreadcrumbHint } from '@sentry/types';
import type { FetchBreadcrumbHint, HandlerDataFetch, ReplayRecordingData, ReplayRecordingMode, SentryWrappedXMLHttpRequest, Transaction, XhrBreadcrumbHint } from '@sentry/types';
import type { eventWithTime, recordOptions } from './types/rrweb';
import type { SKIPPED, THROTTLED } from './util/throttle';
export declare type RecordingEvent = eventWithTime;

@@ -210,2 +211,14 @@ export declare type RecordingOptions = recordOptions;

/**
* A high number of DOM mutations (in a single event loop) can cause
* performance regressions in end-users' browsers. This setting will create
* a breadcrumb in the recording when the limit has been reached.
*/
mutationBreadcrumbLimit: number;
/**
* A high number of DOM mutations (in a single event loop) can cause
* performance regressions in end-users' browsers. This setting will cause
* recording to stop when the limit has been reached.
*/
mutationLimit: number;
/**
* Callback before adding a custom recording event

@@ -232,4 +245,2 @@ *

traceInternals: boolean;
mutationLimit: number;
mutationBreadcrumbLimit: number;
slowClicks: {

@@ -421,2 +432,4 @@ threshold: number;

timeouts: Timeouts;
lastTransaction?: Transaction;
throttledAddEvent: (event: RecordingEvent, isCheckout?: boolean) => typeof THROTTLED | typeof SKIPPED | Promise<AddEventResult | null>;
isEnabled(): boolean;

@@ -442,2 +455,3 @@ isPaused(): boolean;

setInitialState(): void;
getCurrentRoute(): string | undefined;
}

@@ -444,0 +458,0 @@ export interface ReplayPerformanceEntry<T> {

import type { AddEventResult, AllEntryData, ReplayContainer, ReplayPerformanceEntry } from '../types';
/**
* Create a "span" for each performance entry. The parent transaction is `this.replayEvent`.
* Create a "span" for each performance entry.
*/
export declare function createPerformanceSpans(replay: ReplayContainer, entries: ReplayPerformanceEntry<AllEntryData>[]): Promise<AddEventResult | null>[];
//# sourceMappingURL=createPerformanceSpans.d.ts.map

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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