@openreplay/tracker 11.0.3 → 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.
Files changed (71) hide show
  1. package/cjs/app/canvas.js +5 -1
  2. package/cjs/app/index.js +1 -1
  3. package/cjs/index.js +1 -1
  4. package/coverage/clover.xml +548 -810
  5. package/coverage/coverage-final.json +10 -10
  6. package/coverage/lcov-report/index.html +32 -32
  7. package/coverage/lcov-report/main/app/canvas.ts.html +8 -14
  8. package/coverage/lcov-report/main/app/guards.ts.html +1 -1
  9. package/coverage/lcov-report/main/app/index.html +14 -14
  10. package/coverage/lcov-report/main/app/index.ts.html +108 -834
  11. package/coverage/lcov-report/main/app/logger.ts.html +1 -1
  12. package/coverage/lcov-report/main/app/messages.gen.ts.html +62 -5
  13. package/coverage/lcov-report/main/app/nodes.ts.html +1 -1
  14. package/coverage/lcov-report/main/app/observer/iframe_observer.ts.html +2 -2
  15. package/coverage/lcov-report/main/app/observer/iframe_offsets.ts.html +1 -1
  16. package/coverage/lcov-report/main/app/observer/index.html +1 -1
  17. package/coverage/lcov-report/main/app/observer/shadow_root_observer.ts.html +2 -2
  18. package/coverage/lcov-report/main/app/observer/top_observer.ts.html +1 -1
  19. package/coverage/lcov-report/main/app/sanitizer.ts.html +1 -1
  20. package/coverage/lcov-report/main/app/session.ts.html +1 -1
  21. package/coverage/lcov-report/main/app/ticker.ts.html +1 -1
  22. package/coverage/lcov-report/main/index.html +9 -9
  23. package/coverage/lcov-report/main/index.ts.html +118 -223
  24. package/coverage/lcov-report/main/modules/Network/beaconProxy.ts.html +1 -1
  25. package/coverage/lcov-report/main/modules/Network/fetchProxy.ts.html +21 -6
  26. package/coverage/lcov-report/main/modules/Network/index.html +6 -6
  27. package/coverage/lcov-report/main/modules/Network/index.ts.html +1 -1
  28. package/coverage/lcov-report/main/modules/Network/networkMessage.ts.html +1 -1
  29. package/coverage/lcov-report/main/modules/Network/utils.ts.html +1 -1
  30. package/coverage/lcov-report/main/modules/Network/xhrProxy.ts.html +3 -3
  31. package/coverage/lcov-report/main/modules/attributeSender.ts.html +1 -1
  32. package/coverage/lcov-report/main/modules/axiosSpy.ts.html +1 -1
  33. package/coverage/lcov-report/main/modules/connection.ts.html +1 -1
  34. package/coverage/lcov-report/main/modules/console.ts.html +1 -1
  35. package/coverage/lcov-report/main/modules/constructedStyleSheets.ts.html +1 -1
  36. package/coverage/lcov-report/main/modules/cssrules.ts.html +1 -1
  37. package/coverage/lcov-report/main/modules/exception.ts.html +1 -1
  38. package/coverage/lcov-report/main/modules/featureFlags.ts.html +7 -10
  39. package/coverage/lcov-report/main/modules/focus.ts.html +1 -1
  40. package/coverage/lcov-report/main/modules/fonts.ts.html +1 -1
  41. package/coverage/lcov-report/main/modules/img.ts.html +1 -1
  42. package/coverage/lcov-report/main/modules/index.html +27 -27
  43. package/coverage/lcov-report/main/modules/input.ts.html +1 -1
  44. package/coverage/lcov-report/main/modules/mouse.ts.html +1 -1
  45. package/coverage/lcov-report/main/modules/network.ts.html +1 -1
  46. package/coverage/lcov-report/main/modules/performance.ts.html +1 -1
  47. package/coverage/lcov-report/main/modules/scroll.ts.html +1 -1
  48. package/coverage/lcov-report/main/modules/selection.ts.html +1 -1
  49. package/coverage/lcov-report/main/modules/tabs.ts.html +1 -1
  50. package/coverage/lcov-report/main/modules/tagWatcher.ts.html +250 -0
  51. package/coverage/lcov-report/main/modules/timing.ts.html +1 -1
  52. package/coverage/lcov-report/main/modules/userTesting/SignalManager.ts.html +1 -1
  53. package/coverage/lcov-report/main/modules/userTesting/dnd.ts.html +1 -1
  54. package/coverage/lcov-report/main/modules/userTesting/index.html +1 -1
  55. package/coverage/lcov-report/main/modules/userTesting/index.ts.html +1 -1
  56. package/coverage/lcov-report/main/modules/userTesting/recorder.ts.html +1 -1
  57. package/coverage/lcov-report/main/modules/userTesting/styles.ts.html +1 -1
  58. package/coverage/lcov-report/main/modules/userTesting/utils.ts.html +1 -1
  59. package/coverage/lcov-report/main/modules/viewport.ts.html +1 -1
  60. package/coverage/lcov-report/main/utils.ts.html +1 -1
  61. package/coverage/lcov-report/webworker/BatchWriter.ts.html +1 -1
  62. package/coverage/lcov-report/webworker/MessageEncoder.gen.ts.html +17 -5
  63. package/coverage/lcov-report/webworker/PrimitiveEncoder.ts.html +1 -1
  64. package/coverage/lcov-report/webworker/QueueSender.ts.html +1 -1
  65. package/coverage/lcov-report/webworker/index.html +10 -10
  66. package/coverage/lcov-report/webworker/index.ts.html +16 -22
  67. package/coverage/lcov.info +1069 -1535
  68. package/lib/app/canvas.js +5 -1
  69. package/lib/app/index.js +1 -1
  70. package/lib/index.js +1 -1
  71. package/package.json +1 -1
