File tree Expand file tree Collapse file tree 4 files changed +21
-19
lines changed
packages/replay/src/types Expand file tree Collapse file tree 4 files changed +21
-19
lines changed Original file line number Diff line number Diff line change 1
1
export * from './performance' ;
2
2
export * from './replay' ;
3
3
export * from './replayFrame' ;
4
+ export * from './request' ;
4
5
export * from './rrweb' ;
5
6
export type { EventType } from '@sentry-internal/rrweb' ;
Original file line number Diff line number Diff line change 1
- import type { ReplayNetworkRequestOrResponse } from './replay ' ;
1
+ import type { ReplayNetworkRequestOrResponse } from './request ' ;
2
2
3
3
export type AllPerformanceEntry = PerformancePaintTiming | PerformanceResourceTiming | PerformanceNavigationTiming ;
4
4
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import type {
11
11
import type { SKIPPED , THROTTLED } from '../util/throttle' ;
12
12
import type { AllPerformanceEntry } from './performance' ;
13
13
import type { ReplayFrameEvent } from './replayFrame' ;
14
+ import type { ReplayNetworkRequestOrResponse } from './request' ;
14
15
import type { eventWithTime , recordOptions } from './rrweb' ;
15
16
16
17
export type RecordingEvent = ReplayFrameEvent | eventWithTime ;
@@ -444,24 +445,6 @@ export type FetchHint = FetchBreadcrumbHint & {
444
445
response : Response ;
445
446
} ;
446
447
447
- type JsonObject = Record < string , unknown > ;
448
- type JsonArray = unknown [ ] ;
449
-
450
- export type NetworkBody = JsonObject | JsonArray | string ;
451
-
452
- export type NetworkMetaWarning = 'JSON_TRUNCATED' | 'TEXT_TRUNCATED' | 'INVALID_JSON' | 'URL_SKIPPED' ;
453
-
454
- interface NetworkMeta {
455
- warnings ?: NetworkMetaWarning [ ] ;
456
- }
457
-
458
- export interface ReplayNetworkRequestOrResponse {
459
- size ?: number ;
460
- body ?: NetworkBody ;
461
- headers : Record < string , string > ;
462
- _meta ?: NetworkMeta ;
463
- }
464
-
465
448
export type ReplayNetworkRequestData = {
466
449
startTimestamp : number ;
467
450
endTimestamp : number ;
Original file line number Diff line number Diff line change
1
+
2
+ type JsonObject = Record < string , unknown > ;
3
+ type JsonArray = unknown [ ] ;
4
+
5
+ export type NetworkBody = JsonObject | JsonArray | string ;
6
+
7
+ export type NetworkMetaWarning = 'JSON_TRUNCATED' | 'TEXT_TRUNCATED' | 'INVALID_JSON' | 'URL_SKIPPED' ;
8
+
9
+ interface NetworkMeta {
10
+ warnings ?: NetworkMetaWarning [ ] ;
11
+ }
12
+
13
+ export interface ReplayNetworkRequestOrResponse {
14
+ size ?: number ;
15
+ body ?: NetworkBody ;
16
+ headers : Record < string , string > ;
17
+ _meta ?: NetworkMeta ;
18
+ }
You can’t perform that action at this time.
0 commit comments