@openreplay/tracker 3.6.3 → 3.6.6
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/.eslintignore +8 -0
- package/cjs/app/guards.js +1 -2
- package/cjs/app/index.d.ts +15 -13
- package/cjs/app/index.js +58 -42
- package/cjs/app/logger.js +6 -3
- package/cjs/app/observer/iframe_observer.d.ts +1 -1
- package/cjs/app/observer/iframe_observer.js +1 -1
- package/cjs/app/observer/observer.d.ts +2 -3
- package/cjs/app/observer/observer.js +38 -40
- package/cjs/app/observer/shadow_root_observer.d.ts +1 -1
- package/cjs/app/observer/shadow_root_observer.js +1 -1
- package/cjs/app/observer/top_observer.d.ts +2 -2
- package/cjs/app/observer/top_observer.js +12 -11
- package/cjs/app/sanitizer.d.ts +1 -1
- package/cjs/app/sanitizer.js +5 -5
- package/cjs/app/session.d.ts +14 -2
- package/cjs/app/session.js +19 -6
- package/cjs/app/ticker.d.ts +1 -1
- package/cjs/common/messages.d.ts +1 -1
- package/cjs/common/messages.js +69 -120
- package/cjs/common/webworker.d.ts +3 -3
- package/cjs/index.d.ts +9 -8
- package/cjs/index.js +34 -28
- package/cjs/modules/connection.d.ts +1 -1
- package/cjs/modules/console.d.ts +1 -1
- package/cjs/modules/console.js +5 -5
- package/cjs/modules/cssrules.d.ts +1 -1
- package/cjs/modules/cssrules.js +3 -3
- package/cjs/modules/exception.d.ts +2 -2
- package/cjs/modules/exception.js +7 -6
- package/cjs/modules/img.d.ts +1 -1
- package/cjs/modules/img.js +15 -12
- package/cjs/modules/input.d.ts +1 -1
- package/cjs/modules/input.js +15 -15
- package/cjs/modules/longtasks.d.ts +1 -1
- package/cjs/modules/longtasks.js +13 -5
- package/cjs/modules/mouse.d.ts +1 -1
- package/cjs/modules/mouse.js +10 -12
- package/cjs/modules/performance.d.ts +1 -1
- package/cjs/modules/scroll.d.ts +1 -1
- package/cjs/modules/timing.d.ts +1 -1
- package/cjs/modules/timing.js +12 -24
- package/cjs/modules/viewport.d.ts +1 -1
- package/cjs/utils.js +7 -7
- package/cjs/vendors/finder/finder.js +53 -48
- package/lib/app/guards.js +1 -2
- package/lib/app/index.d.ts +15 -13
- package/lib/app/index.js +67 -51
- package/lib/app/logger.js +6 -3
- package/lib/app/observer/iframe_observer.d.ts +1 -1
- package/lib/app/observer/iframe_observer.js +3 -3
- package/lib/app/observer/observer.d.ts +2 -3
- package/lib/app/observer/observer.js +40 -42
- package/lib/app/observer/shadow_root_observer.d.ts +1 -1
- package/lib/app/observer/shadow_root_observer.js +3 -3
- package/lib/app/observer/top_observer.d.ts +2 -2
- package/lib/app/observer/top_observer.js +17 -16
- package/lib/app/sanitizer.d.ts +1 -1
- package/lib/app/sanitizer.js +7 -7
- package/lib/app/session.d.ts +14 -2
- package/lib/app/session.js +19 -6
- package/lib/app/ticker.d.ts +1 -1
- package/lib/common/messages.d.ts +1 -1
- package/lib/common/messages.js +69 -120
- package/lib/common/tsconfig.tsbuildinfo +1 -1
- package/lib/common/webworker.d.ts +3 -3
- package/lib/index.d.ts +9 -8
- package/lib/index.js +49 -43
- package/lib/modules/connection.d.ts +1 -1
- package/lib/modules/connection.js +1 -1
- package/lib/modules/console.d.ts +1 -1
- package/lib/modules/console.js +8 -8
- package/lib/modules/cssrules.d.ts +1 -1
- package/lib/modules/cssrules.js +5 -5
- package/lib/modules/exception.d.ts +2 -2
- package/lib/modules/exception.js +8 -7
- package/lib/modules/img.d.ts +1 -1
- package/lib/modules/img.js +18 -15
- package/lib/modules/input.d.ts +1 -1
- package/lib/modules/input.js +18 -18
- package/lib/modules/longtasks.d.ts +1 -1
- package/lib/modules/longtasks.js +14 -6
- package/lib/modules/mouse.d.ts +1 -1
- package/lib/modules/mouse.js +14 -16
- package/lib/modules/performance.d.ts +1 -1
- package/lib/modules/performance.js +2 -2
- package/lib/modules/scroll.d.ts +1 -1
- package/lib/modules/scroll.js +2 -2
- package/lib/modules/timing.d.ts +1 -1
- package/lib/modules/timing.js +15 -27
- package/lib/modules/viewport.d.ts +1 -1
- package/lib/modules/viewport.js +1 -1
- package/lib/utils.js +7 -7
- package/lib/vendors/finder/finder.js +53 -48
- package/package.json +28 -10
package/cjs/common/messages.js
CHANGED
|
@@ -18,10 +18,10 @@ class _BatchMeta {
|
|
|
18
18
|
this._id = 80;
|
|
19
19
|
}
|
|
20
20
|
encode(writer) {
|
|
21
|
-
return writer.uint(80) &&
|
|
21
|
+
return (writer.uint(80) &&
|
|
22
22
|
writer.uint(this.pageNo) &&
|
|
23
23
|
writer.uint(this.firstIndex) &&
|
|
24
|
-
writer.int(this.timestamp);
|
|
24
|
+
writer.int(this.timestamp));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
exports.BatchMeta = bindNew(_BatchMeta);
|
|
@@ -32,8 +32,7 @@ class _Timestamp {
|
|
|
32
32
|
this._id = 0;
|
|
33
33
|
}
|
|
34
34
|
encode(writer) {
|
|
35
|
-
return writer.uint(0) &&
|
|
36
|
-
writer.uint(this.timestamp);
|
|
35
|
+
return writer.uint(0) && writer.uint(this.timestamp);
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
38
|
exports.Timestamp = bindNew(_Timestamp);
|
|
@@ -46,10 +45,10 @@ class _SetPageLocation {
|
|
|
46
45
|
this._id = 4;
|
|
47
46
|
}
|
|
48
47
|
encode(writer) {
|
|
49
|
-
return writer.uint(4) &&
|
|
48
|
+
return (writer.uint(4) &&
|
|
50
49
|
writer.string(this.url) &&
|
|
51
50
|
writer.string(this.referrer) &&
|
|
52
|
-
writer.uint(this.navigationStart);
|
|
51
|
+
writer.uint(this.navigationStart));
|
|
53
52
|
}
|
|
54
53
|
}
|
|
55
54
|
exports.SetPageLocation = bindNew(_SetPageLocation);
|
|
@@ -61,9 +60,7 @@ class _SetViewportSize {
|
|
|
61
60
|
this._id = 5;
|
|
62
61
|
}
|
|
63
62
|
encode(writer) {
|
|
64
|
-
return writer.uint(5) &&
|
|
65
|
-
writer.uint(this.width) &&
|
|
66
|
-
writer.uint(this.height);
|
|
63
|
+
return writer.uint(5) && writer.uint(this.width) && writer.uint(this.height);
|
|
67
64
|
}
|
|
68
65
|
}
|
|
69
66
|
exports.SetViewportSize = bindNew(_SetViewportSize);
|
|
@@ -75,9 +72,7 @@ class _SetViewportScroll {
|
|
|
75
72
|
this._id = 6;
|
|
76
73
|
}
|
|
77
74
|
encode(writer) {
|
|
78
|
-
return writer.uint(6) &&
|
|
79
|
-
writer.int(this.x) &&
|
|
80
|
-
writer.int(this.y);
|
|
75
|
+
return writer.uint(6) && writer.int(this.x) && writer.int(this.y);
|
|
81
76
|
}
|
|
82
77
|
}
|
|
83
78
|
exports.SetViewportScroll = bindNew(_SetViewportScroll);
|
|
@@ -102,12 +97,12 @@ class _CreateElementNode {
|
|
|
102
97
|
this._id = 8;
|
|
103
98
|
}
|
|
104
99
|
encode(writer) {
|
|
105
|
-
return writer.uint(8) &&
|
|
100
|
+
return (writer.uint(8) &&
|
|
106
101
|
writer.uint(this.id) &&
|
|
107
102
|
writer.uint(this.parentID) &&
|
|
108
103
|
writer.uint(this.index) &&
|
|
109
104
|
writer.string(this.tag) &&
|
|
110
|
-
writer.boolean(this.svg);
|
|
105
|
+
writer.boolean(this.svg));
|
|
111
106
|
}
|
|
112
107
|
}
|
|
113
108
|
exports.CreateElementNode = bindNew(_CreateElementNode);
|
|
@@ -120,10 +115,10 @@ class _CreateTextNode {
|
|
|
120
115
|
this._id = 9;
|
|
121
116
|
}
|
|
122
117
|
encode(writer) {
|
|
123
|
-
return writer.uint(9) &&
|
|
118
|
+
return (writer.uint(9) &&
|
|
124
119
|
writer.uint(this.id) &&
|
|
125
120
|
writer.uint(this.parentID) &&
|
|
126
|
-
writer.uint(this.index);
|
|
121
|
+
writer.uint(this.index));
|
|
127
122
|
}
|
|
128
123
|
}
|
|
129
124
|
exports.CreateTextNode = bindNew(_CreateTextNode);
|
|
@@ -136,10 +131,10 @@ class _MoveNode {
|
|
|
136
131
|
this._id = 10;
|
|
137
132
|
}
|
|
138
133
|
encode(writer) {
|
|
139
|
-
return writer.uint(10) &&
|
|
134
|
+
return (writer.uint(10) &&
|
|
140
135
|
writer.uint(this.id) &&
|
|
141
136
|
writer.uint(this.parentID) &&
|
|
142
|
-
writer.uint(this.index);
|
|
137
|
+
writer.uint(this.index));
|
|
143
138
|
}
|
|
144
139
|
}
|
|
145
140
|
exports.MoveNode = bindNew(_MoveNode);
|
|
@@ -150,8 +145,7 @@ class _RemoveNode {
|
|
|
150
145
|
this._id = 11;
|
|
151
146
|
}
|
|
152
147
|
encode(writer) {
|
|
153
|
-
return writer.uint(11) &&
|
|
154
|
-
writer.uint(this.id);
|
|
148
|
+
return writer.uint(11) && writer.uint(this.id);
|
|
155
149
|
}
|
|
156
150
|
}
|
|
157
151
|
exports.RemoveNode = bindNew(_RemoveNode);
|
|
@@ -164,10 +158,10 @@ class _SetNodeAttribute {
|
|
|
164
158
|
this._id = 12;
|
|
165
159
|
}
|
|
166
160
|
encode(writer) {
|
|
167
|
-
return writer.uint(12) &&
|
|
161
|
+
return (writer.uint(12) &&
|
|
168
162
|
writer.uint(this.id) &&
|
|
169
163
|
writer.string(this.name) &&
|
|
170
|
-
writer.string(this.value);
|
|
164
|
+
writer.string(this.value));
|
|
171
165
|
}
|
|
172
166
|
}
|
|
173
167
|
exports.SetNodeAttribute = bindNew(_SetNodeAttribute);
|
|
@@ -179,9 +173,7 @@ class _RemoveNodeAttribute {
|
|
|
179
173
|
this._id = 13;
|
|
180
174
|
}
|
|
181
175
|
encode(writer) {
|
|
182
|
-
return writer.uint(13) &&
|
|
183
|
-
writer.uint(this.id) &&
|
|
184
|
-
writer.string(this.name);
|
|
176
|
+
return writer.uint(13) && writer.uint(this.id) && writer.string(this.name);
|
|
185
177
|
}
|
|
186
178
|
}
|
|
187
179
|
exports.RemoveNodeAttribute = bindNew(_RemoveNodeAttribute);
|
|
@@ -193,9 +185,7 @@ class _SetNodeData {
|
|
|
193
185
|
this._id = 14;
|
|
194
186
|
}
|
|
195
187
|
encode(writer) {
|
|
196
|
-
return writer.uint(14) &&
|
|
197
|
-
writer.uint(this.id) &&
|
|
198
|
-
writer.string(this.data);
|
|
188
|
+
return writer.uint(14) && writer.uint(this.id) && writer.string(this.data);
|
|
199
189
|
}
|
|
200
190
|
}
|
|
201
191
|
exports.SetNodeData = bindNew(_SetNodeData);
|
|
@@ -208,10 +198,7 @@ class _SetNodeScroll {
|
|
|
208
198
|
this._id = 16;
|
|
209
199
|
}
|
|
210
200
|
encode(writer) {
|
|
211
|
-
return writer.uint(16) &&
|
|
212
|
-
writer.uint(this.id) &&
|
|
213
|
-
writer.int(this.x) &&
|
|
214
|
-
writer.int(this.y);
|
|
201
|
+
return writer.uint(16) && writer.uint(this.id) && writer.int(this.x) && writer.int(this.y);
|
|
215
202
|
}
|
|
216
203
|
}
|
|
217
204
|
exports.SetNodeScroll = bindNew(_SetNodeScroll);
|
|
@@ -223,9 +210,7 @@ class _SetInputTarget {
|
|
|
223
210
|
this._id = 17;
|
|
224
211
|
}
|
|
225
212
|
encode(writer) {
|
|
226
|
-
return writer.uint(17) &&
|
|
227
|
-
writer.uint(this.id) &&
|
|
228
|
-
writer.string(this.label);
|
|
213
|
+
return writer.uint(17) && writer.uint(this.id) && writer.string(this.label);
|
|
229
214
|
}
|
|
230
215
|
}
|
|
231
216
|
exports.SetInputTarget = bindNew(_SetInputTarget);
|
|
@@ -238,10 +223,7 @@ class _SetInputValue {
|
|
|
238
223
|
this._id = 18;
|
|
239
224
|
}
|
|
240
225
|
encode(writer) {
|
|
241
|
-
return writer.uint(18) &&
|
|
242
|
-
writer.uint(this.id) &&
|
|
243
|
-
writer.string(this.value) &&
|
|
244
|
-
writer.int(this.mask);
|
|
226
|
+
return (writer.uint(18) && writer.uint(this.id) && writer.string(this.value) && writer.int(this.mask));
|
|
245
227
|
}
|
|
246
228
|
}
|
|
247
229
|
exports.SetInputValue = bindNew(_SetInputValue);
|
|
@@ -253,9 +235,7 @@ class _SetInputChecked {
|
|
|
253
235
|
this._id = 19;
|
|
254
236
|
}
|
|
255
237
|
encode(writer) {
|
|
256
|
-
return writer.uint(19) &&
|
|
257
|
-
writer.uint(this.id) &&
|
|
258
|
-
writer.boolean(this.checked);
|
|
238
|
+
return writer.uint(19) && writer.uint(this.id) && writer.boolean(this.checked);
|
|
259
239
|
}
|
|
260
240
|
}
|
|
261
241
|
exports.SetInputChecked = bindNew(_SetInputChecked);
|
|
@@ -267,9 +247,7 @@ class _MouseMove {
|
|
|
267
247
|
this._id = 20;
|
|
268
248
|
}
|
|
269
249
|
encode(writer) {
|
|
270
|
-
return writer.uint(20) &&
|
|
271
|
-
writer.uint(this.x) &&
|
|
272
|
-
writer.uint(this.y);
|
|
250
|
+
return writer.uint(20) && writer.uint(this.x) && writer.uint(this.y);
|
|
273
251
|
}
|
|
274
252
|
}
|
|
275
253
|
exports.MouseMove = bindNew(_MouseMove);
|
|
@@ -281,9 +259,7 @@ class _ConsoleLog {
|
|
|
281
259
|
this._id = 22;
|
|
282
260
|
}
|
|
283
261
|
encode(writer) {
|
|
284
|
-
return writer.uint(22) &&
|
|
285
|
-
writer.string(this.level) &&
|
|
286
|
-
writer.string(this.value);
|
|
262
|
+
return writer.uint(22) && writer.string(this.level) && writer.string(this.value);
|
|
287
263
|
}
|
|
288
264
|
}
|
|
289
265
|
exports.ConsoleLog = bindNew(_ConsoleLog);
|
|
@@ -302,7 +278,7 @@ class _PageLoadTiming {
|
|
|
302
278
|
this._id = 23;
|
|
303
279
|
}
|
|
304
280
|
encode(writer) {
|
|
305
|
-
return writer.uint(23) &&
|
|
281
|
+
return (writer.uint(23) &&
|
|
306
282
|
writer.uint(this.requestStart) &&
|
|
307
283
|
writer.uint(this.responseStart) &&
|
|
308
284
|
writer.uint(this.responseEnd) &&
|
|
@@ -311,7 +287,7 @@ class _PageLoadTiming {
|
|
|
311
287
|
writer.uint(this.loadEventStart) &&
|
|
312
288
|
writer.uint(this.loadEventEnd) &&
|
|
313
289
|
writer.uint(this.firstPaint) &&
|
|
314
|
-
writer.uint(this.firstContentfulPaint);
|
|
290
|
+
writer.uint(this.firstContentfulPaint));
|
|
315
291
|
}
|
|
316
292
|
}
|
|
317
293
|
exports.PageLoadTiming = bindNew(_PageLoadTiming);
|
|
@@ -324,10 +300,10 @@ class _PageRenderTiming {
|
|
|
324
300
|
this._id = 24;
|
|
325
301
|
}
|
|
326
302
|
encode(writer) {
|
|
327
|
-
return writer.uint(24) &&
|
|
303
|
+
return (writer.uint(24) &&
|
|
328
304
|
writer.uint(this.speedIndex) &&
|
|
329
305
|
writer.uint(this.visuallyComplete) &&
|
|
330
|
-
writer.uint(this.timeToInteractive);
|
|
306
|
+
writer.uint(this.timeToInteractive));
|
|
331
307
|
}
|
|
332
308
|
}
|
|
333
309
|
exports.PageRenderTiming = bindNew(_PageRenderTiming);
|
|
@@ -340,10 +316,10 @@ class _JSException {
|
|
|
340
316
|
this._id = 25;
|
|
341
317
|
}
|
|
342
318
|
encode(writer) {
|
|
343
|
-
return writer.uint(25) &&
|
|
319
|
+
return (writer.uint(25) &&
|
|
344
320
|
writer.string(this.name) &&
|
|
345
321
|
writer.string(this.message) &&
|
|
346
|
-
writer.string(this.payload);
|
|
322
|
+
writer.string(this.payload));
|
|
347
323
|
}
|
|
348
324
|
}
|
|
349
325
|
exports.JSException = bindNew(_JSException);
|
|
@@ -355,9 +331,7 @@ class _RawCustomEvent {
|
|
|
355
331
|
this._id = 27;
|
|
356
332
|
}
|
|
357
333
|
encode(writer) {
|
|
358
|
-
return writer.uint(27) &&
|
|
359
|
-
writer.string(this.name) &&
|
|
360
|
-
writer.string(this.payload);
|
|
334
|
+
return writer.uint(27) && writer.string(this.name) && writer.string(this.payload);
|
|
361
335
|
}
|
|
362
336
|
}
|
|
363
337
|
exports.RawCustomEvent = bindNew(_RawCustomEvent);
|
|
@@ -368,8 +342,7 @@ class _UserID {
|
|
|
368
342
|
this._id = 28;
|
|
369
343
|
}
|
|
370
344
|
encode(writer) {
|
|
371
|
-
return writer.uint(28) &&
|
|
372
|
-
writer.string(this.id);
|
|
345
|
+
return writer.uint(28) && writer.string(this.id);
|
|
373
346
|
}
|
|
374
347
|
}
|
|
375
348
|
exports.UserID = bindNew(_UserID);
|
|
@@ -380,8 +353,7 @@ class _UserAnonymousID {
|
|
|
380
353
|
this._id = 29;
|
|
381
354
|
}
|
|
382
355
|
encode(writer) {
|
|
383
|
-
return writer.uint(29) &&
|
|
384
|
-
writer.string(this.id);
|
|
356
|
+
return writer.uint(29) && writer.string(this.id);
|
|
385
357
|
}
|
|
386
358
|
}
|
|
387
359
|
exports.UserAnonymousID = bindNew(_UserAnonymousID);
|
|
@@ -393,9 +365,7 @@ class _Metadata {
|
|
|
393
365
|
this._id = 30;
|
|
394
366
|
}
|
|
395
367
|
encode(writer) {
|
|
396
|
-
return writer.uint(30) &&
|
|
397
|
-
writer.string(this.key) &&
|
|
398
|
-
writer.string(this.value);
|
|
368
|
+
return writer.uint(30) && writer.string(this.key) && writer.string(this.value);
|
|
399
369
|
}
|
|
400
370
|
}
|
|
401
371
|
exports.Metadata = bindNew(_Metadata);
|
|
@@ -408,10 +378,7 @@ class _CSSInsertRule {
|
|
|
408
378
|
this._id = 37;
|
|
409
379
|
}
|
|
410
380
|
encode(writer) {
|
|
411
|
-
return writer.uint(37) &&
|
|
412
|
-
writer.uint(this.id) &&
|
|
413
|
-
writer.string(this.rule) &&
|
|
414
|
-
writer.uint(this.index);
|
|
381
|
+
return (writer.uint(37) && writer.uint(this.id) && writer.string(this.rule) && writer.uint(this.index));
|
|
415
382
|
}
|
|
416
383
|
}
|
|
417
384
|
exports.CSSInsertRule = bindNew(_CSSInsertRule);
|
|
@@ -423,9 +390,7 @@ class _CSSDeleteRule {
|
|
|
423
390
|
this._id = 38;
|
|
424
391
|
}
|
|
425
392
|
encode(writer) {
|
|
426
|
-
return writer.uint(38) &&
|
|
427
|
-
writer.uint(this.id) &&
|
|
428
|
-
writer.uint(this.index);
|
|
393
|
+
return writer.uint(38) && writer.uint(this.id) && writer.uint(this.index);
|
|
429
394
|
}
|
|
430
395
|
}
|
|
431
396
|
exports.CSSDeleteRule = bindNew(_CSSDeleteRule);
|
|
@@ -442,14 +407,14 @@ class _Fetch {
|
|
|
442
407
|
this._id = 39;
|
|
443
408
|
}
|
|
444
409
|
encode(writer) {
|
|
445
|
-
return writer.uint(39) &&
|
|
410
|
+
return (writer.uint(39) &&
|
|
446
411
|
writer.string(this.method) &&
|
|
447
412
|
writer.string(this.url) &&
|
|
448
413
|
writer.string(this.request) &&
|
|
449
414
|
writer.string(this.response) &&
|
|
450
415
|
writer.uint(this.status) &&
|
|
451
416
|
writer.uint(this.timestamp) &&
|
|
452
|
-
writer.uint(this.duration);
|
|
417
|
+
writer.uint(this.duration));
|
|
453
418
|
}
|
|
454
419
|
}
|
|
455
420
|
exports.Fetch = bindNew(_Fetch);
|
|
@@ -463,11 +428,11 @@ class _Profiler {
|
|
|
463
428
|
this._id = 40;
|
|
464
429
|
}
|
|
465
430
|
encode(writer) {
|
|
466
|
-
return writer.uint(40) &&
|
|
431
|
+
return (writer.uint(40) &&
|
|
467
432
|
writer.string(this.name) &&
|
|
468
433
|
writer.uint(this.duration) &&
|
|
469
434
|
writer.string(this.args) &&
|
|
470
|
-
writer.string(this.result);
|
|
435
|
+
writer.string(this.result));
|
|
471
436
|
}
|
|
472
437
|
}
|
|
473
438
|
exports.Profiler = bindNew(_Profiler);
|
|
@@ -479,9 +444,7 @@ class _OTable {
|
|
|
479
444
|
this._id = 41;
|
|
480
445
|
}
|
|
481
446
|
encode(writer) {
|
|
482
|
-
return writer.uint(41) &&
|
|
483
|
-
writer.string(this.key) &&
|
|
484
|
-
writer.string(this.value);
|
|
447
|
+
return writer.uint(41) && writer.string(this.key) && writer.string(this.value);
|
|
485
448
|
}
|
|
486
449
|
}
|
|
487
450
|
exports.OTable = bindNew(_OTable);
|
|
@@ -492,8 +455,7 @@ class _StateAction {
|
|
|
492
455
|
this._id = 42;
|
|
493
456
|
}
|
|
494
457
|
encode(writer) {
|
|
495
|
-
return writer.uint(42) &&
|
|
496
|
-
writer.string(this.type);
|
|
458
|
+
return writer.uint(42) && writer.string(this.type);
|
|
497
459
|
}
|
|
498
460
|
}
|
|
499
461
|
exports.StateAction = bindNew(_StateAction);
|
|
@@ -506,10 +468,10 @@ class _Redux {
|
|
|
506
468
|
this._id = 44;
|
|
507
469
|
}
|
|
508
470
|
encode(writer) {
|
|
509
|
-
return writer.uint(44) &&
|
|
471
|
+
return (writer.uint(44) &&
|
|
510
472
|
writer.string(this.action) &&
|
|
511
473
|
writer.string(this.state) &&
|
|
512
|
-
writer.uint(this.duration);
|
|
474
|
+
writer.uint(this.duration));
|
|
513
475
|
}
|
|
514
476
|
}
|
|
515
477
|
exports.Redux = bindNew(_Redux);
|
|
@@ -521,9 +483,7 @@ class _Vuex {
|
|
|
521
483
|
this._id = 45;
|
|
522
484
|
}
|
|
523
485
|
encode(writer) {
|
|
524
|
-
return writer.uint(45) &&
|
|
525
|
-
writer.string(this.mutation) &&
|
|
526
|
-
writer.string(this.state);
|
|
486
|
+
return writer.uint(45) && writer.string(this.mutation) && writer.string(this.state);
|
|
527
487
|
}
|
|
528
488
|
}
|
|
529
489
|
exports.Vuex = bindNew(_Vuex);
|
|
@@ -535,9 +495,7 @@ class _MobX {
|
|
|
535
495
|
this._id = 46;
|
|
536
496
|
}
|
|
537
497
|
encode(writer) {
|
|
538
|
-
return writer.uint(46) &&
|
|
539
|
-
writer.string(this.type) &&
|
|
540
|
-
writer.string(this.payload);
|
|
498
|
+
return writer.uint(46) && writer.string(this.type) && writer.string(this.payload);
|
|
541
499
|
}
|
|
542
500
|
}
|
|
543
501
|
exports.MobX = bindNew(_MobX);
|
|
@@ -550,10 +508,10 @@ class _NgRx {
|
|
|
550
508
|
this._id = 47;
|
|
551
509
|
}
|
|
552
510
|
encode(writer) {
|
|
553
|
-
return writer.uint(47) &&
|
|
511
|
+
return (writer.uint(47) &&
|
|
554
512
|
writer.string(this.action) &&
|
|
555
513
|
writer.string(this.state) &&
|
|
556
|
-
writer.uint(this.duration);
|
|
514
|
+
writer.uint(this.duration));
|
|
557
515
|
}
|
|
558
516
|
}
|
|
559
517
|
exports.NgRx = bindNew(_NgRx);
|
|
@@ -567,11 +525,11 @@ class _GraphQL {
|
|
|
567
525
|
this._id = 48;
|
|
568
526
|
}
|
|
569
527
|
encode(writer) {
|
|
570
|
-
return writer.uint(48) &&
|
|
528
|
+
return (writer.uint(48) &&
|
|
571
529
|
writer.string(this.operationKind) &&
|
|
572
530
|
writer.string(this.operationName) &&
|
|
573
531
|
writer.string(this.variables) &&
|
|
574
|
-
writer.string(this.response);
|
|
532
|
+
writer.string(this.response));
|
|
575
533
|
}
|
|
576
534
|
}
|
|
577
535
|
exports.GraphQL = bindNew(_GraphQL);
|
|
@@ -585,11 +543,11 @@ class _PerformanceTrack {
|
|
|
585
543
|
this._id = 49;
|
|
586
544
|
}
|
|
587
545
|
encode(writer) {
|
|
588
|
-
return writer.uint(49) &&
|
|
546
|
+
return (writer.uint(49) &&
|
|
589
547
|
writer.int(this.frames) &&
|
|
590
548
|
writer.int(this.ticks) &&
|
|
591
549
|
writer.uint(this.totalJSHeapSize) &&
|
|
592
|
-
writer.uint(this.usedJSHeapSize);
|
|
550
|
+
writer.uint(this.usedJSHeapSize));
|
|
593
551
|
}
|
|
594
552
|
}
|
|
595
553
|
exports.PerformanceTrack = bindNew(_PerformanceTrack);
|
|
@@ -607,7 +565,7 @@ class _ResourceTiming {
|
|
|
607
565
|
this._id = 53;
|
|
608
566
|
}
|
|
609
567
|
encode(writer) {
|
|
610
|
-
return writer.uint(53) &&
|
|
568
|
+
return (writer.uint(53) &&
|
|
611
569
|
writer.uint(this.timestamp) &&
|
|
612
570
|
writer.uint(this.duration) &&
|
|
613
571
|
writer.uint(this.ttfb) &&
|
|
@@ -615,7 +573,7 @@ class _ResourceTiming {
|
|
|
615
573
|
writer.uint(this.encodedBodySize) &&
|
|
616
574
|
writer.uint(this.decodedBodySize) &&
|
|
617
575
|
writer.string(this.url) &&
|
|
618
|
-
writer.string(this.initiator);
|
|
576
|
+
writer.string(this.initiator));
|
|
619
577
|
}
|
|
620
578
|
}
|
|
621
579
|
exports.ResourceTiming = bindNew(_ResourceTiming);
|
|
@@ -627,9 +585,7 @@ class _ConnectionInformation {
|
|
|
627
585
|
this._id = 54;
|
|
628
586
|
}
|
|
629
587
|
encode(writer) {
|
|
630
|
-
return writer.uint(54) &&
|
|
631
|
-
writer.uint(this.downlink) &&
|
|
632
|
-
writer.string(this.type);
|
|
588
|
+
return writer.uint(54) && writer.uint(this.downlink) && writer.string(this.type);
|
|
633
589
|
}
|
|
634
590
|
}
|
|
635
591
|
exports.ConnectionInformation = bindNew(_ConnectionInformation);
|
|
@@ -640,8 +596,7 @@ class _SetPageVisibility {
|
|
|
640
596
|
this._id = 55;
|
|
641
597
|
}
|
|
642
598
|
encode(writer) {
|
|
643
|
-
return writer.uint(55) &&
|
|
644
|
-
writer.boolean(this.hidden);
|
|
599
|
+
return writer.uint(55) && writer.boolean(this.hidden);
|
|
645
600
|
}
|
|
646
601
|
}
|
|
647
602
|
exports.SetPageVisibility = bindNew(_SetPageVisibility);
|
|
@@ -658,14 +613,14 @@ class _LongTask {
|
|
|
658
613
|
this._id = 59;
|
|
659
614
|
}
|
|
660
615
|
encode(writer) {
|
|
661
|
-
return writer.uint(59) &&
|
|
616
|
+
return (writer.uint(59) &&
|
|
662
617
|
writer.uint(this.timestamp) &&
|
|
663
618
|
writer.uint(this.duration) &&
|
|
664
619
|
writer.uint(this.context) &&
|
|
665
620
|
writer.uint(this.containerType) &&
|
|
666
621
|
writer.string(this.containerSrc) &&
|
|
667
622
|
writer.string(this.containerId) &&
|
|
668
|
-
writer.string(this.containerName);
|
|
623
|
+
writer.string(this.containerName));
|
|
669
624
|
}
|
|
670
625
|
}
|
|
671
626
|
exports.LongTask = bindNew(_LongTask);
|
|
@@ -679,11 +634,11 @@ class _SetNodeAttributeURLBased {
|
|
|
679
634
|
this._id = 60;
|
|
680
635
|
}
|
|
681
636
|
encode(writer) {
|
|
682
|
-
return writer.uint(60) &&
|
|
637
|
+
return (writer.uint(60) &&
|
|
683
638
|
writer.uint(this.id) &&
|
|
684
639
|
writer.string(this.name) &&
|
|
685
640
|
writer.string(this.value) &&
|
|
686
|
-
writer.string(this.baseURL);
|
|
641
|
+
writer.string(this.baseURL));
|
|
687
642
|
}
|
|
688
643
|
}
|
|
689
644
|
exports.SetNodeAttributeURLBased = bindNew(_SetNodeAttributeURLBased);
|
|
@@ -696,10 +651,10 @@ class _SetCSSDataURLBased {
|
|
|
696
651
|
this._id = 61;
|
|
697
652
|
}
|
|
698
653
|
encode(writer) {
|
|
699
|
-
return writer.uint(61) &&
|
|
654
|
+
return (writer.uint(61) &&
|
|
700
655
|
writer.uint(this.id) &&
|
|
701
656
|
writer.string(this.data) &&
|
|
702
|
-
writer.string(this.baseURL);
|
|
657
|
+
writer.string(this.baseURL));
|
|
703
658
|
}
|
|
704
659
|
}
|
|
705
660
|
exports.SetCSSDataURLBased = bindNew(_SetCSSDataURLBased);
|
|
@@ -711,9 +666,7 @@ class _TechnicalInfo {
|
|
|
711
666
|
this._id = 63;
|
|
712
667
|
}
|
|
713
668
|
encode(writer) {
|
|
714
|
-
return writer.uint(63) &&
|
|
715
|
-
writer.string(this.type) &&
|
|
716
|
-
writer.string(this.value);
|
|
669
|
+
return writer.uint(63) && writer.string(this.type) && writer.string(this.value);
|
|
717
670
|
}
|
|
718
671
|
}
|
|
719
672
|
exports.TechnicalInfo = bindNew(_TechnicalInfo);
|
|
@@ -725,9 +678,7 @@ class _CustomIssue {
|
|
|
725
678
|
this._id = 64;
|
|
726
679
|
}
|
|
727
680
|
encode(writer) {
|
|
728
|
-
return writer.uint(64) &&
|
|
729
|
-
writer.string(this.name) &&
|
|
730
|
-
writer.string(this.payload);
|
|
681
|
+
return writer.uint(64) && writer.string(this.name) && writer.string(this.payload);
|
|
731
682
|
}
|
|
732
683
|
}
|
|
733
684
|
exports.CustomIssue = bindNew(_CustomIssue);
|
|
@@ -751,11 +702,11 @@ class _CSSInsertRuleURLBased {
|
|
|
751
702
|
this._id = 67;
|
|
752
703
|
}
|
|
753
704
|
encode(writer) {
|
|
754
|
-
return writer.uint(67) &&
|
|
705
|
+
return (writer.uint(67) &&
|
|
755
706
|
writer.uint(this.id) &&
|
|
756
707
|
writer.string(this.rule) &&
|
|
757
708
|
writer.uint(this.index) &&
|
|
758
|
-
writer.string(this.baseURL);
|
|
709
|
+
writer.string(this.baseURL));
|
|
759
710
|
}
|
|
760
711
|
}
|
|
761
712
|
exports.CSSInsertRuleURLBased = bindNew(_CSSInsertRuleURLBased);
|
|
@@ -769,11 +720,11 @@ class _MouseClick {
|
|
|
769
720
|
this._id = 69;
|
|
770
721
|
}
|
|
771
722
|
encode(writer) {
|
|
772
|
-
return writer.uint(69) &&
|
|
723
|
+
return (writer.uint(69) &&
|
|
773
724
|
writer.uint(this.id) &&
|
|
774
725
|
writer.uint(this.hesitationTime) &&
|
|
775
726
|
writer.string(this.label) &&
|
|
776
|
-
writer.string(this.selector);
|
|
727
|
+
writer.string(this.selector));
|
|
777
728
|
}
|
|
778
729
|
}
|
|
779
730
|
exports.MouseClick = bindNew(_MouseClick);
|
|
@@ -785,9 +736,7 @@ class _CreateIFrameDocument {
|
|
|
785
736
|
this._id = 70;
|
|
786
737
|
}
|
|
787
738
|
encode(writer) {
|
|
788
|
-
return writer.uint(70) &&
|
|
789
|
-
writer.uint(this.frameID) &&
|
|
790
|
-
writer.uint(this.id);
|
|
739
|
+
return writer.uint(70) && writer.uint(this.frameID) && writer.uint(this.id);
|
|
791
740
|
}
|
|
792
741
|
}
|
|
793
742
|
exports.CreateIFrameDocument = bindNew(_CreateIFrameDocument);
|
|
@@ -3,17 +3,17 @@ export interface Options {
|
|
|
3
3
|
connAttemptGap?: number;
|
|
4
4
|
}
|
|
5
5
|
declare type Start = {
|
|
6
|
-
type:
|
|
6
|
+
type: 'start';
|
|
7
7
|
ingestPoint: string;
|
|
8
8
|
pageNo: number;
|
|
9
9
|
timestamp: number;
|
|
10
10
|
} & Options;
|
|
11
11
|
declare type Auth = {
|
|
12
|
-
type:
|
|
12
|
+
type: 'auth';
|
|
13
13
|
token: string;
|
|
14
14
|
beaconSizeLimit?: number;
|
|
15
15
|
};
|
|
16
|
-
export declare type WorkerMessageData = null |
|
|
16
|
+
export declare type WorkerMessageData = null | 'stop' | Start | Auth | Array<{
|
|
17
17
|
_id: number;
|
|
18
18
|
}>;
|
|
19
19
|
export {};
|
package/cjs/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import App from
|
|
1
|
+
import App from './app/index.js';
|
|
2
2
|
export { default as App } from './app/index.js';
|
|
3
|
-
import * as _Messages from
|
|
3
|
+
import * as _Messages from './common/messages.js';
|
|
4
4
|
export declare const Messages: typeof _Messages;
|
|
5
|
-
import type { Options as AppOptions } from
|
|
6
|
-
import type { Options as ConsoleOptions } from
|
|
7
|
-
import type { Options as ExceptionOptions } from
|
|
8
|
-
import type { Options as InputOptions } from
|
|
9
|
-
import type { Options as PerformanceOptions } from
|
|
10
|
-
import type { Options as TimingOptions } from
|
|
5
|
+
import type { Options as AppOptions } from './app/index.js';
|
|
6
|
+
import type { Options as ConsoleOptions } from './modules/console.js';
|
|
7
|
+
import type { Options as ExceptionOptions } from './modules/exception.js';
|
|
8
|
+
import type { Options as InputOptions } from './modules/input.js';
|
|
9
|
+
import type { Options as PerformanceOptions } from './modules/performance.js';
|
|
10
|
+
import type { Options as TimingOptions } from './modules/timing.js';
|
|
11
11
|
import type { StartOptions } from './app/index.js';
|
|
12
12
|
import type { StartPromiseReturn } from './app/index.js';
|
|
13
13
|
export declare type Options = Partial<AppOptions & ConsoleOptions & ExceptionOptions & InputOptions & PerformanceOptions & TimingOptions> & {
|
|
@@ -29,6 +29,7 @@ export default class API {
|
|
|
29
29
|
getSessionToken(): string | null | undefined;
|
|
30
30
|
getSessionID(): string | null | undefined;
|
|
31
31
|
sessionID(): string | null | undefined;
|
|
32
|
+
getSessionURL(): string | undefined;
|
|
32
33
|
setUserID(id: string): void;
|
|
33
34
|
userID(id: string): void;
|
|
34
35
|
setUserAnonymousID(id: string): void;
|