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
235
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.6.3 to 0.6.4-0

23

dist/config/types/jest.setup.d.ts
/// <reference types="jest" />
import { Session } from './src/session/Session';
declare type SentReplayExpected = {
envelopeHeader?: {
event_id: string;
sent_at: string;
sdk: {
name: string;
version?: string;
};
};
replayEventHeader?: {
type: 'replay_event';
};
replayEventPayload?: Record<string, any>;
recordingHeader?: {
type: 'replay_recording';
length: number;
};
recordingPayloadHeader?: Record<string, any>;
events?: string | Uint8Array;
};
declare global {
namespace jest {
interface Matchers<R> {
toHaveSentReplay(expected?: string | Uint8Array): CustomMatcherResult;
toHaveSentReplay(expected?: SentReplayExpected): CustomMatcherResult;
toHaveSameSession(expected: undefined | Session): CustomMatcherResult;

@@ -11,1 +31,2 @@ }

}
export {};

21

dist/config/types/src/index.d.ts
import { Breadcrumb, Event, Integration } from '@sentry/types';
import { CaptureReplayEventParams } from './api/captureReplayEvent';
import { Session } from './session/Session';
import { ReplayPerformanceEntry } from './createPerformanceEntry';
import { IEventBuffer } from './eventBuffer';
import type { AllPerformanceEntry, InstrumentationTypeBreadcrumb, InstrumentationTypeSpan, RecordedEvents, RecordingEvent, RecordingOptions, ReplayConfiguration, ReplayPluginOptions, ReplayRequest } from './types';
import type { AllPerformanceEntry, InitialState, InstrumentationTypeBreadcrumb, InstrumentationTypeSpan, RecordedEvents, RecordingEvent, RecordingOptions, ReplayConfiguration, ReplayPluginOptions, SendReplayRequest } from './types';
/**

@@ -211,5 +210,8 @@ * Returns true to return control to calling function, otherwise continue with normal batching

*/
popEventContext({ timestamp, }: {
timestamp: number;
}): Omit<CaptureReplayEventParams, 'includeReplayStartTimestamp' | 'segmentId' | 'replayId'>;
popEventContext(): {
initialState: InitialState;
errorIds: string[];
traceIds: string[];
urls: string[];
};
/**

@@ -232,3 +234,3 @@ * Flushes replay event buffer to Sentry.

*/
sendReplayRequest({ endpoint, events, replayId: event_id, segmentId: segment_id, }: ReplayRequest): Promise<void>;
sendReplayRequest({ endpoint, events, replayId: event_id, segmentId: segment_id, includeReplayStartTimestamp, }: SendReplayRequest): Promise<void>;
resetRetries(): void;

@@ -238,4 +240,9 @@ /**

*/
sendReplay(replayId: string, events: RecordedEvents, segmentId: number): Promise<unknown>;
sendReplay({ replayId, events, segmentId, includeReplayStartTimestamp, }: {
replayId: string;
events: RecordedEvents;
segmentId: number;
includeReplayStartTimestamp: boolean;
}): Promise<unknown>;
}
export {};

@@ -6,3 +6,3 @@ import type { eventWithTime, recordOptions } from 'rrweb/typings/types';

