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
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.65.0 to 7.66.0-alpha.0

types/session/shouldRefreshSession.d.ts

14

package.json
{
"name": "@sentry/replay",
"version": "7.65.0",
"version": "7.66.0-alpha.0",
"description": "User replays for Sentry",

@@ -28,5 +28,5 @@ "main": "cjs/index.js",

"@babel/core": "^7.17.5",
"@sentry-internal/replay-worker": "7.65.0",
"@sentry-internal/rrweb": "1.108.0",
"@sentry-internal/rrweb-snapshot": "1.108.0",
"@sentry-internal/replay-worker": "7.66.0-alpha.0",
"@sentry-internal/rrweb": "2.0.0-alpha10.1",
"@sentry-internal/rrweb-snapshot": "2.0.0-alpha10.1",
"jsdom-worker": "^0.2.1",

@@ -36,5 +36,5 @@ "tslib": "^2.4.1 || ^1.9.3"

"dependencies": {
"@sentry/core": "7.65.0",
"@sentry/types": "7.65.0",
"@sentry/utils": "7.65.0"
"@sentry/core": "7.66.0-alpha.0",
"@sentry/types": "7.66.0-alpha.0",
"@sentry/utils": "7.66.0-alpha.0"
},

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

@@ -24,2 +24,4 @@ export declare const WINDOW: import("@sentry/utils").InternalGlobal & Window;

export declare const MIN_REPLAY_DURATION_LIMIT = 15000;
/** Default attributes to be ignored when `maskAllText` is enabled */
export declare const DEFAULT_IGNORED_ATTRIBUTES: string[];
//# sourceMappingURL=constants.d.ts.map

@@ -1,2 +0,1 @@

import type { INode } from '@sentry-internal/rrweb-snapshot';
import type { Breadcrumb } from '@sentry/types';

@@ -7,3 +6,3 @@ import type { ReplayContainer } from '../types';

/** Get the base DOM breadcrumb. */
export declare function getBaseDomBreadcrumb(target: Node | INode | null, message: string): Breadcrumb;
export declare function getBaseDomBreadcrumb(target: Node | null, message: string): Breadcrumb;
/**

@@ -10,0 +9,0 @@ * An event handler to react to DOM events.

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

private _replay?;
constructor({ flushMinDelay, flushMaxDelay, minReplayDuration, stickySession, useCompression, _experiments, sessionSampleRate, errorSampleRate, maskAllText, maskAllInputs, blockAllMedia, mutationBreadcrumbLimit, mutationLimit, slowClickTimeout, slowClickIgnoreSelectors, networkDetailAllowUrls, networkDetailDenyUrls, networkCaptureBodies, networkRequestHeaders, networkResponseHeaders, mask, unmask, block, unblock, ignore, maskFn, beforeAddRecordingEvent, blockClass, blockSelector, maskInputOptions, maskTextClass, maskTextSelector, ignoreClass, }?: ReplayConfiguration);
constructor({ flushMinDelay, flushMaxDelay, minReplayDuration, stickySession, useCompression, _experiments, sessionSampleRate, errorSampleRate, maskAllText, maskAllInputs, blockAllMedia, mutationBreadcrumbLimit, mutationLimit, slowClickTimeout, slowClickIgnoreSelectors, networkDetailAllowUrls, networkDetailDenyUrls, networkCaptureBodies, networkRequestHeaders, networkResponseHeaders, mask, maskAttributes, 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;

@@ -84,3 +84,3 @@ import type { ReplayRecordingMode, Transaction } from '@sentry/types';

*/
initializeSampling(): void;
initializeSampling(previousSessionId?: string): void;
/**

@@ -226,2 +226,8 @@ * Start a replay regardless of sampling rate. Calling this will always

/**
* Refresh a session with a new one.
* This stops the current session (without forcing a flush, as that would never work since we are expired),
* and then does a new sampling based on the refreshed session.
*/
private _refreshSession;
/**
* Adds listeners to record events for the replay

@@ -228,0 +234,0 @@ */

@@ -6,6 +6,7 @@ import type { Session, SessionOptions, Timeouts } from '../types';

*/
export declare function loadOrCreateSession(currentSession: Session | undefined, { timeouts, traceInternals, }: {
export declare function loadOrCreateSession({ timeouts, traceInternals, previousSessionId, }: {
timeouts: Timeouts;
traceInternals?: boolean;
previousSessionId?: string;
}, sessionOptions: SessionOptions): Session;
//# sourceMappingURL=loadOrCreateSession.d.ts.map

@@ -215,3 +215,8 @@ import type { Breadcrumb, FetchBreadcrumbHint, HandlerDataFetch, ReplayRecordingData, ReplayRecordingMode, SentryWrappedXMLHttpRequest, Transaction, XhrBreadcrumbHint } from '@sentry/types';

}
type OptionalReplayPluginOptions = Partial<ReplayPluginOptions>;
type OptionalReplayPluginOptions = Partial<ReplayPluginOptions> & {
/**
* Mask element attributes that are contained in list
*/
maskAttributes?: string[];
};
export interface DeprecatedPrivacyOptions {

@@ -306,7 +311,2 @@ /**

sampled: Sampled;
/**
* If this is false, the session should not be refreshed when it was inactive.
* This can be the case if you had a buffered session which is now recording because an error happened.
*/
shouldRefresh: boolean;
}

@@ -313,0 +313,0 @@ export type EventBufferType = 'sync' | 'worker';

@@ -6,4 +6,2 @@ import type { DeprecatedPrivacyOptions, ReplayIntegrationPrivacyOptions } from '../types';

unmaskTextSelector: string;
maskInputSelector: string;
unmaskInputSelector: string;
blockSelector: string;

@@ -10,0 +8,0 @@ unblockSelector: string;

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

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