@openreplay/tracker 9.0.13 → 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/mouse.js +1 -0
- package/cjs/modules/network.js +1 -0
- package/coverage/clover.xml +1802 -779
- package/coverage/coverage-final.json +27 -18
- package/coverage/lcov-report/index.html +60 -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 +38 -23
- package/coverage/lcov-report/main/app/index.ts.html +1578 -108
- package/coverage/lcov-report/main/app/logger.ts.html +25 -91
- package/coverage/lcov-report/main/app/messages.gen.ts.html +263 -146
- package/coverage/lcov-report/main/app/nodes.ts.html +17 -5
- 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 +20 -20
- package/coverage/lcov-report/main/index.ts.html +464 -98
- package/coverage/lcov-report/main/modules/Network/beaconProxy.ts.html +19 -19
- package/coverage/lcov-report/main/modules/Network/fetchProxy.ts.html +114 -99
- package/coverage/lcov-report/main/modules/Network/index.html +66 -66
- package/coverage/lcov-report/main/modules/Network/index.ts.html +33 -33
- package/coverage/lcov-report/main/modules/Network/networkMessage.ts.html +82 -73
- package/coverage/lcov-report/main/modules/Network/utils.ts.html +34 -34
- package/coverage/lcov-report/main/modules/Network/xhrProxy.ts.html +15 -15
- 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 +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 +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 +42 -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 +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/tagWatcher.ts.html +334 -0
- 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 +101 -59
- 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 +3267 -1349
- package/lib/app/index.js +2 -2
- package/lib/common/tsconfig.tsbuildinfo +1 -1
- package/lib/index.js +3 -2
- 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>
|