export declare type AllPerformanceEntry = PerformancePaintTiming | PerformanceResourceTiming | PerformanceNavigationTiming;
export interface ReplayRequest {
export interface SendReplayRequest {
endpoint: string;

@@ -12,2 +12,3 @@ events: RecordedEvents;

segmentId: number;
includeReplayStartTimestamp: boolean;
}

@@ -14,0 +15,0 @@ export declare type InstrumentationTypeBreadcrumb = 'dom' | 'scope';

@@ -7,4 +7,4 @@ declare const logger: {

enable(): void;
info: (...args: unknown[]) => void;
debug: (...args: unknown[]) => void;
info: (...args: unknown[]) => void;
assert: (...args: unknown[]) => void;

@@ -11,0 +11,0 @@ trace: (...args: unknown[]) => void;

import { BrowserOptions } from '@sentry/browser';
import { Replay } from '../../src';
import { ReplayConfiguration } from '../../src/types';

@@ -8,5 +7,5 @@ interface MockSdkParams {

}
export declare function mockSdk({ replayOptions, sentryOptions, }?: MockSdkParams): {
replay: Replay;
};
export declare function mockSdk({ replayOptions, sentryOptions, }?: MockSdkParams): Promise<{
replay: import("../../src").Replay;
}>;
export {};
import { Breadcrumb, Event, Integration } from '@sentry/types';
import { CaptureReplayEventParams } from './api/captureReplayEvent';
import { Session } from './session/Session';
import { ReplayPerformanceEntry } from './createPerformanceEntry';
import { IEventBuffer } from './eventBuffer';
import type { AllPerformanceEntry, InstrumentationTypeBreadcrumb, InstrumentationTypeSpan, RecordedEvents, RecordingEvent, RecordingOptions, ReplayConfiguration, ReplayPluginOptions, ReplayRequest } from './types';
import type { AllPerformanceEntry, InitialState, InstrumentationTypeBreadcrumb, InstrumentationTypeSpan, RecordedEvents, RecordingEvent, RecordingOptions, ReplayConfiguration, ReplayPluginOptions, SendReplayRequest } from './types';
/**

@@ -211,5 +210,8 @@ * Returns true to return control to calling function, otherwise continue with normal batching

*/
popEventContext({ timestamp, }: {
timestamp: number;
}): Omit<CaptureReplayEventParams, 'includeReplayStartTimestamp' | 'segmentId' | 'replayId'>;
popEventContext(): {
initialState: InitialState;
errorIds: string[];
traceIds: string[];
urls: string[];
};
/**

@@ -232,3 +234,3 @@ * Flushes replay event buffer to Sentry.

*/
sendReplayRequest({ endpoint, events, replayId: event_id, segmentId: segment_id, }: ReplayRequest): Promise<void>;
sendReplayRequest({ endpoint, events, replayId: event_id, segmentId: segment_id, includeReplayStartTimestamp, }: SendReplayRequest): Promise<void>;
resetRetries(): void;

@@ -238,4 +240,9 @@ /**

*/
sendReplay(replayId: string, events: RecordedEvents, segmentId: number): Promise<unknown>;
sendReplay({ replayId, events, segmentId, includeReplayStartTimestamp, }: {
replayId: string;
events: RecordedEvents;
segmentId: number;
includeReplayStartTimestamp: boolean;
}): Promise<unknown>;
}
export {};

@@ -6,3 +6,3 @@ import type { eventWithTime, recordOptions } from 'rrweb/typings/types';

export declare type AllPerformanceEntry = PerformancePaintTiming | PerformanceResourceTiming | PerformanceNavigationTiming;
export interface ReplayRequest {
export interface SendReplayRequest {
endpoint: string;

@@ -12,2 +12,3 @@ events: RecordedEvents;

segmentId: number;
includeReplayStartTimestamp: boolean;
}

@@ -14,0 +15,0 @@ export declare type InstrumentationTypeBreadcrumb = 'dom' | 'scope';

{
"name": "@sentry/replay",
"version": "0.6.3",
"version": "0.6.4-0",
"description": "User replays for Sentry",

@@ -46,6 +46,6 @@ "main": "dist/index.js",

"@size-limit/time": "^8.1.0",
"@types/jest": "^28.1.1",
"@types/jest": "^29.1.2",
"@types/lodash.debounce": "^4.0.7",
"@types/lodash.throttle": "^4.1.7",
"@types/node": "^16.0.0",
"@types/node": "^18.11.0",
"@types/pako": "^2.0.0",

@@ -59,4 +59,4 @@ "@typescript-eslint/eslint-plugin": "^5.31.0",

"husky": ">=6",
"jest": "^28.1.1",
"jest-environment-jsdom": "^28.1.1",
"jest": "^29.2.0",
"jest-environment-jsdom": "^29.2.0",
"jsdom-worker": "^0.2.1",

@@ -69,3 +69,3 @@ "lint-staged": ">=10",

"size-limit": "^8.1.0",
"ts-jest": "^28.0.4",
"ts-jest": "^29.0.3",
"ts-node": "^10.7.0",

@@ -96,5 +96,5 @@ "tslib": "^2.3.1",

"volta": {
"node": "16.15.1",
"node": "18.11.0",
"yarn": "1.22.19"
}
}

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