@openreplay/tracker 9.0.12 → 9.0.13
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/cjs/app/index.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/modules/Network/fetchProxy.d.ts +1 -1
- package/cjs/modules/Network/fetchProxy.js +2 -0
- package/coverage/clover.xml +829 -1064
- package/coverage/coverage-final.json +17 -21
- package/coverage/lcov-report/index.html +40 -55
- package/coverage/lcov-report/main/app/guards.ts.html +1 -1
- package/coverage/lcov-report/main/app/index.html +23 -23
- package/coverage/lcov-report/main/app/index.ts.html +212 -29
- package/coverage/lcov-report/main/app/logger.ts.html +2 -2
- package/coverage/lcov-report/main/app/messages.gen.ts.html +144 -144
- package/coverage/lcov-report/main/app/nodes.ts.html +13 -7
- package/coverage/lcov-report/main/app/observer/iframe_observer.ts.html +1 -1
- package/coverage/lcov-report/main/app/observer/iframe_offsets.ts.html +1 -1
- package/coverage/lcov-report/main/app/observer/index.html +1 -1
- package/coverage/lcov-report/main/app/observer/shadow_root_observer.ts.html +1 -1
- package/coverage/lcov-report/main/app/observer/top_observer.ts.html +1 -1
- package/coverage/lcov-report/main/app/sanitizer.ts.html +12 -3
- package/coverage/lcov-report/main/app/session.ts.html +30 -9
- package/coverage/lcov-report/main/app/ticker.ts.html +1 -1
- package/coverage/lcov-report/main/index.html +21 -21
- package/coverage/lcov-report/main/index.ts.html +26 -26
- package/coverage/lcov-report/main/modules/Network/beaconProxy.ts.html +19 -19
- package/coverage/lcov-report/main/modules/Network/fetchProxy.ts.html +102 -96
- package/coverage/lcov-report/main/modules/Network/index.html +65 -65
- package/coverage/lcov-report/main/modules/Network/index.ts.html +33 -33
- package/coverage/lcov-report/main/modules/Network/networkMessage.ts.html +71 -71
- package/coverage/lcov-report/main/modules/Network/utils.ts.html +34 -34
- package/coverage/lcov-report/main/modules/Network/xhrProxy.ts.html +13 -13
- package/coverage/lcov-report/main/modules/attributeSender.ts.html +13 -4
- package/coverage/lcov-report/main/modules/axiosSpy.ts.html +1 -1
- package/coverage/lcov-report/main/modules/connection.ts.html +1 -1
- package/coverage/lcov-report/main/modules/console.ts.html +1 -1
- package/coverage/lcov-report/main/modules/constructedStyleSheets.ts.html +42 -30
- package/coverage/lcov-report/main/modules/cssrules.ts.html +1 -1
- package/coverage/lcov-report/main/modules/exception.ts.html +1 -1
- package/coverage/lcov-report/main/modules/featureFlags.ts.html +1 -1
- package/coverage/lcov-report/main/modules/focus.ts.html +1 -1
- package/coverage/lcov-report/main/modules/fonts.ts.html +1 -1
- package/coverage/lcov-report/main/modules/img.ts.html +23 -20
- package/coverage/lcov-report/main/modules/index.html +13 -13
- package/coverage/lcov-report/main/modules/input.ts.html +1 -1
- package/coverage/lcov-report/main/modules/mouse.ts.html +1 -1
- package/coverage/lcov-report/main/modules/network.ts.html +2 -2
- package/coverage/lcov-report/main/modules/performance.ts.html +1 -1
- package/coverage/lcov-report/main/modules/scroll.ts.html +1 -1
- package/coverage/lcov-report/main/modules/selection.ts.html +1 -1
- package/coverage/lcov-report/main/modules/tabs.ts.html +1 -1
- package/coverage/lcov-report/main/modules/timing.ts.html +42 -6
- package/coverage/lcov-report/main/modules/viewport.ts.html +1 -1
- package/coverage/lcov-report/main/utils.ts.html +255 -39
- package/coverage/lcov-report/webworker/BatchWriter.ts.html +1 -1
- package/coverage/lcov-report/webworker/MessageEncoder.gen.ts.html +1 -1
- package/coverage/lcov-report/webworker/PrimitiveEncoder.ts.html +1 -1
- package/coverage/lcov-report/webworker/QueueSender.ts.html +1 -1
- package/coverage/lcov-report/webworker/index.html +1 -1
- package/coverage/lcov-report/webworker/index.ts.html +1 -1
- package/coverage/lcov.info +1376 -1729
- package/lib/app/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/modules/Network/fetchProxy.d.ts +1 -1
- package/lib/modules/Network/fetchProxy.js +2 -0
- package/package.json +1 -1
|
@@ -179,7 +179,8 @@
|
|
|
179
179
|
<a name='L114'></a><a href='#L114'>114</a>
|
|
180
180
|
<a name='L115'></a><a href='#L115'>115</a>
|
|
181
181
|
<a name='L116'></a><a href='#L116'>116</a>
|
|
182
|
-
<a name='L117'></a><a href='#L117'>117</a
|
|
182
|
+
<a name='L117'></a><a href='#L117'>117</a>
|
|
183
|
+
<a name='L118'></a><a href='#L118'>118</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
183
184
|
<span class="cline-any cline-no"> </span>
|
|
184
185
|
<span class="cline-any cline-no"> </span>
|
|
185
186
|
<span class="cline-any cline-no"> </span>
|
|
@@ -262,8 +263,8 @@
|
|
|
262
263
|
<span class="cline-any cline-no"> </span>
|
|
263
264
|
<span class="cline-any cline-neutral"> </span>
|
|
264
265
|
<span class="cline-any cline-neutral"> </span>
|
|
265
|
-
<span class="cline-any cline-neutral"> </span>
|
|
266
266
|
<span class="cline-any cline-no"> </span>
|
|
267
|
+
<span class="cline-any cline-neutral"> </span>
|
|
267
268
|
<span class="cline-any cline-no"> </span>
|
|
268
269
|
<span class="cline-any cline-no"> </span>
|
|
269
270
|
<span class="cline-any cline-no"> </span>
|
|
@@ -281,6 +282,7 @@
|
|
|
281
282
|
<span class="cline-any cline-neutral"> </span>
|
|
282
283
|
<span class="cline-any cline-neutral"> </span>
|
|
283
284
|
<span class="cline-any cline-neutral"> </span>
|
|
285
|
+
<span class="cline-any cline-neutral"> </span>
|
|
284
286
|
<span class="cline-any cline-no"> </span>
|
|
285
287
|
<span class="cline-any cline-no"> </span>
|
|
286
288
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -296,7 +298,7 @@
|
|
|
296
298
|
<span class="cline-any cline-neutral"> </span>
|
|
297
299
|
<span class="cline-any cline-neutral"> </span>
|
|
298
300
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import type App from '../app/index.js'
|
|
299
|
-
<span class="cstat-no" title="statement not covered" >import { isURL, IS_FIREFOX, MAX_STR_LEN } from '../utils.js'</span>
|
|
301
|
+
<span class="cstat-no" title="statement not covered" >import { isURL, IS_FIREFOX, MAX_STR_LEN, createMutationObserver } from '../utils.js'</span>
|
|
300
302
|
<span class="cstat-no" title="statement not covered" >import { ResourceTiming, SetNodeAttributeURLBased } from '../app/messages.gen.js'</span>
|
|
301
303
|
<span class="cstat-no" title="statement not covered" >import { hasTag } from '../app/guards.js'</span>
|
|
302
304
|
|
|
@@ -378,24 +380,25 @@ const PLACEHOLDER_SRC = <span class="cstat-no" title="statement not covered" >'h
|
|
|
378
380
|
<span class="cstat-no" title="statement not covered" > sendSrcset(id, img)</span>
|
|
379
381
|
}
|
|
380
382
|
})
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
<span class="cstat-no" title="statement not covered" >
|
|
384
|
-
<span class="cstat-no" title="statement not covered" >
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
<span class="cstat-no" title="statement not covered" >
|
|
388
|
-
<span class="cstat-no" title="statement not covered" >
|
|
389
|
-
|
|
390
|
-
<span class="cstat-no" title="statement not covered" >
|
|
391
|
-
<span class="cstat-no" title="statement not covered" >
|
|
392
|
-
|
|
393
|
-
<span class="cstat-no" title="statement not covered" >
|
|
394
|
-
<span class="cstat-no" title="statement not covered" >
|
|
383
|
+
const observer = <span class="cstat-no" title="statement not covered" >createMutationObserver(</span>
|
|
384
|
+
app.safe(<span class="fstat-no" title="function not covered" >(m</span>utations) => {
|
|
385
|
+
<span class="cstat-no" title="statement not covered" > for (const mutation of mutations) {</span>
|
|
386
|
+
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (mutation.type === 'attributes') {</span>
|
|
387
|
+
const target = <span class="cstat-no" title="statement not covered" >mutation.target as HTMLImageElement</span>
|
|
388
|
+
const id = <span class="cstat-no" title="statement not covered" >app.nodes.getID(target)</span>
|
|
389
|
+
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (id === undefined) {</span>
|
|
390
|
+
<span class="cstat-no" title="statement not covered" > return</span>
|
|
391
|
+
}
|
|
392
|
+
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (mutation.attributeName === 'src') {</span>
|
|
393
|
+
<span class="cstat-no" title="statement not covered" > sendSrc(id, target)</span>
|
|
394
|
+
}
|
|
395
|
+
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (mutation.attributeName === 'srcset') {</span>
|
|
396
|
+
<span class="cstat-no" title="statement not covered" > sendSrcset(id, target)</span>
|
|
397
|
+
}
|
|
395
398
|
}
|
|
396
399
|
}
|
|
397
|
-
}
|
|
398
|
-
|
|
400
|
+
}) as MutationCallback,
|
|
401
|
+
)
|
|
399
402
|
|
|
400
403
|
<span class="cstat-no" title="statement not covered" > app.attachStopCallback(<span class="fstat-no" title="function not covered" >() =</span>> {</span>
|
|
401
404
|
<span class="cstat-no" title="statement not covered" > observer.disconnect()</span>
|
|
@@ -418,7 +421,7 @@ const PLACEHOLDER_SRC = <span class="cstat-no" title="statement not covered" >'h
|
|
|
418
421
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
419
422
|
Code coverage generated by
|
|
420
423
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
421
|
-
at 2023-
|
|
424
|
+
at 2023-11-03T09:39:08.430Z
|
|
422
425
|
</div>
|
|
423
426
|
<script src="../../prettify.js"></script>
|
|
424
427
|
<script>
|
|
@@ -25,28 +25,28 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/
|
|
28
|
+
<span class='fraction'>0/1152</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/588</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>0/
|
|
42
|
+
<span class='fraction'>0/216</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/
|
|
49
|
+
<span class='fraction'>0/1113</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
<td data-value="0" class="pct low">0%</td>
|
|
91
91
|
<td data-value="6" class="abs low">0/6</td>
|
|
92
92
|
<td data-value="0" class="pct low">0%</td>
|
|
93
|
-
<td data-value="
|
|
93
|
+
<td data-value="22" class="abs low">0/22</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
<tr>
|
|
@@ -144,13 +144,13 @@
|
|
|
144
144
|
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
145
145
|
</td>
|
|
146
146
|
<td data-value="0" class="pct low">0%</td>
|
|
147
|
-
<td data-value="
|
|
147
|
+
<td data-value="80" class="abs low">0/80</td>
|
|
148
148
|
<td data-value="0" class="pct low">0%</td>
|
|
149
|
-
<td data-value="
|
|
149
|
+
<td data-value="19" class="abs low">0/19</td>
|
|
150
150
|
<td data-value="0" class="pct low">0%</td>
|
|
151
151
|
<td data-value="14" class="abs low">0/14</td>
|
|
152
152
|
<td data-value="0" class="pct low">0%</td>
|
|
153
|
-
<td data-value="
|
|
153
|
+
<td data-value="79" class="abs low">0/79</td>
|
|
154
154
|
</tr>
|
|
155
155
|
|
|
156
156
|
<tr>
|
|
@@ -354,13 +354,13 @@
|
|
|
354
354
|
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
355
355
|
</td>
|
|
356
356
|
<td data-value="0" class="pct low">0%</td>
|
|
357
|
-
<td data-value="
|
|
357
|
+
<td data-value="117" class="abs low">0/117</td>
|
|
358
358
|
<td data-value="0" class="pct low">0%</td>
|
|
359
|
-
<td data-value="
|
|
359
|
+
<td data-value="111" class="abs low">0/111</td>
|
|
360
360
|
<td data-value="0" class="pct low">0%</td>
|
|
361
|
-
<td data-value="
|
|
361
|
+
<td data-value="12" class="abs low">0/12</td>
|
|
362
362
|
<td data-value="0" class="pct low">0%</td>
|
|
363
|
-
<td data-value="
|
|
363
|
+
<td data-value="110" class="abs low">0/110</td>
|
|
364
364
|
</tr>
|
|
365
365
|
|
|
366
366
|
<tr>
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
387
387
|
Code coverage generated by
|
|
388
388
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
389
|
-
at 2023-
|
|
389
|
+
at 2023-11-03T09:39:08.430Z
|
|
390
390
|
</div>
|
|
391
391
|
<script src="../../prettify.js"></script>
|
|
392
392
|
<script>
|
|
@@ -811,7 +811,7 @@ export interface Options {
|
|
|
811
811
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
812
812
|
Code coverage generated by
|
|
813
813
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
814
|
-
at 2023-
|
|
814
|
+
at 2023-11-03T09:39:08.430Z
|
|
815
815
|
</div>
|
|
816
816
|
<script src="../../prettify.js"></script>
|
|
817
817
|
<script>
|
|
@@ -811,7 +811,7 @@ export interface MouseHandlerOptions {
|
|
|
811
811
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
812
812
|
Code coverage generated by
|
|
813
813
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
814
|
-
at 2023-
|
|
814
|
+
at 2023-11-03T09:39:08.430Z
|
|
815
815
|
</div>
|
|
816
816
|
<script src="../../prettify.js"></script>
|
|
817
817
|
<script>
|
|
@@ -825,7 +825,7 @@ export interface Options {
|
|
|
825
825
|
sessionTokenHeader: false,
|
|
826
826
|
captureInIframes: true,
|
|
827
827
|
axiosInstances: undefined,
|
|
828
|
-
useProxy:
|
|
828
|
+
useProxy: true,
|
|
829
829
|
},
|
|
830
830
|
opts,
|
|
831
831
|
)
|
|
@@ -1108,7 +1108,7 @@ export interface Options {
|
|
|
1108
1108
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1109
1109
|
Code coverage generated by
|
|
1110
1110
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1111
|
-
at 2023-
|
|
1111
|
+
at 2023-11-03T09:39:08.430Z
|
|
1112
1112
|
</div>
|
|
1113
1113
|
<script src="../../prettify.js"></script>
|
|
1114
1114
|
<script>
|
|
@@ -352,7 +352,7 @@ export interface Options {
|
|
|
352
352
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
353
353
|
Code coverage generated by
|
|
354
354
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
355
|
-
at 2023-
|
|
355
|
+
at 2023-11-03T09:39:08.430Z
|
|
356
356
|
</div>
|
|
357
357
|
<script src="../../prettify.js"></script>
|
|
358
358
|
<script>
|
|
@@ -349,7 +349,7 @@ function <span class="fstat-no" title="function not covered" >getDocumentScroll(
|
|
|
349
349
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
350
350
|
Code coverage generated by
|
|
351
351
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
352
|
-
at 2023-
|
|
352
|
+
at 2023-11-03T09:39:08.430Z
|
|
353
353
|
</div>
|
|
354
354
|
<script src="../../prettify.js"></script>
|
|
355
355
|
<script>
|
|
@@ -187,7 +187,7 @@ function <span class="fstat-no" title="function not covered" >selection(</span>a
|
|
|
187
187
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
188
188
|
Code coverage generated by
|
|
189
189
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
190
|
-
at 2023-
|
|
190
|
+
at 2023-11-03T09:39:08.430Z
|
|
191
191
|
</div>
|
|
192
192
|
<script src="../../prettify.js"></script>
|
|
193
193
|
<script>
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
110
110
|
Code coverage generated by
|
|
111
111
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
112
|
-
at 2023-
|
|
112
|
+
at 2023-11-03T09:39:08.430Z
|
|
113
113
|
</div>
|
|
114
114
|
<script src="../../prettify.js"></script>
|
|
115
115
|
<script>
|
|
@@ -25,28 +25,28 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/
|
|
28
|
+
<span class='fraction'>0/117</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/111</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>0/
|
|
42
|
+
<span class='fraction'>0/12</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/
|
|
49
|
+
<span class='fraction'>0/110</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -315,7 +315,19 @@
|
|
|
315
315
|
<a name='L250'></a><a href='#L250'>250</a>
|
|
316
316
|
<a name='L251'></a><a href='#L251'>251</a>
|
|
317
317
|
<a name='L252'></a><a href='#L252'>252</a>
|
|
318
|
-
<a name='L253'></a><a href='#L253'>253</a
|
|
318
|
+
<a name='L253'></a><a href='#L253'>253</a>
|
|
319
|
+
<a name='L254'></a><a href='#L254'>254</a>
|
|
320
|
+
<a name='L255'></a><a href='#L255'>255</a>
|
|
321
|
+
<a name='L256'></a><a href='#L256'>256</a>
|
|
322
|
+
<a name='L257'></a><a href='#L257'>257</a>
|
|
323
|
+
<a name='L258'></a><a href='#L258'>258</a>
|
|
324
|
+
<a name='L259'></a><a href='#L259'>259</a>
|
|
325
|
+
<a name='L260'></a><a href='#L260'>260</a>
|
|
326
|
+
<a name='L261'></a><a href='#L261'>261</a>
|
|
327
|
+
<a name='L262'></a><a href='#L262'>262</a>
|
|
328
|
+
<a name='L263'></a><a href='#L263'>263</a>
|
|
329
|
+
<a name='L264'></a><a href='#L264'>264</a>
|
|
330
|
+
<a name='L265'></a><a href='#L265'>265</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
319
331
|
<span class="cline-any cline-no"> </span>
|
|
320
332
|
<span class="cline-any cline-no"> </span>
|
|
321
333
|
<span class="cline-any cline-no"> </span>
|
|
@@ -402,6 +414,7 @@
|
|
|
402
414
|
<span class="cline-any cline-neutral"> </span>
|
|
403
415
|
<span class="cline-any cline-neutral"> </span>
|
|
404
416
|
<span class="cline-any cline-neutral"> </span>
|
|
417
|
+
<span class="cline-any cline-neutral"> </span>
|
|
405
418
|
<span class="cline-any cline-no"> </span>
|
|
406
419
|
<span class="cline-any cline-no"> </span>
|
|
407
420
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -411,6 +424,7 @@
|
|
|
411
424
|
<span class="cline-any cline-neutral"> </span>
|
|
412
425
|
<span class="cline-any cline-neutral"> </span>
|
|
413
426
|
<span class="cline-any cline-neutral"> </span>
|
|
427
|
+
<span class="cline-any cline-neutral"> </span>
|
|
414
428
|
<span class="cline-any cline-no"> </span>
|
|
415
429
|
<span class="cline-any cline-no"> </span>
|
|
416
430
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -426,6 +440,16 @@
|
|
|
426
440
|
<span class="cline-any cline-no"> </span>
|
|
427
441
|
<span class="cline-any cline-neutral"> </span>
|
|
428
442
|
<span class="cline-any cline-no"> </span>
|
|
443
|
+
<span class="cline-any cline-no"> </span>
|
|
444
|
+
<span class="cline-any cline-no"> </span>
|
|
445
|
+
<span class="cline-any cline-no"> </span>
|
|
446
|
+
<span class="cline-any cline-no"> </span>
|
|
447
|
+
<span class="cline-any cline-neutral"> </span>
|
|
448
|
+
<span class="cline-any cline-neutral"> </span>
|
|
449
|
+
<span class="cline-any cline-no"> </span>
|
|
450
|
+
<span class="cline-any cline-no"> </span>
|
|
451
|
+
<span class="cline-any cline-neutral"> </span>
|
|
452
|
+
<span class="cline-any cline-no"> </span>
|
|
429
453
|
<span class="cline-any cline-neutral"> </span>
|
|
430
454
|
<span class="cline-any cline-neutral"> </span>
|
|
431
455
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -652,6 +676,7 @@ export interface Options {
|
|
|
652
676
|
captureResourceTimings: boolean
|
|
653
677
|
capturePageLoadTimings: boolean
|
|
654
678
|
capturePageRenderTimings: boolean
|
|
679
|
+
excludedResourceUrls?: Array<string>
|
|
655
680
|
}
|
|
656
681
|
|
|
657
682
|
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >export default function (a</span></span>pp: App, opts: Partial<Options>): void {
|
|
@@ -660,6 +685,7 @@ export interface Options {
|
|
|
660
685
|
captureResourceTimings: true,
|
|
661
686
|
capturePageLoadTimings: true,
|
|
662
687
|
capturePageRenderTimings: true,
|
|
688
|
+
excludedResourceUrls: [],
|
|
663
689
|
},
|
|
664
690
|
opts,
|
|
665
691
|
)
|
|
@@ -677,6 +703,16 @@ export interface Options {
|
|
|
677
703
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (resources !== null) {</span>
|
|
678
704
|
<span class="cstat-no" title="statement not covered" > resources[entry.name] = entry.startTime + entry.duration</span>
|
|
679
705
|
}
|
|
706
|
+
let shouldSkip = <span class="cstat-no" title="statement not covered" >false</span>
|
|
707
|
+
<span class="cstat-no" title="statement not covered" > options.excludedResourceUrls?.forEach(<span class="fstat-no" title="function not covered" >(u</span>rl) => {</span>
|
|
708
|
+
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (entry.name.startsWith(url)) {</span>
|
|
709
|
+
<span class="cstat-no" title="statement not covered" > shouldSkip = true</span>
|
|
710
|
+
<span class="cstat-no" title="statement not covered" > return</span>
|
|
711
|
+
}
|
|
712
|
+
})
|
|
713
|
+
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (shouldSkip) {</span>
|
|
714
|
+
<span class="cstat-no" title="statement not covered" > return</span>
|
|
715
|
+
}
|
|
680
716
|
<span class="cstat-no" title="statement not covered" > app.send(</span>
|
|
681
717
|
ResourceTiming(
|
|
682
718
|
entry.startTime + getTimeOrigin(),
|
|
@@ -826,7 +862,7 @@ export interface Options {
|
|
|
826
862
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
827
863
|
Code coverage generated by
|
|
828
864
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
829
|
-
at 2023-
|
|
865
|
+
at 2023-11-03T09:39:08.430Z
|
|
830
866
|
</div>
|
|
831
867
|
<script src="../../prettify.js"></script>
|
|
832
868
|
<script>
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
236
236
|
Code coverage generated by
|
|
237
237
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
238
|
-
at 2023-
|
|
238
|
+
at 2023-11-03T09:39:08.430Z
|
|
239
239
|
</div>
|
|
240
240
|
<script src="../../prettify.js"></script>
|
|
241
241
|
<script>
|