@sentry/replay 0.5.20 → 0.5.22
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.
- package/dist/index.es.js +140 -38
- package/dist/index.js +139 -38
- package/dist/index.js.map +1 -1
- package/dist/{config/types/jest.config.d.ts → jest.config.d.ts} +0 -0
- package/dist/{config/types/jest.setup.d.ts → jest.setup.d.ts} +0 -0
- package/dist/{config/types/src → src}/api/captureReplayEvent.d.ts +0 -0
- package/dist/{config/types/src → src}/coreHandlers/getBreadcrumbHandler.d.ts +0 -0
- package/dist/{config/types/src → src}/coreHandlers/getSpanHandler.d.ts +0 -0
- package/dist/{config/types/src → src}/coreHandlers/handleDom.d.ts +0 -0
- package/dist/{config/types/src → src}/coreHandlers/handleFetch.d.ts +0 -0
- package/dist/{config/types/src → src}/coreHandlers/handleFetch.test.d.ts +0 -0
- package/dist/{config/types/src → src}/coreHandlers/handleHistory.d.ts +0 -0
- package/dist/{config/types/src → src}/coreHandlers/handleScope-unit.test.d.ts +0 -0
- package/dist/{config/types/src → src}/coreHandlers/handleScope.d.ts +0 -0
- package/dist/{config/types/src → src}/coreHandlers/handleScope.test.d.ts +0 -0
- package/dist/{config/types/src → src}/coreHandlers/handleXhr.d.ts +0 -0
- package/dist/{config/types/src → src}/createPerformanceEntry.d.ts +0 -0
- package/dist/{config/types/src → src}/createPerformanceEntry.test.d.ts +0 -0
- package/dist/{config/types/src → src}/eventBuffer.d.ts +0 -0
- package/dist/{config/types/src → src}/eventBuffer.test.d.ts +0 -0
- package/dist/{config/types/src → src}/flags.d.ts +0 -0
- package/dist/{config/types/src → src}/flush.test.d.ts +0 -0
- package/dist/{config/types/src → src}/index-captureOnlyOnError.test.d.ts +0 -0
- package/dist/{config/types/src → src}/index-noSticky.test.d.ts +0 -0
- package/dist/{config/types/src → src}/index-sampling.test.d.ts +0 -0
- package/dist/{config/types/src → src}/index.d.ts +2 -8
- package/dist/{config/types/src → src}/index.test.d.ts +0 -0
- package/dist/{config/types/src → src}/session/Session.d.ts +0 -0
- package/dist/{config/types/src → src}/session/Session.test.d.ts +0 -0
- package/dist/{config/types/src → src}/session/constants.d.ts +0 -0
- package/dist/{config/types/src → src}/session/createSession.d.ts +0 -0
- package/dist/{config/types/src → src}/session/createSession.test.d.ts +0 -0
- package/dist/{config/types/src → src}/session/deleteSession.d.ts +0 -0
- package/dist/{config/types/src → src}/session/deleteSession.test.d.ts +0 -0
- package/dist/{config/types/src → src}/session/fetchSession.d.ts +0 -0
- package/dist/{config/types/src → src}/session/fetchSession.test.d.ts +0 -0
- package/dist/{config/types/src → src}/session/getSession.d.ts +0 -0
- package/dist/{config/types/src → src}/session/getSession.test.d.ts +0 -0
- package/dist/{config/types/src → src}/session/index.d.ts +0 -0
- package/dist/{config/types/src → src}/session/saveSession.d.ts +0 -0
- package/dist/{config/types/src → src}/session/saveSession.test.d.ts +0 -0
- package/dist/{config/types/src → src}/stop.test.d.ts +0 -0
- package/dist/{config/types/src → src}/types.d.ts +3 -0
- package/dist/src/util/addInternalBreadcrumb.d.ts +5 -0
- package/dist/{config/types/src → src}/util/createBreadcrumb.d.ts +0 -0
- package/dist/{config/types/src → src}/util/createPayload.d.ts +0 -0
- package/dist/{config/types/src/util/dedupeNavigationEntries.d.ts → src/util/dedupePerformanceEntries.d.ts} +1 -1
- package/dist/{config/types/src/util/isExpired.test.d.ts → src/util/dedupePerformanceEntries.test.d.ts} +0 -0
- package/dist/{config/types/src → src}/util/isExpired.d.ts +0 -0
- package/dist/{config/types/src/util/isSampled.test.d.ts → src/util/isExpired.test.d.ts} +0 -0
- package/dist/{config/types/src → src}/util/isIngestHost.d.ts +0 -0
- package/dist/src/util/isInternal.d.ts +5 -0
- package/dist/{config/types/src → src}/util/isSampled.d.ts +0 -0
- package/dist/{config/types/src/util/isSessionExpired.test.d.ts → src/util/isSampled.test.d.ts} +0 -0
- package/dist/{config/types/src → src}/util/isSessionExpired.d.ts +0 -0
- package/dist/src/util/isSessionExpired.test.d.ts +1 -0
- package/dist/{config/types/src → src}/util/logger.d.ts +0 -0
- package/dist/test/fixtures/performanceEntry/lcp.d.ts +1 -0
- package/dist/test/fixtures/performanceEntry/navigation.d.ts +1 -0
- package/dist/test/fixtures/performanceEntry/resource.d.ts +1 -0
- package/dist/{config/types/test → test}/index.d.ts +0 -0
- package/dist/{config/types/test → test}/mocks/mockRrweb.d.ts +0 -0
- package/dist/{config/types/test → test}/mocks/mockSdk.d.ts +0 -0
- package/dist/types/src/index.d.ts +2 -8
- package/dist/types/src/types.d.ts +3 -0
- package/dist/types/src/util/addInternalBreadcrumb.d.ts +5 -0
- package/dist/types/src/util/dedupePerformanceEntries.d.ts +10 -0
- package/dist/types/src/util/isInternal.d.ts +5 -0
- package/package.json +1 -2
- package/dist/config/types/src/coreHandlers/handleConsole.d.ts +0 -1
- package/dist/types/src/coreHandlers/handleConsole.d.ts +0 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
1
|
import { Breadcrumb, Event, Integration } from '@sentry/types';
|
|
3
2
|
import { CaptureReplayEventParams } from './api/captureReplayEvent';
|
|
4
3
|
import { Session } from './session/Session';
|
|
@@ -223,6 +222,8 @@ export declare class SentryReplay implements Integration {
|
|
|
223
222
|
*
|
|
224
223
|
* Performance events are only added right before flushing - this is
|
|
225
224
|
* due to the buffered performance observer events.
|
|
225
|
+
*
|
|
226
|
+
* Should never be called directly, only by `flush`
|
|
226
227
|
*/
|
|
227
228
|
runFlush(): Promise<void>;
|
|
228
229
|
/**
|
|
@@ -230,13 +231,6 @@ export declare class SentryReplay implements Integration {
|
|
|
230
231
|
* can be active at a time.
|
|
231
232
|
*/
|
|
232
233
|
flush: () => Promise<void>;
|
|
233
|
-
/**
|
|
234
|
-
* A throttled `flush()` that is called after a flush is completed and there
|
|
235
|
-
* are other queued flushes.
|
|
236
|
-
*
|
|
237
|
-
* Instead of calling a flush for every <n> queued flush, condense it to a single call
|
|
238
|
-
*/
|
|
239
|
-
throttledFlush: import("lodash").DebouncedFunc<() => Promise<void>>;
|
|
240
234
|
/**
|
|
241
235
|
* Send replay attachment using `fetch()`
|
|
242
236
|
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Compare the values of several keys to determine if the entries are duplicates or not.
|
|
9
9
|
*/
|
|
10
|
-
export declare function
|
|
10
|
+
export declare function dedupePerformanceEntries(currentList: PerformanceEntryList, newList: PerformanceEntryList): PerformancePaintTiming[];
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/{config/types/src/util/isSessionExpired.test.d.ts → src/util/isSampled.test.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function PerformanceEntryLcp(obj?: Partial<PerformancePaintTiming>): PerformancePaintTiming;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function PerformanceEntryNavigation(obj?: Partial<PerformanceNavigationTiming>): PerformanceNavigationTiming;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function PerformanceEntryResource(obj?: Partial<PerformanceResourceTiming>): PerformanceResourceTiming;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
1
|
import { Breadcrumb, Event, Integration } from '@sentry/types';
|
|
3
2
|
import { CaptureReplayEventParams } from './api/captureReplayEvent';
|
|
4
3
|
import { Session } from './session/Session';
|
|
@@ -223,6 +222,8 @@ export declare class SentryReplay implements Integration {
|
|
|
223
222
|
*
|
|
224
223
|
* Performance events are only added right before flushing - this is
|
|
225
224
|
* due to the buffered performance observer events.
|
|
225
|
+
*
|
|
226
|
+
* Should never be called directly, only by `flush`
|
|
226
227
|
*/
|
|
227
228
|
runFlush(): Promise<void>;
|
|
228
229
|
/**
|
|
@@ -230,13 +231,6 @@ export declare class SentryReplay implements Integration {
|
|
|
230
231
|
* can be active at a time.
|
|
231
232
|
*/
|
|
232
233
|
flush: () => Promise<void>;
|
|
233
|
-
/**
|
|
234
|
-
* A throttled `flush()` that is called after a flush is completed and there
|
|
235
|
-
* are other queued flushes.
|
|
236
|
-
*
|
|
237
|
-
* Instead of calling a flush for every <n> queued flush, condense it to a single call
|
|
238
|
-
*/
|
|
239
|
-
throttledFlush: import("lodash").DebouncedFunc<() => Promise<void>>;
|
|
240
234
|
/**
|
|
241
235
|
* Send replay attachment using `fetch()`
|
|
242
236
|
*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* There are some difficulties diagnosing why there are duplicate navigation
|
|
3
|
+
* entries. We've witnessed several intermittent results:
|
|
4
|
+
* - duplicate entries have duration = 0
|
|
5
|
+
* - duplicate entries are the same object reference
|
|
6
|
+
* - none of the above
|
|
7
|
+
*
|
|
8
|
+
* Compare the values of several keys to determine if the entries are duplicates or not.
|
|
9
|
+
*/
|
|
10
|
+
export declare function dedupePerformanceEntries(currentList: PerformanceEntryList, newList: PerformanceEntryList): PerformancePaintTiming[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/replay",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.22",
|
|
4
4
|
"description": "User replays for Sentry",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -74,7 +74,6 @@
|
|
|
74
74
|
"@sentry/types": "^7.7.0",
|
|
75
75
|
"@sentry/utils": "^7.7.0",
|
|
76
76
|
"lodash.debounce": "^4.0.8",
|
|
77
|
-
"lodash.throttle": "^4.1.1",
|
|
78
77
|
"pako": "^2.0.4",
|
|
79
78
|
"rrweb": "^1.1.3"
|
|
80
79
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function handleConsole(handlerData: any): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function handleConsole(handlerData: any): void;
|