@openreplay/tracker 11.0.0 → 11.0.2
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 +4 -0
- package/cjs/app/index.d.ts +3 -0
- package/cjs/app/index.js +27 -4
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +7 -1
- package/cjs/modules/Network/fetchProxy.js +4 -2
- package/cjs/modules/userTesting/SignalManager.d.ts +29 -0
- package/cjs/modules/userTesting/SignalManager.js +83 -0
- package/cjs/modules/userTesting/index.d.ts +5 -5
- package/cjs/modules/userTesting/index.js +156 -189
- package/cjs/modules/userTesting/styles.d.ts +28 -11
- package/cjs/modules/userTesting/styles.js +51 -29
- package/cjs/modules/userTesting/utils.d.ts +9 -0
- package/cjs/modules/userTesting/utils.js +87 -0
- package/coverage/clover.xml +1331 -562
- package/coverage/coverage-final.json +13 -6
- package/coverage/lcov-report/index.html +49 -34
- package/coverage/lcov-report/main/app/canvas.ts.html +1 -1
- package/coverage/lcov-report/main/app/guards.ts.html +42 -42
- package/coverage/lcov-report/main/app/index.html +24 -24
- package/coverage/lcov-report/main/app/index.ts.html +1046 -56
- package/coverage/lcov-report/main/app/logger.ts.html +1 -1
- package/coverage/lcov-report/main/app/messages.gen.ts.html +1 -1
- package/coverage/lcov-report/main/app/nodes.ts.html +1 -1
- 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 +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 +11 -11
- package/coverage/lcov-report/main/index.ts.html +274 -100
- package/coverage/lcov-report/main/modules/Network/beaconProxy.ts.html +1 -1
- package/coverage/lcov-report/main/modules/Network/fetchProxy.ts.html +1 -1
- package/coverage/lcov-report/main/modules/Network/index.html +1 -1
- 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 +1 -1
- 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 +799 -0
- 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 +10 -7
- 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 -12
- 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/timing.ts.html +1 -1
- package/coverage/lcov-report/main/modules/userTesting/SignalManager.ts.html +370 -0
- package/coverage/lcov-report/main/modules/userTesting/dnd.ts.html +10 -22
- package/coverage/lcov-report/main/modules/userTesting/index.html +57 -27
- package/coverage/lcov-report/main/modules/userTesting/index.ts.html +814 -115
- package/coverage/lcov-report/main/modules/userTesting/recorder.ts.html +136 -67
- package/coverage/lcov-report/main/modules/userTesting/styles.ts.html +111 -39
- package/coverage/lcov-report/main/modules/userTesting/utils.ts.html +364 -0
- package/coverage/lcov-report/main/modules/viewport.ts.html +1 -1
- package/coverage/lcov-report/main/utils.ts.html +48 -6
- 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 +5 -5
- package/coverage/lcov-report/webworker/index.ts.html +15 -9
- package/coverage/lcov.info +2306 -900
- package/lib/app/index.d.ts +3 -0
- package/lib/app/index.js +27 -4
- package/lib/index.d.ts +1 -0
- package/lib/index.js +7 -1
- package/lib/modules/Network/fetchProxy.js +4 -2
- package/lib/modules/userTesting/SignalManager.d.ts +29 -0
- package/lib/modules/userTesting/SignalManager.js +80 -0
- package/lib/modules/userTesting/index.d.ts +5 -5
- package/lib/modules/userTesting/index.js +128 -161
- package/lib/modules/userTesting/styles.d.ts +28 -11
- package/lib/modules/userTesting/styles.js +50 -28
- package/lib/modules/userTesting/utils.d.ts +9 -0
- package/lib/modules/userTesting/utils.js +79 -0
- package/package.json +1 -1
|
@@ -25,7 +25,7 @@
|
|
|
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/96</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -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/94</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -244,7 +244,9 @@
|
|
|
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
|
|
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>
|
|
248
250
|
<span class="cline-any cline-neutral"> </span>
|
|
249
251
|
<span class="cline-any cline-neutral"> </span>
|
|
250
252
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -314,6 +316,7 @@
|
|
|
314
316
|
<span class="cline-any cline-no"> </span>
|
|
315
317
|
<span class="cline-any cline-neutral"> </span>
|
|
316
318
|
<span class="cline-any cline-neutral"> </span>
|
|
319
|
+
<span class="cline-any cline-neutral"> </span>
|
|
317
320
|
<span class="cline-any cline-no"> </span>
|
|
318
321
|
<span class="cline-any cline-no"> </span>
|
|
319
322
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -354,7 +357,6 @@
|
|
|
354
357
|
<span class="cline-any cline-neutral"> </span>
|
|
355
358
|
<span class="cline-any cline-no"> </span>
|
|
356
359
|
<span class="cline-any cline-no"> </span>
|
|
357
|
-
<span class="cline-any cline-no"> </span>
|
|
358
360
|
<span class="cline-any cline-neutral"> </span>
|
|
359
361
|
<span class="cline-any cline-no"> </span>
|
|
360
362
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -398,9 +400,11 @@
|
|
|
398
400
|
<span class="cline-any cline-neutral"> </span>
|
|
399
401
|
<span class="cline-any cline-neutral"> </span>
|
|
400
402
|
<span class="cline-any cline-neutral"> </span>
|
|
403
|
+
<span class="cline-any cline-neutral"> </span>
|
|
401
404
|
<span class="cline-any cline-no"> </span>
|
|
402
405
|
<span class="cline-any cline-neutral"> </span>
|
|
403
406
|
<span class="cline-any cline-neutral"> </span>
|
|
407
|
+
<span class="cline-any cline-neutral"> </span>
|
|
404
408
|
<span class="cline-any cline-no"> </span>
|
|
405
409
|
<span class="cline-any cline-no"> </span>
|
|
406
410
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -494,6 +498,7 @@ function <span class="fstat-no" title="function not covered" >initiateRestart(</
|
|
|
494
498
|
<span class="cstat-no" title="statement not covered" > postMessage('restart')</span>
|
|
495
499
|
<span class="cstat-no" title="statement not covered" > reset()</span>
|
|
496
500
|
}
|
|
501
|
+
|
|
497
502
|
function <span class="fstat-no" title="function not covered" >initiateFailure(</span>reason: string): void {
|
|
498
503
|
<span class="cstat-no" title="statement not covered" > postMessage({ type: 'failure', reason })</span>
|
|
499
504
|
<span class="cstat-no" title="statement not covered" > reset()</span>
|
|
@@ -519,7 +524,7 @@ let restartTimeoutID: ReturnType<typeof setTimeout>
|
|
|
519
524
|
}
|
|
520
525
|
|
|
521
526
|
<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>
|
|
522
|
-
<span class="cstat-no" title="statement not covered" >
|
|
527
|
+
<span class="cstat-no" title="statement not covered" > if (writer) {</span>
|
|
523
528
|
const w = <span class="cstat-no" title="statement not covered" >writer</span>
|
|
524
529
|
<span class="cstat-no" title="statement not covered" > data.forEach(<span class="fstat-no" title="function not covered" >(m</span>essage) => {</span>
|
|
525
530
|
<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>
|
|
@@ -532,8 +537,7 @@ let restartTimeoutID: ReturnType<typeof setTimeout>
|
|
|
532
537
|
}
|
|
533
538
|
<span class="cstat-no" title="statement not covered" > w.writeMessage(message)</span>
|
|
534
539
|
})
|
|
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>
|
|
540
|
+
} else {
|
|
537
541
|
<span class="cstat-no" title="statement not covered" > postMessage('not_init')</span>
|
|
538
542
|
<span class="cstat-no" title="statement not covered" > initiateRestart()</span>
|
|
539
543
|
}
|
|
@@ -579,7 +583,9 @@ let restartTimeoutID: ReturnType<typeof setTimeout>
|
|
|
579
583
|
data.pageNo,
|
|
580
584
|
data.timestamp,
|
|
581
585
|
data.url,
|
|
582
|
-
<span class="fstat-no" title="function not covered" > (b</span>atch) =>
|
|
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
|
+
},
|
|
583
589
|
data.tabId,
|
|
584
590
|
)
|
|
585
591
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (sendIntervalID === null) {</span>
|
|
@@ -613,7 +619,7 @@ let restartTimeoutID: ReturnType<typeof setTimeout>
|
|
|
613
619
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
614
620
|
Code coverage generated by
|
|
615
621
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
616
|
-
at 2023-
|
|
622
|
+
at 2023-12-15T15:55:44.965Z
|
|
617
623
|
</div>
|
|
618
624
|
<script src="../prettify.js"></script>
|
|
619
625
|
<script>
|