@sentry/replay 0.6.13-0 → 0.6.14-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { Breadcrumb, Event, Integration } from '@sentry/types';
2
2
  import { Session } from './session/Session';
3
3
  import { ReplayPerformanceEntry } from './createPerformanceEntry';
4
4
  import { IEventBuffer } from './eventBuffer';
5
- import type { AllPerformanceEntry, InitialState, InstrumentationTypeBreadcrumb, InstrumentationTypeSpan, RecordedEvents, RecordingEvent, RecordingOptions, ReplayConfiguration, ReplayPluginOptions, SendReplayRequest } from './types';
5
+ import type { AllPerformanceEntry, InitialState, InstrumentationTypeBreadcrumb, InstrumentationTypeSpan, RecordingEvent, RecordingOptions, ReplayConfiguration, ReplayPluginOptions, SendReplay } from './types';
6
6
  /**
7
7
  * Returns true to return control to calling function, otherwise continue with normal batching
8
8
  */
@@ -278,16 +278,11 @@ export declare class Replay implements Integration {
278
278
  /**
279
279
  * Send replay attachment using `fetch()`
280
280
  */
281
- sendReplayRequest({ endpoint, events, replayId: event_id, segmentId: segment_id, includeReplayStartTimestamp, }: SendReplayRequest): Promise<void>;
281
+ sendReplayRequest({ events, replayId: event_id, segmentId: segment_id, includeReplayStartTimestamp, }: SendReplay): Promise<void | undefined>;
282
282
  resetRetries(): void;
283
283
  /**
284
284
  * Finalize and send the current replay event to Sentry
285
285
  */
286
- sendReplay({ replayId, events, segmentId, includeReplayStartTimestamp, }: {
287
- replayId: string;
288
- events: RecordedEvents;
289
- segmentId: number;
290
- includeReplayStartTimestamp: boolean;
291
- }): Promise<unknown>;
286
+ sendReplay({ replayId, events, segmentId, includeReplayStartTimestamp, }: SendReplay): Promise<unknown>;
292
287
  }
293
288
  export {};
@@ -49,6 +49,7 @@ export declare class Session {
49
49
  constructor(session: Partial<SessionObject> | undefined, { stickySession, sessionSampleRate, errorSampleRate, }: StickyOption & SampleRates);
50
50
  get id(): string;
51
51
  get started(): number;
52
+ set started(newDate: number);
52
53
  get lastActivity(): number;
53
54
  set lastActivity(newDate: number);
54
55
  get segmentId(): number;
@@ -3,8 +3,7 @@ export declare type RecordingEvent = eventWithTime;
3
3
  export declare type RecordingOptions = recordOptions<eventWithTime>;
4
4
  export declare type RecordedEvents = Uint8Array | string;
5
5
  export declare type AllPerformanceEntry = PerformancePaintTiming | PerformanceResourceTiming | PerformanceNavigationTiming;
6
- export interface SendReplayRequest {
7
- endpoint: string;
6
+ export interface SendReplay {
8
7
  events: RecordedEvents;
9
8
  replayId: string;
10
9
  segmentId: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/replay",
3
- "version": "0.6.13-0",
3
+ "version": "0.6.14-0",
4
4
  "description": "User replays for Sentry",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",