@openreplay/tracker 9.0.12 → 9.0.14
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 +2 -2
- package/cjs/index.js +3 -2
- package/cjs/modules/Network/fetchProxy.d.ts +1 -1
- package/cjs/modules/Network/fetchProxy.js +2 -0
- package/cjs/modules/mouse.js +1 -0
- package/cjs/modules/network.js +1 -0
- package/coverage/clover.xml +1783 -995
- package/coverage/coverage-final.json +30 -25
- package/coverage/lcov-report/index.html +45 -45
- package/coverage/lcov-report/main/app/canvas.ts.html +535 -0
- package/coverage/lcov-report/main/app/guards.ts.html +5 -2
- package/coverage/lcov-report/main/app/index.html +34 -19
- package/coverage/lcov-report/main/app/index.ts.html +1769 -116
- package/coverage/lcov-report/main/app/logger.ts.html +25 -91
- package/coverage/lcov-report/main/app/messages.gen.ts.html +122 -5
- package/coverage/lcov-report/main/app/nodes.ts.html +26 -8
- 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 +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 +13 -13
- package/coverage/lcov-report/main/index.ts.html +468 -102
- package/coverage/lcov-report/main/modules/Network/beaconProxy.ts.html +1 -1
- package/coverage/lcov-report/main/modules/Network/fetchProxy.ts.html +27 -6
- package/coverage/lcov-report/main/modules/Network/index.html +13 -13
- package/coverage/lcov-report/main/modules/Network/index.ts.html +1 -1
- package/coverage/lcov-report/main/modules/Network/networkMessage.ts.html +17 -8
- 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 +13 -4
- package/coverage/lcov-report/main/modules/axiosSpy.ts.html +1 -1
- package/coverage/lcov-report/main/modules/conditionsManager.ts.html +1399 -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 +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 +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 +23 -20
- package/coverage/lcov-report/main/modules/index.html +50 -20
- 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 +3 -3
- 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 +334 -0
- package/coverage/lcov-report/main/modules/timing.ts.html +42 -6
- 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 +264 -6
- package/coverage/lcov-report/webworker/BatchWriter.ts.html +23 -5
- package/coverage/lcov-report/webworker/MessageEncoder.gen.ts.html +41 -5
- package/coverage/lcov-report/webworker/PrimitiveEncoder.ts.html +1 -1
- package/coverage/lcov-report/webworker/QueueSender.ts.html +18 -6
- package/coverage/lcov-report/webworker/index.html +17 -17
- package/coverage/lcov-report/webworker/index.ts.html +24 -15
- package/coverage/lcov.info +3283 -1718
- package/lib/app/index.js +2 -2
- package/lib/common/tsconfig.tsbuildinfo +1 -1
- package/lib/index.js +3 -2
- package/lib/modules/Network/fetchProxy.d.ts +1 -1
- package/lib/modules/Network/fetchProxy.js +2 -0
- package/lib/modules/mouse.js +1 -0
- package/lib/modules/network.js +1 -0
- package/package.json +1 -1
|
@@ -32,7 +32,7 @@
|
|
|
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/4</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -105,35 +105,7 @@
|
|
|
105
105
|
<a name='L40'></a><a href='#L40'>40</a>
|
|
106
106
|
<a name='L41'></a><a href='#L41'>41</a>
|
|
107
107
|
<a name='L42'></a><a href='#L42'>42</a>
|
|
108
|
-
<a name='L43'></a><a href='#L43'>43</a>
|
|
109
|
-
<a name='L44'></a><a href='#L44'>44</a>
|
|
110
|
-
<a name='L45'></a><a href='#L45'>45</a>
|
|
111
|
-
<a name='L46'></a><a href='#L46'>46</a>
|
|
112
|
-
<a name='L47'></a><a href='#L47'>47</a>
|
|
113
|
-
<a name='L48'></a><a href='#L48'>48</a>
|
|
114
|
-
<a name='L49'></a><a href='#L49'>49</a>
|
|
115
|
-
<a name='L50'></a><a href='#L50'>50</a>
|
|
116
|
-
<a name='L51'></a><a href='#L51'>51</a>
|
|
117
|
-
<a name='L52'></a><a href='#L52'>52</a>
|
|
118
|
-
<a name='L53'></a><a href='#L53'>53</a>
|
|
119
|
-
<a name='L54'></a><a href='#L54'>54</a>
|
|
120
|
-
<a name='L55'></a><a href='#L55'>55</a>
|
|
121
|
-
<a name='L56'></a><a href='#L56'>56</a>
|
|
122
|
-
<a name='L57'></a><a href='#L57'>57</a>
|
|
123
|
-
<a name='L58'></a><a href='#L58'>58</a>
|
|
124
|
-
<a name='L59'></a><a href='#L59'>59</a>
|
|
125
|
-
<a name='L60'></a><a href='#L60'>60</a>
|
|
126
|
-
<a name='L61'></a><a href='#L61'>61</a>
|
|
127
|
-
<a name='L62'></a><a href='#L62'>62</a>
|
|
128
|
-
<a name='L63'></a><a href='#L63'>63</a>
|
|
129
|
-
<a name='L64'></a><a href='#L64'>64</a>
|
|
130
|
-
<a name='L65'></a><a href='#L65'>65</a></td><td class="line-coverage quiet"><span class="cline-any cline-no"> </span>
|
|
131
|
-
<span class="cline-any cline-neutral"> </span>
|
|
132
|
-
<span class="cline-any cline-neutral"> </span>
|
|
133
|
-
<span class="cline-any cline-neutral"> </span>
|
|
134
|
-
<span class="cline-any cline-neutral"> </span>
|
|
135
|
-
<span class="cline-any cline-neutral"> </span>
|
|
136
|
-
<span class="cline-any cline-neutral"> </span>
|
|
108
|
+
<a name='L43'></a><a href='#L43'>43</a></td><td class="line-coverage quiet"><span class="cline-any cline-no"> </span>
|
|
137
109
|
<span class="cline-any cline-neutral"> </span>
|
|
138
110
|
<span class="cline-any cline-neutral"> </span>
|
|
139
111
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -147,32 +119,16 @@
|
|
|
147
119
|
<span class="cline-any cline-neutral"> </span>
|
|
148
120
|
<span class="cline-any cline-neutral"> </span>
|
|
149
121
|
<span class="cline-any cline-neutral"> </span>
|
|
150
|
-
<span class="cline-any cline-neutral"> </span>
|
|
151
|
-
<span class="cline-any cline-neutral"> </span>
|
|
152
|
-
<span class="cline-any cline-neutral"> </span>
|
|
153
|
-
<span class="cline-any cline-neutral"> </span>
|
|
154
|
-
<span class="cline-any cline-neutral"> </span>
|
|
155
|
-
<span class="cline-any cline-neutral"> </span>
|
|
156
122
|
<span class="cline-any cline-no"> </span>
|
|
157
123
|
<span class="cline-any cline-neutral"> </span>
|
|
158
124
|
<span class="cline-any cline-neutral"> </span>
|
|
159
|
-
<span class="cline-any cline-no"> </span>
|
|
160
|
-
<span class="cline-any cline-neutral"> </span>
|
|
161
|
-
<span class="cline-any cline-neutral"> </span>
|
|
162
|
-
<span class="cline-any cline-neutral"> </span>
|
|
163
|
-
<span class="cline-any cline-neutral"> </span>
|
|
164
|
-
<span class="cline-any cline-neutral"> </span>
|
|
165
|
-
<span class="cline-any cline-neutral"> </span>
|
|
166
125
|
<span class="cline-any cline-neutral"> </span>
|
|
167
126
|
<span class="cline-any cline-no"> </span>
|
|
168
127
|
<span class="cline-any cline-neutral"> </span>
|
|
169
128
|
<span class="cline-any cline-neutral"> </span>
|
|
170
129
|
<span class="cline-any cline-neutral"> </span>
|
|
171
|
-
<span class="cline-any cline-neutral"> </span>
|
|
172
130
|
<span class="cline-any cline-no"> </span>
|
|
173
131
|
<span class="cline-any cline-neutral"> </span>
|
|
174
|
-
<span class="cline-any cline-neutral"> </span>
|
|
175
|
-
<span class="cline-any cline-neutral"> </span>
|
|
176
132
|
<span class="cline-any cline-no"> </span>
|
|
177
133
|
<span class="cline-any cline-neutral"> </span>
|
|
178
134
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -180,8 +136,6 @@
|
|
|
180
136
|
<span class="cline-any cline-neutral"> </span>
|
|
181
137
|
<span class="cline-any cline-no"> </span>
|
|
182
138
|
<span class="cline-any cline-neutral"> </span>
|
|
183
|
-
<span class="cline-any cline-neutral"> </span>
|
|
184
|
-
<span class="cline-any cline-neutral"> </span>
|
|
185
139
|
<span class="cline-any cline-no"> </span>
|
|
186
140
|
<span class="cline-any cline-neutral"> </span>
|
|
187
141
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -189,6 +143,8 @@
|
|
|
189
143
|
<span class="cline-any cline-neutral"> </span>
|
|
190
144
|
<span class="cline-any cline-no"> </span>
|
|
191
145
|
<span class="cline-any cline-neutral"> </span>
|
|
146
|
+
<span class="cline-any cline-no"> </span>
|
|
147
|
+
<span class="cline-any cline-neutral"> </span>
|
|
192
148
|
<span class="cline-any cline-neutral"> </span>
|
|
193
149
|
<span class="cline-any cline-neutral"> </span>
|
|
194
150
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">export const <span class="cstat-no" title="statement not covered" >LogLevel = {</span>
|
|
@@ -198,59 +154,37 @@
|
|
|
198
154
|
Errors: 2,
|
|
199
155
|
Silent: 0,
|
|
200
156
|
} as const
|
|
201
|
-
type LogLevel = typeof LogLevel[keyof typeof LogLevel]
|
|
202
|
-
|
|
203
|
-
type CustomLevel = {
|
|
204
|
-
error: boolean
|
|
205
|
-
warn: boolean
|
|
206
|
-
log: boolean
|
|
207
|
-
}
|
|
208
157
|
|
|
209
|
-
|
|
210
|
-
<span class="cstat-no" title="statement not covered" > return typeof l === 'object'</span>
|
|
211
|
-
}
|
|
158
|
+
export type ILogLevel = (typeof LogLevel)[keyof typeof LogLevel]
|
|
212
159
|
|
|
213
|
-
|
|
214
|
-
level:
|
|
215
|
-
messages?: number[]
|
|
216
|
-
}
|
|
160
|
+
<span class="cstat-no" title="statement not covered" >export default class L</span>ogger {
|
|
161
|
+
private readonly level: ILogLevel
|
|
217
162
|
|
|
218
|
-
|
|
163
|
+
<span class="fstat-no" title="function not covered" > constructor(d</span>ebugLevel: ILogLevel = <span class="branch-0 cbranch-no" title="branch not covered" >LogLevel.Silent)</span> {
|
|
164
|
+
<span class="cstat-no" title="statement not covered" > this.level = debugLevel</span>
|
|
165
|
+
}
|
|
219
166
|
|
|
220
|
-
<span class="
|
|
221
|
-
|
|
222
|
-
<span class="fstat-no" title="function not covered" > constructor(o</span>ptions: Options = <span class="branch-0 cbranch-no" title="branch not covered" >LogLevel.Silent)</span> {
|
|
223
|
-
<span class="cstat-no" title="statement not covered" > this.options =</span>
|
|
224
|
-
options === true
|
|
225
|
-
? { level: LogLevel.Verbose }
|
|
226
|
-
: typeof options === 'number'
|
|
227
|
-
? { level: options }
|
|
228
|
-
: options
|
|
167
|
+
private <span class="fstat-no" title="function not covered" >shouldLog(</span>level: ILogLevel): boolean {
|
|
168
|
+
<span class="cstat-no" title="statement not covered" > return this.level >= level</span>
|
|
229
169
|
}
|
|
230
|
-
|
|
231
|
-
<span class="
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
: this.options.level >= LogLevel.Log
|
|
235
|
-
) {
|
|
170
|
+
|
|
171
|
+
<span class="fstat-no" title="function not covered" > log(</span>...args: any[]) {
|
|
172
|
+
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (this.shouldLog(LogLevel.Log)) {</span>
|
|
173
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
236
174
|
<span class="cstat-no" title="statement not covered" > console.log(...args)</span>
|
|
237
175
|
}
|
|
238
176
|
}
|
|
239
|
-
|
|
240
|
-
<span class="
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
: this.options.level >= LogLevel.Warnings
|
|
244
|
-
) {
|
|
177
|
+
|
|
178
|
+
<span class="fstat-no" title="function not covered" > warn(</span>...args: any[]) {
|
|
179
|
+
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (this.shouldLog(LogLevel.Warnings)) {</span>
|
|
180
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
245
181
|
<span class="cstat-no" title="statement not covered" > console.warn(...args)</span>
|
|
246
182
|
}
|
|
247
183
|
}
|
|
248
|
-
|
|
249
|
-
<span class="
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
: this.options.level >= LogLevel.Errors
|
|
253
|
-
) {
|
|
184
|
+
|
|
185
|
+
<span class="fstat-no" title="function not covered" > error(</span>...args: any[]) {
|
|
186
|
+
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (this.shouldLog(LogLevel.Errors)) {</span>
|
|
187
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
254
188
|
<span class="cstat-no" title="statement not covered" > console.error(...args)</span>
|
|
255
189
|
}
|
|
256
190
|
}
|
|
@@ -262,7 +196,7 @@ export type Options = true | _Options | LogLevel
|
|
|
262
196
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
263
197
|
Code coverage generated by
|
|
264
198
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
265
|
-
at
|
|
199
|
+
at 2024-01-23T12:19:37.435Z
|
|
266
200
|
</div>
|
|
267
201
|
<script src="../../prettify.js"></script>
|
|
268
202
|
<script>
|
|
@@ -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/144</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -39,14 +39,14 @@
|
|
|
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/72</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/144</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -977,7 +977,46 @@
|
|
|
977
977
|
<a name='L912'></a><a href='#L912'>912</a>
|
|
978
978
|
<a name='L913'></a><a href='#L913'>913</a>
|
|
979
979
|
<a name='L914'></a><a href='#L914'>914</a>
|
|
980
|
-
<a name='L915'></a><a href='#L915'>915</a
|
|
980
|
+
<a name='L915'></a><a href='#L915'>915</a>
|
|
981
|
+
<a name='L916'></a><a href='#L916'>916</a>
|
|
982
|
+
<a name='L917'></a><a href='#L917'>917</a>
|
|
983
|
+
<a name='L918'></a><a href='#L918'>918</a>
|
|
984
|
+
<a name='L919'></a><a href='#L919'>919</a>
|
|
985
|
+
<a name='L920'></a><a href='#L920'>920</a>
|
|
986
|
+
<a name='L921'></a><a href='#L921'>921</a>
|
|
987
|
+
<a name='L922'></a><a href='#L922'>922</a>
|
|
988
|
+
<a name='L923'></a><a href='#L923'>923</a>
|
|
989
|
+
<a name='L924'></a><a href='#L924'>924</a>
|
|
990
|
+
<a name='L925'></a><a href='#L925'>925</a>
|
|
991
|
+
<a name='L926'></a><a href='#L926'>926</a>
|
|
992
|
+
<a name='L927'></a><a href='#L927'>927</a>
|
|
993
|
+
<a name='L928'></a><a href='#L928'>928</a>
|
|
994
|
+
<a name='L929'></a><a href='#L929'>929</a>
|
|
995
|
+
<a name='L930'></a><a href='#L930'>930</a>
|
|
996
|
+
<a name='L931'></a><a href='#L931'>931</a>
|
|
997
|
+
<a name='L932'></a><a href='#L932'>932</a>
|
|
998
|
+
<a name='L933'></a><a href='#L933'>933</a>
|
|
999
|
+
<a name='L934'></a><a href='#L934'>934</a>
|
|
1000
|
+
<a name='L935'></a><a href='#L935'>935</a>
|
|
1001
|
+
<a name='L936'></a><a href='#L936'>936</a>
|
|
1002
|
+
<a name='L937'></a><a href='#L937'>937</a>
|
|
1003
|
+
<a name='L938'></a><a href='#L938'>938</a>
|
|
1004
|
+
<a name='L939'></a><a href='#L939'>939</a>
|
|
1005
|
+
<a name='L940'></a><a href='#L940'>940</a>
|
|
1006
|
+
<a name='L941'></a><a href='#L941'>941</a>
|
|
1007
|
+
<a name='L942'></a><a href='#L942'>942</a>
|
|
1008
|
+
<a name='L943'></a><a href='#L943'>943</a>
|
|
1009
|
+
<a name='L944'></a><a href='#L944'>944</a>
|
|
1010
|
+
<a name='L945'></a><a href='#L945'>945</a>
|
|
1011
|
+
<a name='L946'></a><a href='#L946'>946</a>
|
|
1012
|
+
<a name='L947'></a><a href='#L947'>947</a>
|
|
1013
|
+
<a name='L948'></a><a href='#L948'>948</a>
|
|
1014
|
+
<a name='L949'></a><a href='#L949'>949</a>
|
|
1015
|
+
<a name='L950'></a><a href='#L950'>950</a>
|
|
1016
|
+
<a name='L951'></a><a href='#L951'>951</a>
|
|
1017
|
+
<a name='L952'></a><a href='#L952'>952</a>
|
|
1018
|
+
<a name='L953'></a><a href='#L953'>953</a>
|
|
1019
|
+
<a name='L954'></a><a href='#L954'>954</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
981
1020
|
<span class="cline-any cline-neutral"> </span>
|
|
982
1021
|
<span class="cline-any cline-neutral"> </span>
|
|
983
1022
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1820,6 +1859,25 @@
|
|
|
1820
1859
|
<span class="cline-any cline-neutral"> </span>
|
|
1821
1860
|
<span class="cline-any cline-neutral"> </span>
|
|
1822
1861
|
<span class="cline-any cline-neutral"> </span>
|
|
1862
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1863
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1864
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1865
|
+
<span class="cline-any cline-no"> </span>
|
|
1866
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1867
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1868
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1869
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1870
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1871
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1872
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1873
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1874
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1875
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1876
|
+
<span class="cline-any cline-no"> </span>
|
|
1877
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1878
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1879
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1880
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1823
1881
|
<span class="cline-any cline-no"> </span>
|
|
1824
1882
|
<span class="cline-any cline-neutral"> </span>
|
|
1825
1883
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1891,6 +1949,26 @@
|
|
|
1891
1949
|
<span class="cline-any cline-neutral"> </span>
|
|
1892
1950
|
<span class="cline-any cline-neutral"> </span>
|
|
1893
1951
|
<span class="cline-any cline-neutral"> </span>
|
|
1952
|
+
<span class="cline-any cline-no"> </span>
|
|
1953
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1954
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1955
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1956
|
+
<span class="cline-any cline-no"> </span>
|
|
1957
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1958
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1959
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1960
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1961
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1962
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1963
|
+
<span class="cline-any cline-no"> </span>
|
|
1964
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1965
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1966
|
+
<span class="cline-any cline-no"> </span>
|
|
1967
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1968
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1969
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1970
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1971
|
+
<span class="cline-any cline-neutral"> </span>
|
|
1894
1972
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">// Auto-generated, do not edit
|
|
1895
1973
|
/* eslint-disable */
|
|
1896
1974
|
|
|
@@ -2710,6 +2788,25 @@ export { default, Type } from '../../common/messages.gen.js'
|
|
|
2710
2788
|
]
|
|
2711
2789
|
}
|
|
2712
2790
|
|
|
2791
|
+
<span class="cstat-no" title="statement not covered" >export function <span class="fstat-no" title="function not covered" >W</span>SChannel(</span>
|
|
2792
|
+
chType: string,
|
|
2793
|
+
channelName: string,
|
|
2794
|
+
data: string,
|
|
2795
|
+
timestamp: number,
|
|
2796
|
+
dir: string,
|
|
2797
|
+
messageType: string,
|
|
2798
|
+
): Messages.WSChannel {
|
|
2799
|
+
<span class="cstat-no" title="statement not covered" > return [</span>
|
|
2800
|
+
Messages.Type.WSChannel,
|
|
2801
|
+
chType,
|
|
2802
|
+
channelName,
|
|
2803
|
+
data,
|
|
2804
|
+
timestamp,
|
|
2805
|
+
dir,
|
|
2806
|
+
messageType,
|
|
2807
|
+
]
|
|
2808
|
+
}
|
|
2809
|
+
|
|
2713
2810
|
<span class="cstat-no" title="statement not covered" >export function <span class="fstat-no" title="function not covered" >I</span>nputChange(</span>
|
|
2714
2811
|
id: number,
|
|
2715
2812
|
value: string,
|
|
@@ -2805,6 +2902,26 @@ export { default, Type } from '../../common/messages.gen.js'
|
|
|
2805
2902
|
]
|
|
2806
2903
|
}
|
|
2807
2904
|
|
|
2905
|
+
<span class="cstat-no" title="statement not covered" >export function <span class="fstat-no" title="function not covered" >C</span>anvasNode(</span>
|
|
2906
|
+
nodeId: string,
|
|
2907
|
+
timestamp: number,
|
|
2908
|
+
): Messages.CanvasNode {
|
|
2909
|
+
<span class="cstat-no" title="statement not covered" > return [</span>
|
|
2910
|
+
Messages.Type.CanvasNode,
|
|
2911
|
+
nodeId,
|
|
2912
|
+
timestamp,
|
|
2913
|
+
]
|
|
2914
|
+
}
|
|
2915
|
+
|
|
2916
|
+
<span class="cstat-no" title="statement not covered" >export function <span class="fstat-no" title="function not covered" >T</span>agTrigger(</span>
|
|
2917
|
+
tagId: number,
|
|
2918
|
+
): Messages.TagTrigger {
|
|
2919
|
+
<span class="cstat-no" title="statement not covered" > return [</span>
|
|
2920
|
+
Messages.Type.TagTrigger,
|
|
2921
|
+
tagId,
|
|
2922
|
+
]
|
|
2923
|
+
}
|
|
2924
|
+
|
|
2808
2925
|
</pre></td></tr></table></pre>
|
|
2809
2926
|
|
|
2810
2927
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -2812,7 +2929,7 @@ export { default, Type } from '../../common/messages.gen.js'
|
|
|
2812
2929
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
2813
2930
|
Code coverage generated by
|
|
2814
2931
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
2815
|
-
at
|
|
2932
|
+
at 2024-01-23T12:19:37.435Z
|
|
2816
2933
|
</div>
|
|
2817
2934
|
<script src="../../prettify.js"></script>
|
|
2818
2935
|
<script>
|
|
@@ -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/58</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -39,14 +39,14 @@
|
|
|
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/15</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/53</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -163,7 +163,15 @@
|
|
|
163
163
|
<a name='L98'></a><a href='#L98'>98</a>
|
|
164
164
|
<a name='L99'></a><a href='#L99'>99</a>
|
|
165
165
|
<a name='L100'></a><a href='#L100'>100</a>
|
|
166
|
-
<a name='L101'></a><a href='#L101'>101</a
|
|
166
|
+
<a name='L101'></a><a href='#L101'>101</a>
|
|
167
|
+
<a name='L102'></a><a href='#L102'>102</a>
|
|
168
|
+
<a name='L103'></a><a href='#L103'>103</a>
|
|
169
|
+
<a name='L104'></a><a href='#L104'>104</a>
|
|
170
|
+
<a name='L105'></a><a href='#L105'>105</a>
|
|
171
|
+
<a name='L106'></a><a href='#L106'>106</a>
|
|
172
|
+
<a name='L107'></a><a href='#L107'>107</a></td><td class="line-coverage quiet"><span class="cline-any cline-no"> </span>
|
|
173
|
+
<span class="cline-any cline-neutral"> </span>
|
|
174
|
+
<span class="cline-any cline-neutral"> </span>
|
|
167
175
|
<span class="cline-any cline-neutral"> </span>
|
|
168
176
|
<span class="cline-any cline-neutral"> </span>
|
|
169
177
|
<span class="cline-any cline-no"> </span>
|
|
@@ -179,6 +187,10 @@
|
|
|
179
187
|
<span class="cline-any cline-no"> </span>
|
|
180
188
|
<span class="cline-any cline-neutral"> </span>
|
|
181
189
|
<span class="cline-any cline-neutral"> </span>
|
|
190
|
+
<span class="cline-any cline-no"> </span>
|
|
191
|
+
<span class="cline-any cline-no"> </span>
|
|
192
|
+
<span class="cline-any cline-neutral"> </span>
|
|
193
|
+
<span class="cline-any cline-neutral"> </span>
|
|
182
194
|
<span class="cline-any cline-neutral"> </span>
|
|
183
195
|
<span class="cline-any cline-no"> </span>
|
|
184
196
|
<span class="cline-any cline-no"> </span>
|
|
@@ -263,7 +275,9 @@
|
|
|
263
275
|
<span class="cline-any cline-no"> </span>
|
|
264
276
|
<span class="cline-any cline-neutral"> </span>
|
|
265
277
|
<span class="cline-any cline-neutral"> </span>
|
|
266
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js"
|
|
278
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js"><span class="cstat-no" title="statement not covered" >import { createEventListener, deleteEventListener } from '../utils.js'</span>
|
|
279
|
+
|
|
280
|
+
type NodeCallback = (node: Node, isStart: boolean) => void
|
|
267
281
|
type ElementListener = [string, EventListener, boolean]
|
|
268
282
|
|
|
269
283
|
<span class="cstat-no" title="statement not covered" >export default class N</span>odes {
|
|
@@ -279,12 +293,16 @@ type ElementListener = [string, EventListener, boolean]
|
|
|
279
293
|
<span class="cstat-no" title="statement not covered" > this.nodeCallbacks.push(nodeCallback)</span>
|
|
280
294
|
}
|
|
281
295
|
|
|
296
|
+
<span class="cstat-no" title="statement not covered" > scanTree = <span class="fstat-no" title="function not covered" >(c</span>b: (node: Node | void) => void) => {</span>
|
|
297
|
+
<span class="cstat-no" title="statement not covered" > this.nodes.forEach(<span class="fstat-no" title="function not covered" >(n</span>ode) => <span class="cstat-no" title="statement not covered" >cb(node))</span></span>
|
|
298
|
+
}
|
|
299
|
+
|
|
282
300
|
<span class="fstat-no" title="function not covered" > attachNodeListener(</span>node: Node, type: string, listener: EventListener, useCapture = <span class="branch-0 cbranch-no" title="branch not covered" >true)</span>: void {
|
|
283
301
|
const id = <span class="cstat-no" title="statement not covered" >this.getID(node)</span>
|
|
284
302
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (id === undefined) {</span>
|
|
285
303
|
<span class="cstat-no" title="statement not covered" > return</span>
|
|
286
304
|
}
|
|
287
|
-
<span class="cstat-no" title="statement not covered" > node
|
|
305
|
+
<span class="cstat-no" title="statement not covered" > createEventListener(node, type, listener, useCapture)</span>
|
|
288
306
|
let listeners = <span class="cstat-no" title="statement not covered" >this.elementListeners.get(id)</span>
|
|
289
307
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (listeners === undefined) {</span>
|
|
290
308
|
<span class="cstat-no" title="statement not covered" > listeners = []</span>
|
|
@@ -314,7 +332,7 @@ type ElementListener = [string, EventListener, boolean]
|
|
|
314
332
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (listeners !== undefined) {</span>
|
|
315
333
|
<span class="cstat-no" title="statement not covered" > this.elementListeners.delete(id)</span>
|
|
316
334
|
<span class="cstat-no" title="statement not covered" > listeners.forEach(<span class="fstat-no" title="function not covered" >(l</span>istener) =></span>
|
|
317
|
-
<span class="cstat-no" title="statement not covered" > node
|
|
335
|
+
<span class="cstat-no" title="statement not covered" > deleteEventListener(node, listener[0], listener[1], listener[2]),</span>
|
|
318
336
|
)
|
|
319
337
|
}
|
|
320
338
|
<span class="cstat-no" title="statement not covered" > this.totalNodeAmount--</span>
|
|
@@ -370,7 +388,7 @@ type ElementListener = [string, EventListener, boolean]
|
|
|
370
388
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
371
389
|
Code coverage generated by
|
|
372
390
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
373
|
-
at
|
|
391
|
+
at 2024-01-23T12:19:37.435Z
|
|
374
392
|
</div>
|
|
375
393
|
<script src="../../prettify.js"></script>
|
|
376
394
|
<script>
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
<span class="cstat-no" title="statement not covered" > this.observeRoot(doc, <span class="fstat-no" title="function not covered" >(d</span>ocID) => {</span>
|
|
120
120
|
//MBTODO: do not send if empty (send on load? it might be in-place iframe, like our replayer, which does not get loaded)
|
|
121
121
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (docID === undefined) {</span>
|
|
122
|
-
<span class="cstat-no" title="statement not covered" >
|
|
122
|
+
<span class="cstat-no" title="statement not covered" > this.app.debug.log('OpenReplay: Iframe document not bound')</span>
|
|
123
123
|
<span class="cstat-no" title="statement not covered" > return</span>
|
|
124
124
|
}
|
|
125
125
|
<span class="cstat-no" title="statement not covered" > this.app.send(CreateIFrameDocument(hostID, docID))</span>
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
134
134
|
Code coverage generated by
|
|
135
135
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
136
|
-
at
|
|
136
|
+
at 2024-01-23T12:19:37.435Z
|
|
137
137
|
</div>
|
|
138
138
|
<script src="../../../prettify.js"></script>
|
|
139
139
|
<script>
|
|
@@ -274,7 +274,7 @@ type OffsetState = {
|
|
|
274
274
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
275
275
|
Code coverage generated by
|
|
276
276
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
277
|
-
at
|
|
277
|
+
at 2024-01-23T12:19:37.435Z
|
|
278
278
|
</div>
|
|
279
279
|
<script src="../../../prettify.js"></script>
|
|
280
280
|
<script>
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
147
147
|
Code coverage generated by
|
|
148
148
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
149
|
-
at
|
|
149
|
+
at 2024-01-23T12:19:37.435Z
|
|
150
150
|
</div>
|
|
151
151
|
<script src="../../../prettify.js"></script>
|
|
152
152
|
<script>
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
} // log
|
|
114
114
|
<span class="cstat-no" title="statement not covered" > this.observeRoot(shRoot, <span class="fstat-no" title="function not covered" >(r</span>ootID) => {</span>
|
|
115
115
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (rootID === undefined) {</span>
|
|
116
|
-
<span class="cstat-no" title="statement not covered" >
|
|
116
|
+
<span class="cstat-no" title="statement not covered" > this.app.debug.error('OpenReplay: Shadow Root was not bound')</span>
|
|
117
117
|
<span class="cstat-no" title="statement not covered" > return</span>
|
|
118
118
|
}
|
|
119
119
|
<span class="cstat-no" title="statement not covered" > this.app.send(CreateIFrameDocument(hostID, rootID))</span>
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
128
128
|
Code coverage generated by
|
|
129
129
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
130
|
-
at
|
|
130
|
+
at 2024-01-23T12:19:37.435Z
|
|
131
131
|
</div>
|
|
132
132
|
<script src="../../../prettify.js"></script>
|
|
133
133
|
<script>
|
|
@@ -523,7 +523,7 @@ const attachShadowNativeFn = <span class="cstat-no" title="statement not covered
|
|
|
523
523
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
524
524
|
Code coverage generated by
|
|
525
525
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
526
|
-
at
|
|
526
|
+
at 2024-01-23T12:19:37.435Z
|
|
527
527
|
</div>
|
|
528
528
|
<script src="../../../prettify.js"></script>
|
|
529
529
|
<script>
|
|
@@ -166,7 +166,10 @@
|
|
|
166
166
|
<a name='L101'></a><a href='#L101'>101</a>
|
|
167
167
|
<a name='L102'></a><a href='#L102'>102</a>
|
|
168
168
|
<a name='L103'></a><a href='#L103'>103</a>
|
|
169
|
-
<a name='L104'></a><a href='#L104'>104</a
|
|
169
|
+
<a name='L104'></a><a href='#L104'>104</a>
|
|
170
|
+
<a name='L105'></a><a href='#L105'>105</a>
|
|
171
|
+
<a name='L106'></a><a href='#L106'>106</a>
|
|
172
|
+
<a name='L107'></a><a href='#L107'>107</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
170
173
|
<span class="cline-any cline-no"> </span>
|
|
171
174
|
<span class="cline-any cline-no"> </span>
|
|
172
175
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -192,7 +195,10 @@
|
|
|
192
195
|
<span class="cline-any cline-no"> </span>
|
|
193
196
|
<span class="cline-any cline-neutral"> </span>
|
|
194
197
|
<span class="cline-any cline-neutral"> </span>
|
|
198
|
+
<span class="cline-any cline-neutral"> </span>
|
|
195
199
|
<span class="cline-any cline-no"> </span>
|
|
200
|
+
<span class="cline-any cline-neutral"> </span>
|
|
201
|
+
<span class="cline-any cline-neutral"> </span>
|
|
196
202
|
<span class="cline-any cline-no"> </span>
|
|
197
203
|
<span class="cline-any cline-neutral"> </span>
|
|
198
204
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -295,7 +301,10 @@ export const <span class="cstat-no" title="statement not covered" >stringWiper =
|
|
|
295
301
|
private readonly <span class="cstat-no" title="statement not covered" >hidden: Set<number> = new Set()</span>
|
|
296
302
|
private readonly options: Options
|
|
297
303
|
|
|
298
|
-
<span class="fstat-no" title="function not covered" > constructor(
|
|
304
|
+
<span class="fstat-no" title="function not covered" > constructor(</span>
|
|
305
|
+
private readonly <span class="cstat-no" title="statement not covered" >app: App,</span>
|
|
306
|
+
options: Partial<Options>,
|
|
307
|
+
) {
|
|
299
308
|
<span class="cstat-no" title="statement not covered" > this.options = Object.assign(</span>
|
|
300
309
|
{
|
|
301
310
|
obscureTextEmails: true,
|
|
@@ -379,7 +388,7 @@ export const <span class="cstat-no" title="statement not covered" >stringWiper =
|
|
|
379
388
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
380
389
|
Code coverage generated by
|
|
381
390
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
382
|
-
at
|
|
391
|
+
at 2024-01-23T12:19:37.435Z
|
|
383
392
|
</div>
|
|
384
393
|
<script src="../../prettify.js"></script>
|
|
385
394
|
<script>
|