@@ -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/96</span>
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/29</span>
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/94</span>
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">&nbsp;</span>
247
+ <a name='L182'></a><a href='#L182'>182</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
250
248
  <span class="cline-any cline-neutral">&nbsp;</span>
251
249
  <span class="cline-any cline-neutral">&nbsp;</span>
252
250
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -316,7 +314,6 @@
316
314
  <span class="cline-any cline-no">&nbsp;</span>
317
315
  <span class="cline-any cline-neutral">&nbsp;</span>
318
316
  <span class="cline-any cline-neutral">&nbsp;</span>
319
- <span class="cline-any cline-neutral">&nbsp;</span>
320
317
  <span class="cline-any cline-no">&nbsp;</span>
321
318
  <span class="cline-any cline-no">&nbsp;</span>
322
319
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -357,6 +354,7 @@
357
354
  <span class="cline-any cline-neutral">&nbsp;</span>
358
355
  <span class="cline-any cline-no">&nbsp;</span>
359
356
  <span class="cline-any cline-no">&nbsp;</span>
357
+ <span class="cline-any cline-no">&nbsp;</span>
360
358
  <span class="cline-any cline-neutral">&nbsp;</span>
361
359
  <span class="cline-any cline-no">&nbsp;</span>
362
360
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -400,11 +398,9 @@
400
398
  <span class="cline-any cline-neutral">&nbsp;</span>
401
399
  <span class="cline-any cline-neutral">&nbsp;</span>
402
400
  <span class="cline-any cline-neutral">&nbsp;</span>
403
- <span class="cline-any cline-neutral">&nbsp;</span>
404
401
  <span class="cline-any cline-no">&nbsp;</span>
405
402
  <span class="cline-any cline-neutral">&nbsp;</span>
406
403
  <span class="cline-any cline-neutral">&nbsp;</span>
407
- <span class="cline-any cline-neutral">&nbsp;</span>
408
404
  <span class="cline-any cline-no">&nbsp;</span>
409
405
  <span class="cline-any cline-no">&nbsp;</span>
410
406
  <span class="cline-any cline-neutral">&nbsp;</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
- &nbsp;
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&lt;typeof setTimeout&gt;
524
519
  }
525
520
  &nbsp;
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) =&gt; {</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&lt;typeof setTimeout&gt;
537
532
  }
538
533
  <span class="cstat-no" title="statement not covered" > w.writeMessage(message)</span>
539
534
  })
540
- } else {
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&lt;typeof setTimeout&gt;
546
542
  &nbsp;
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 &amp;&amp; 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 &amp;&amp; sender.sendUncompressed(data.batch)</span>
562
558
  }
563
559
  &nbsp;
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&lt;typeof setTimeout&gt;
583
579
  data.pageNo,
584
580
  data.timestamp,
585
581
  data.url,
586
- <span class="fstat-no" title="function not covered" > (b</span>atch) =&gt; {
587
- <span class="cstat-no" title="statement not covered" > sender &amp;&amp; sender.push(batch)</span>
588
- },
582
+ <span class="fstat-no" title="function not covered" > (b</span>atch) =&gt; <span class="cstat-no" title="statement not covered" >sender &amp;&amp; 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&lt;typeof setTimeout&gt;
596
590
  &nbsp;
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
  &nbsp;
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&lt;typeof setTimeout&gt;
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 2023-12-21T16:07:43.444Z
616
+ at 2024-01-09T10:19:51.427Z
623
617
  </div>
624
618
  <script src="../prettify.js"></script>
625
619
  <script>