@@ -26,21 +26,21 @@ export type InitiatorType =
26
26
27
27
type NetworkRecordOptions = {
28
28
initiatorType ?: InitiatorType [ ] ;
29
- captureHeaders ?:
29
+ recordHeaders ?:
30
30
| boolean
31
31
| StringifyOptions
32
32
| {
33
33
request : boolean | StringifyOptions ;
34
34
response : boolean | StringifyOptions ;
35
35
} ;
36
- captureBody ?:
36
+ recordBody ?:
37
37
| boolean
38
38
| StringifyOptions
39
39
| {
40
40
request : boolean | StringifyOptions ;
41
41
response : boolean | StringifyOptions ;
42
42
} ;
43
- captureInitialEvents ?: boolean ;
43
+ recordInitialEvents ?: boolean ;
44
44
} ;
45
45
46
46
const defaultNetworkOptions : NetworkRecordOptions = {
@@ -67,9 +67,9 @@ const defaultNetworkOptions: NetworkRecordOptions = {
67
67
'video' ,
68
68
'xmlhttprequest' ,
69
69
] ,
70
- captureHeaders : false ,
71
- captureBody : false ,
72
- captureInitialEvents : false ,
70
+ recordHeaders : false ,
71
+ recordBody : false ,
72
+ recordInitialEvents : false ,
73
73
} ;
74
74
75
75
type Headers = Record < string , string > ;
@@ -105,7 +105,7 @@ function initPerformanceObserver(
105
105
win : IWindow ,
106
106
options : {
107
107
initiatorType : InitiatorType [ ] ;
108
- captureInitialEvents : boolean ;
108
+ recordInitialEvents : boolean ;
109
109
} ,
110
110
) {
111
111
if ( ! ( 'performance' in win ) ) {
@@ -129,7 +129,7 @@ function initPerformanceObserver(
129
129
) ;
130
130
} ) ;
131
131
} ;
132
- if ( options . captureInitialEvents ) {
132
+ if ( options . recordInitialEvents ) {
133
133
const initialPerformanceEntries = getPerformanceEntries (
134
134
win . performance . getEntries ( ) ,
135
135
) ;
@@ -183,7 +183,7 @@ function initNetworkObserver(
183
183
? Object . assign ( { } , defaultNetworkOptions , options )
184
184
: defaultNetworkOptions ) as {
185
185
initiatorType : InitiatorType [ ] ;
186
- captureInitialEvents : boolean ;
186
+ recordInitialEvents : boolean ;
187
187
} ;
188
188
189
189
const performanceObserver = initPerformanceObserver ( cb , win , networkOptions ) ;
0 commit comments