@openreplay/tracker 11.0.2 → 11.0.4
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/CHANGELOG.md +6 -1
- package/cjs/app/canvas.js +9 -7
- package/cjs/app/index.js +7 -6
- package/cjs/app/observer/iframe_observer.js +1 -1
- package/cjs/app/observer/shadow_root_observer.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/modules/Network/xhrProxy.js +1 -1
- package/coverage/clover.xml +507 -722
- package/coverage/coverage-final.json +10 -10
- package/coverage/lcov-report/index.html +32 -32
- package/coverage/lcov-report/main/app/canvas.ts.html +8 -14
- package/coverage/lcov-report/main/app/guards.ts.html +1 -1
- package/coverage/lcov-report/main/app/index.html +14 -14
- package/coverage/lcov-report/main/app/index.ts.html +106 -826
- package/coverage/lcov-report/main/app/logger.ts.html +1 -1
- package/coverage/lcov-report/main/app/messages.gen.ts.html +62 -5
- package/coverage/lcov-report/main/app/nodes.ts.html +1 -1
- package/coverage/lcov-report/main/app/observer/iframe_observer.ts.html +2 -2
- 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 +2 -2
- package/coverage/lcov-report/main/app/observer/top_observer.ts.html +1 -1
- package/coverage/lcov-report/main/app/sanitizer.ts.html +1 -1
- package/coverage/lcov-report/main/app/session.ts.html +1 -1
- package/coverage/lcov-report/main/app/ticker.ts.html +1 -1
- package/coverage/lcov-report/main/index.html +9 -9
- package/coverage/lcov-report/main/index.ts.html +118 -223
- package/coverage/lcov-report/main/modules/Network/beaconProxy.ts.html +1 -1
- package/coverage/lcov-report/main/modules/Network/fetchProxy.ts.html +21 -6
- package/coverage/lcov-report/main/modules/Network/index.html +6 -6
- package/coverage/lcov-report/main/modules/Network/index.ts.html +1 -1
- package/coverage/lcov-report/main/modules/Network/networkMessage.ts.html +1 -1
- package/coverage/lcov-report/main/modules/Network/utils.ts.html +1 -1
- package/coverage/lcov-report/main/modules/Network/xhrProxy.ts.html +3 -3
- package/coverage/lcov-report/main/modules/attributeSender.ts.html +1 -1
- package/coverage/lcov-report/main/modules/axiosSpy.ts.html +1 -1
- package/coverage/lcov-report/main/modules/conditionsManager.ts.html +680 -179
- 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 +1 -1
- 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 +7 -10
- 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 +1 -1
- package/coverage/lcov-report/main/modules/index.html +27 -27
- 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 +1 -1
- 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/tagWatcher.ts.html +250 -0
- package/coverage/lcov-report/main/modules/timing.ts.html +1 -1
- package/coverage/lcov-report/main/modules/userTesting/SignalManager.ts.html +1 -1
- package/coverage/lcov-report/main/modules/userTesting/dnd.ts.html +1 -1
- package/coverage/lcov-report/main/modules/userTesting/index.html +1 -1
- package/coverage/lcov-report/main/modules/userTesting/index.ts.html +1 -1
- package/coverage/lcov-report/main/modules/userTesting/recorder.ts.html +1 -1
- package/coverage/lcov-report/main/modules/userTesting/styles.ts.html +1 -1
- package/coverage/lcov-report/main/modules/userTesting/utils.ts.html +1 -1
- package/coverage/lcov-report/main/modules/viewport.ts.html +1 -1
- package/coverage/lcov-report/main/utils.ts.html +1 -1
- package/coverage/lcov-report/webworker/BatchWriter.ts.html +1 -1
- package/coverage/lcov-report/webworker/MessageEncoder.gen.ts.html +17 -5
- 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 +10 -10
- package/coverage/lcov-report/webworker/index.ts.html +16 -22
- package/coverage/lcov.info +986 -1371
- package/lib/app/canvas.js +9 -7
- package/lib/app/index.js +7 -6
- package/lib/app/observer/iframe_observer.js +1 -1
- package/lib/app/observer/shadow_root_observer.js +1 -1
- package/lib/index.js +1 -1
- package/lib/modules/Network/xhrProxy.js +1 -1
- package/package.json +1 -1
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
177
177
|
Code coverage generated by
|
|
178
178
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
179
|
-
at
|
|
179
|
+
at 2024-01-09T10:19:51.427Z
|
|
180
180
|
</div>
|
|
181
181
|
<script src="../../../prettify.js"></script>
|
|
182
182
|
<script>
|
|
@@ -1894,7 +1894,7 @@ interface Test {
|
|
|
1894
1894
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1895
1895
|
Code coverage generated by
|
|
1896
1896
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1897
|
-
at
|
|
1897
|
+
at 2024-01-09T10:19:51.427Z
|
|
1898
1898
|
</div>
|
|
1899
1899
|
<script src="../../../prettify.js"></script>
|
|
1900
1900
|
<script>
|
|
@@ -415,7 +415,7 @@ export const <span class="cstat-no" title="statement not covered" >Quality = {</
|
|
|
415
415
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
416
416
|
Code coverage generated by
|
|
417
417
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
418
|
-
at
|
|
418
|
+
at 2024-01-09T10:19:51.427Z
|
|
419
419
|
</div>
|
|
420
420
|
<script src="../../../prettify.js"></script>
|
|
421
421
|
<script>
|
|
@@ -922,7 +922,7 @@ export const <span class="cstat-no" title="statement not covered" >spinnerStyles
|
|
|
922
922
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
923
923
|
Code coverage generated by
|
|
924
924
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
925
|
-
at
|
|
925
|
+
at 2024-01-09T10:19:51.427Z
|
|
926
926
|
</div>
|
|
927
927
|
<script src="../../../prettify.js"></script>
|
|
928
928
|
<script>
|
|
@@ -349,7 +349,7 @@ export const <span class="cstat-no" title="statement not covered" >TEST_ID = 'or
|
|
|
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
|
|
352
|
+
at 2024-01-09T10:19:51.427Z
|
|
353
353
|
</div>
|
|
354
354
|
<script src="../../../prettify.js"></script>
|
|
355
355
|
<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
|
|
238
|
+
at 2024-01-09T10:19:51.427Z
|
|
239
239
|
</div>
|
|
240
240
|
<script src="../../prettify.js"></script>
|
|
241
241
|
<script>
|
|
@@ -649,7 +649,7 @@ function <span class="fstat-no" title="function not covered" >dec2hex(</span>dec
|
|
|
649
649
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
650
650
|
Code coverage generated by
|
|
651
651
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
652
|
-
at
|
|
652
|
+
at 2024-01-09T10:19:51.427Z
|
|
653
653
|
</div>
|
|
654
654
|
<script src="../prettify.js"></script>
|
|
655
655
|
<script>
|
|
@@ -466,7 +466,7 @@ const MAX_M_SIZE = <span class="cstat-no" title="statement not covered" >(1 <
|
|
|
466
466
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
467
467
|
Code coverage generated by
|
|
468
468
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
469
|
-
at
|
|
469
|
+
at 2024-01-09T10:19:51.427Z
|
|
470
470
|
</div>
|
|
471
471
|
<script src="../prettify.js"></script>
|
|
472
472
|
<script>
|
|
@@ -25,14 +25,14 @@
|
|
|
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/145</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/279</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -46,7 +46,7 @@
|
|
|
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/145</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -359,7 +359,11 @@
|
|
|
359
359
|
<a name='L294'></a><a href='#L294'>294</a>
|
|
360
360
|
<a name='L295'></a><a href='#L295'>295</a>
|
|
361
361
|
<a name='L296'></a><a href='#L296'>296</a>
|
|
362
|
-
<a name='L297'></a><a href='#L297'>297</a
|
|
362
|
+
<a name='L297'></a><a href='#L297'>297</a>
|
|
363
|
+
<a name='L298'></a><a href='#L298'>298</a>
|
|
364
|
+
<a name='L299'></a><a href='#L299'>299</a>
|
|
365
|
+
<a name='L300'></a><a href='#L300'>300</a>
|
|
366
|
+
<a name='L301'></a><a href='#L301'>301</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
363
367
|
<span class="cline-any cline-neutral"> </span>
|
|
364
368
|
<span class="cline-any cline-neutral"> </span>
|
|
365
369
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -652,6 +656,10 @@
|
|
|
652
656
|
<span class="cline-any cline-no"> </span>
|
|
653
657
|
<span class="cline-any cline-neutral"> </span>
|
|
654
658
|
<span class="cline-any cline-neutral"> </span>
|
|
659
|
+
<span class="cline-any cline-no"> </span>
|
|
660
|
+
<span class="cline-any cline-no"> </span>
|
|
661
|
+
<span class="cline-any cline-neutral"> </span>
|
|
662
|
+
<span class="cline-any cline-neutral"> </span>
|
|
655
663
|
<span class="cline-any cline-neutral"> </span>
|
|
656
664
|
<span class="cline-any cline-neutral"> </span>
|
|
657
665
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -914,6 +922,10 @@ import Message from '../common/messages.gen.js'
|
|
|
914
922
|
case Messages.Type.NetworkRequest:
|
|
915
923
|
<span class="cstat-no" title="statement not covered" > return this.string(msg[1]) && this.string(msg[2]) && this.string(msg[3]) && this.string(msg[4]) && this.string(msg[5]) && this.uint(msg[6]) && this.uint(msg[7]) && this.uint(msg[8]) && this.uint(msg[9])</span>
|
|
916
924
|
<span class="cstat-no" title="statement not covered" > break</span>
|
|
925
|
+
|
|
926
|
+
case Messages.Type.WSChannel:
|
|
927
|
+
<span class="cstat-no" title="statement not covered" > return this.string(msg[1]) && this.string(msg[2]) && this.string(msg[3]) && this.uint(msg[4]) && this.string(msg[5]) && this.string(msg[6])</span>
|
|
928
|
+
<span class="cstat-no" title="statement not covered" > break</span>
|
|
917
929
|
|
|
918
930
|
case Messages.Type.InputChange:
|
|
919
931
|
<span class="cstat-no" title="statement not covered" > return this.uint(msg[1]) && this.string(msg[2]) && this.boolean(msg[3]) && this.string(msg[4]) && this.int(msg[5]) && this.int(msg[6])</span>
|
|
@@ -958,7 +970,7 @@ import Message from '../common/messages.gen.js'
|
|
|
958
970
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
959
971
|
Code coverage generated by
|
|
960
972
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
961
|
-
at
|
|
973
|
+
at 2024-01-09T10:19:51.427Z
|
|
962
974
|
</div>
|
|
963
975
|
<script src="../prettify.js"></script>
|
|
964
976
|
<script>
|
|
@@ -421,7 +421,7 @@ const textEncoder: { encode(str: string): Uint8Array } =
|
|
|
421
421
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
422
422
|
Code coverage generated by
|
|
423
423
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
424
|
-
at
|
|
424
|
+
at 2024-01-09T10:19:51.427Z
|
|
425
425
|
</div>
|
|
426
426
|
<script src="../prettify.js"></script>
|
|
427
427
|
<script>
|
|
@@ -490,7 +490,7 @@ const KEEPALIVE_SIZE_LIMIT = <span class="cstat-no" title="statement not covered
|
|
|
490
490
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
491
491
|
Code coverage generated by
|
|
492
492
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
493
|
-
at
|
|
493
|
+
at 2024-01-09T10:19:51.427Z
|
|
494
494
|
</div>
|
|
495
495
|
<script src="../prettify.js"></script>
|
|
496
496
|
<script>
|
|
@@ -25,14 +25,14 @@
|
|
|
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/447</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/375</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -46,7 +46,7 @@
|
|
|
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/440</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -99,13 +99,13 @@
|
|
|
99
99
|
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
100
100
|
</td>
|
|
101
101
|
<td data-value="0" class="pct low">0%</td>
|
|
102
|
-
<td data-value="
|
|
102
|
+
<td data-value="145" class="abs low">0/145</td>
|
|
103
103
|
<td data-value="0" class="pct low">0%</td>
|
|
104
|
-
<td data-value="
|
|
104
|
+
<td data-value="279" class="abs low">0/279</td>
|
|
105
105
|
<td data-value="0" class="pct low">0%</td>
|
|
106
106
|
<td data-value="1" class="abs low">0/1</td>
|
|
107
107
|
<td data-value="0" class="pct low">0%</td>
|
|
108
|
-
<td data-value="
|
|
108
|
+
<td data-value="145" class="abs low">0/145</td>
|
|
109
109
|
</tr>
|
|
110
110
|
|
|
111
111
|
<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="97" class="abs low">0/97</td>
|
|
148
148
|
<td data-value="0" class="pct low">0%</td>
|
|
149
|
-
<td data-value="
|
|
149
|
+
<td data-value="33" class="abs low">0/33</td>
|
|
150
150
|
<td data-value="0" class="pct low">0%</td>
|
|
151
151
|
<td data-value="16" class="abs low">0/16</td>
|
|
152
152
|
<td data-value="0" class="pct low">0%</td>
|
|
153
|
-
<td data-value="
|
|
153
|
+
<td data-value="95" class="abs low">0/95</td>
|
|
154
154
|
</tr>
|
|
155
155
|
|
|
156
156
|
</tbody>
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
162
162
|
Code coverage generated by
|
|
163
163
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
164
|
-
at
|
|
164
|
+
at 2024-01-09T10:19:51.427Z
|
|
165
165
|
</div>
|
|
166
166
|
<script src="../prettify.js"></script>
|
|
167
167
|
<script>
|
|
@@ -25,14 +25,14 @@
|
|
|
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/97</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/33</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -46,7 +46,7 @@
|
|
|
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/95</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -244,9 +244,7 @@
|
|
|
244
244
|
<a name='L179'></a><a href='#L179'>179</a>
|
|
245
245
|
<a name='L180'></a><a href='#L180'>180</a>
|
|
246
246
|
<a name='L181'></a><a href='#L181'>181</a>
|
|
247
|
-
<a name='L182'></a><a href='#L182'>182</a>
|
|
248
|
-
<a name='L183'></a><a href='#L183'>183</a>
|
|
249
|
-
<a name='L184'></a><a href='#L184'>184</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
247
|
+
<a name='L182'></a><a href='#L182'>182</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
250
248
|
<span class="cline-any cline-neutral"> </span>
|
|
251
249
|
<span class="cline-any cline-neutral"> </span>
|
|
252
250
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -316,7 +314,6 @@
|
|
|
316
314
|
<span class="cline-any cline-no"> </span>
|
|
317
315
|
<span class="cline-any cline-neutral"> </span>
|
|
318
316
|
<span class="cline-any cline-neutral"> </span>
|
|
319
|
-
<span class="cline-any cline-neutral"> </span>
|
|
320
317
|
<span class="cline-any cline-no"> </span>
|
|
321
318
|
<span class="cline-any cline-no"> </span>
|
|
322
319
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -357,6 +354,7 @@
|
|
|
357
354
|
<span class="cline-any cline-neutral"> </span>
|
|
358
355
|
<span class="cline-any cline-no"> </span>
|
|
359
356
|
<span class="cline-any cline-no"> </span>
|
|
357
|
+
<span class="cline-any cline-no"> </span>
|
|
360
358
|
<span class="cline-any cline-neutral"> </span>
|
|
361
359
|
<span class="cline-any cline-no"> </span>
|
|
362
360
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -400,11 +398,9 @@
|
|
|
400
398
|
<span class="cline-any cline-neutral"> </span>
|
|
401
399
|
<span class="cline-any cline-neutral"> </span>
|
|
402
400
|
<span class="cline-any cline-neutral"> </span>
|
|
403
|
-
<span class="cline-any cline-neutral"> </span>
|
|
404
401
|
<span class="cline-any cline-no"> </span>
|
|
405
402
|
<span class="cline-any cline-neutral"> </span>
|
|
406
403
|
<span class="cline-any cline-neutral"> </span>
|
|
407
|
-
<span class="cline-any cline-neutral"> </span>
|
|
408
404
|
<span class="cline-any cline-no"> </span>
|
|
409
405
|
<span class="cline-any cline-no"> </span>
|
|
410
406
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -498,7 +494,6 @@ function <span class="fstat-no" title="function not covered" >initiateRestart(</
|
|
|
498
494
|
<span class="cstat-no" title="statement not covered" > postMessage('restart')</span>
|
|
499
495
|
<span class="cstat-no" title="statement not covered" > reset()</span>
|
|
500
496
|
}
|
|
501
|
-
|
|
502
497
|
function <span class="fstat-no" title="function not covered" >initiateFailure(</span>reason: string): void {
|
|
503
498
|
<span class="cstat-no" title="statement not covered" > postMessage({ type: 'failure', reason })</span>
|
|
504
499
|
<span class="cstat-no" title="statement not covered" > reset()</span>
|
|
@@ -524,7 +519,7 @@ let restartTimeoutID: ReturnType<typeof setTimeout>
|
|
|
524
519
|
}
|
|
525
520
|
|
|
526
521
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (Array.isArray(data)) {</span>
|
|
527
|
-
<span class="cstat-no" title="statement not covered" > if (writer) {</span>
|
|
522
|
+
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (writer !== null) {</span>
|
|
528
523
|
const w = <span class="cstat-no" title="statement not covered" >writer</span>
|
|
529
524
|
<span class="cstat-no" title="statement not covered" > data.forEach(<span class="fstat-no" title="function not covered" >(m</span>essage) => {</span>
|
|
530
525
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (message[0] === MType.SetPageVisibility) {</span>
|
|
@@ -537,7 +532,8 @@ let restartTimeoutID: ReturnType<typeof setTimeout>
|
|
|
537
532
|
}
|
|
538
533
|
<span class="cstat-no" title="statement not covered" > w.writeMessage(message)</span>
|
|
539
534
|
})
|
|
540
|
-
}
|
|
535
|
+
}
|
|
536
|
+
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (!writer) {</span>
|
|
541
537
|
<span class="cstat-no" title="statement not covered" > postMessage('not_init')</span>
|
|
542
538
|
<span class="cstat-no" title="statement not covered" > initiateRestart()</span>
|
|
543
539
|
}
|
|
@@ -546,19 +542,19 @@ let restartTimeoutID: ReturnType<typeof setTimeout>
|
|
|
546
542
|
|
|
547
543
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (data.type === 'compressed') {</span>
|
|
548
544
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (!sender) {</span>
|
|
549
|
-
<span class="cstat-no" title="statement not covered" > console.debug('WebWorker: sender not initialised. Compressed batch.')</span>
|
|
545
|
+
<span class="cstat-no" title="statement not covered" > console.debug('OR WebWorker: sender not initialised. Compressed batch.')</span>
|
|
550
546
|
<span class="cstat-no" title="statement not covered" > initiateRestart()</span>
|
|
551
547
|
<span class="cstat-no" title="statement not covered" > return</span>
|
|
552
548
|
}
|
|
553
|
-
<span class="cstat-no" title="statement not covered" > sender.sendCompressed(data.batch)</span>
|
|
549
|
+
<span class="cstat-no" title="statement not covered" > data.batch && sender.sendCompressed(data.batch)</span>
|
|
554
550
|
}
|
|
555
551
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (data.type === 'uncompressed') {</span>
|
|
556
552
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (!sender) {</span>
|
|
557
|
-
<span class="cstat-no" title="statement not covered" > console.debug('WebWorker: sender not initialised. Uncompressed batch.')</span>
|
|
553
|
+
<span class="cstat-no" title="statement not covered" > console.debug('OR WebWorker: sender not initialised. Uncompressed batch.')</span>
|
|
558
554
|
<span class="cstat-no" title="statement not covered" > initiateRestart()</span>
|
|
559
555
|
<span class="cstat-no" title="statement not covered" > return</span>
|
|
560
556
|
}
|
|
561
|
-
<span class="cstat-no" title="statement not covered" > sender.sendUncompressed(data.batch)</span>
|
|
557
|
+
<span class="cstat-no" title="statement not covered" > data.batch && sender.sendUncompressed(data.batch)</span>
|
|
562
558
|
}
|
|
563
559
|
|
|
564
560
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (data.type === 'start') {</span>
|
|
@@ -583,9 +579,7 @@ let restartTimeoutID: ReturnType<typeof setTimeout>
|
|
|
583
579
|
data.pageNo,
|
|
584
580
|
data.timestamp,
|
|
585
581
|
data.url,
|
|
586
|
-
<span class="fstat-no" title="function not covered" > (b</span>atch) =>
|
|
587
|
-
<span class="cstat-no" title="statement not covered" > sender && sender.push(batch)</span>
|
|
588
|
-
},
|
|
582
|
+
<span class="fstat-no" title="function not covered" > (b</span>atch) => <span class="cstat-no" title="statement not covered" >sender && sender.push(batch),</span>
|
|
589
583
|
data.tabId,
|
|
590
584
|
)
|
|
591
585
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (sendIntervalID === null) {</span>
|
|
@@ -596,13 +590,13 @@ let restartTimeoutID: ReturnType<typeof setTimeout>
|
|
|
596
590
|
|
|
597
591
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (data.type === 'auth') {</span>
|
|
598
592
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (!sender) {</span>
|
|
599
|
-
<span class="cstat-no" title="statement not covered" > console.debug('WebWorker: sender not initialised. Received auth.')</span>
|
|
593
|
+
<span class="cstat-no" title="statement not covered" > console.debug('OR WebWorker: sender not initialised. Received auth.')</span>
|
|
600
594
|
<span class="cstat-no" title="statement not covered" > initiateRestart()</span>
|
|
601
595
|
<span class="cstat-no" title="statement not covered" > return</span>
|
|
602
596
|
}
|
|
603
597
|
|
|
604
598
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (!writer) {</span>
|
|
605
|
-
<span class="cstat-no" title="statement not covered" > console.debug('WebWorker: writer not initialised. Received auth.')</span>
|
|
599
|
+
<span class="cstat-no" title="statement not covered" > console.debug('OR WebWorker: writer not initialised. Received auth.')</span>
|
|
606
600
|
<span class="cstat-no" title="statement not covered" > initiateRestart()</span>
|
|
607
601
|
<span class="cstat-no" title="statement not covered" > return</span>
|
|
608
602
|
}
|
|
@@ -619,7 +613,7 @@ let restartTimeoutID: ReturnType<typeof setTimeout>
|
|
|
619
613
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
620
614
|
Code coverage generated by
|
|
621
615
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
622
|
-
at
|
|
616
|
+
at 2024-01-09T10:19:51.427Z
|
|
623
617
|
</div>
|
|
624
618
|
<script src="../prettify.js"></script>
|
|
625
619
|
<script>
|