@sentry/replay
Advanced tools
Comparing version 0.4.8 to 0.4.9
@@ -1,2 +0,2 @@ | ||
import { RecordingEvent, WorkerRequest } from './types'; | ||
import { RecordingEvent, WorkerRequest, WorkerResponse } from './types'; | ||
interface CreateEventBufferParams { | ||
@@ -29,8 +29,15 @@ useCompression: boolean; | ||
get id(): number; | ||
postMessage(args: WorkerRequest): void; | ||
/** | ||
* Post message to worker and wait for response before resolving promise. | ||
*/ | ||
postMessage({ id, method, args, }: WorkerRequest): Promise<WorkerResponse['response']>; | ||
init(): void; | ||
destroy(): void; | ||
/** | ||
* Note that this may not reflect what is actually in the event buffer. This | ||
* is only a local count of the buffer size since `addEvent` is async. | ||
*/ | ||
get length(): number; | ||
addEvent(event: RecordingEvent, isCheckout?: boolean): void; | ||
sendEventToWorker: (event: RecordingEvent) => void; | ||
addEvent(event: RecordingEvent, isCheckout?: boolean): Promise<string | Uint8Array>; | ||
sendEventToWorker: (event: RecordingEvent) => Promise<string | Uint8Array>; | ||
finishRequest: (id: number) => Promise<Uint8Array>; | ||
@@ -37,0 +44,0 @@ finish(): Promise<Uint8Array>; |
@@ -179,5 +179,5 @@ import { Breadcrumb, DsnComponents, Event, Integration } from '@sentry/types'; | ||
/** | ||
* Create a span for each performance entry. The parent transaction is `this.replayEvent`. | ||
* Create a "span" for each performance entry. The parent transaction is `this.replayEvent`. | ||
*/ | ||
createPerformanceSpans(entries: ReplayPerformanceEntry[]): void; | ||
createPerformanceSpans(entries: ReplayPerformanceEntry[]): Promise<void[]>; | ||
/** | ||
@@ -187,4 +187,9 @@ * Observed performance events are added to `this.performanceEvents`. These | ||
*/ | ||
addPerformanceEntries(): void; | ||
addPerformanceEntries(): Promise<void[]>; | ||
/** | ||
* Create a "span" for the total amount of memory being used by JS objects | ||
* (including v8 internal objects). | ||
*/ | ||
addMemoryEntry(): Promise<void[]>; | ||
/** | ||
* | ||
@@ -191,0 +196,0 @@ * |
@@ -1,2 +0,2 @@ | ||
import { RecordingEvent, WorkerRequest } from './types'; | ||
import { RecordingEvent, WorkerRequest, WorkerResponse } from './types'; | ||
interface CreateEventBufferParams { | ||
@@ -29,8 +29,15 @@ useCompression: boolean; | ||
get id(): number; | ||
postMessage(args: WorkerRequest): void; | ||
/** | ||
* Post message to worker and wait for response before resolving promise. | ||
*/ | ||
postMessage({ id, method, args, }: WorkerRequest): Promise<WorkerResponse['response']>; | ||
init(): void; | ||
destroy(): void; | ||
/** | ||
* Note that this may not reflect what is actually in the event buffer. This | ||
* is only a local count of the buffer size since `addEvent` is async. | ||
*/ | ||
get length(): number; | ||
addEvent(event: RecordingEvent, isCheckout?: boolean): void; | ||
sendEventToWorker: (event: RecordingEvent) => void; | ||
addEvent(event: RecordingEvent, isCheckout?: boolean): Promise<string | Uint8Array>; | ||
sendEventToWorker: (event: RecordingEvent) => Promise<string | Uint8Array>; | ||
finishRequest: (id: number) => Promise<Uint8Array>; | ||
@@ -37,0 +44,0 @@ finish(): Promise<Uint8Array>; |
@@ -179,5 +179,5 @@ import { Breadcrumb, DsnComponents, Event, Integration } from '@sentry/types'; | ||
/** | ||
* Create a span for each performance entry. The parent transaction is `this.replayEvent`. | ||
* Create a "span" for each performance entry. The parent transaction is `this.replayEvent`. | ||
*/ | ||
createPerformanceSpans(entries: ReplayPerformanceEntry[]): void; | ||
createPerformanceSpans(entries: ReplayPerformanceEntry[]): Promise<void[]>; | ||
/** | ||
@@ -187,4 +187,9 @@ * Observed performance events are added to `this.performanceEvents`. These | ||
*/ | ||
addPerformanceEntries(): void; | ||
addPerformanceEntries(): Promise<void[]>; | ||
/** | ||
* Create a "span" for the total amount of memory being used by JS objects | ||
* (including v8 internal objects). | ||
*/ | ||
addMemoryEntry(): Promise<void[]>; | ||
/** | ||
* | ||
@@ -191,0 +196,0 @@ * |
{ | ||
"name": "@sentry/replay", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
436651
4691