@openreplay/tracker 4.1.11 → 5.0.0
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 +3 -0
- package/CHANGELOG.md +20 -0
- package/README.md +22 -18
- package/cjs/app/guards.d.ts +11 -12
- package/cjs/app/guards.js +2 -1
- package/cjs/app/index.d.ts +11 -8
- package/cjs/app/index.js +27 -8
- package/cjs/app/logger.d.ts +3 -3
- package/cjs/app/messages.gen.d.ts +8 -6
- package/cjs/app/messages.gen.js +116 -94
- package/cjs/app/nodes.d.ts +1 -1
- package/cjs/app/observer/iframe_offsets.d.ts +1 -1
- package/cjs/app/observer/observer.js +5 -5
- package/cjs/app/observer/top_observer.d.ts +2 -2
- package/cjs/app/observer/top_observer.js +1 -1
- package/cjs/app/session.d.ts +2 -2
- package/cjs/app/ticker.d.ts +1 -1
- package/cjs/common/interaction.d.ts +5 -5
- package/cjs/common/messages.gen.d.ts +104 -86
- package/cjs/index.d.ts +6 -2
- package/cjs/index.js +7 -5
- package/cjs/modules/cssrules.js +1 -1
- package/cjs/modules/focus.js +2 -2
- package/cjs/modules/fonts.js +2 -2
- package/cjs/modules/img.js +6 -5
- package/cjs/modules/input.d.ts +1 -1
- package/cjs/modules/input.js +15 -23
- package/cjs/modules/mouse.js +1 -1
- package/cjs/modules/network.d.ts +28 -0
- package/cjs/modules/network.js +203 -0
- package/cjs/modules/timing.js +7 -3
- package/cjs/modules/viewport.js +3 -1
- package/cjs/vendors/finder/finder.d.ts +1 -1
- package/jest.config.js +11 -0
- package/lib/app/guards.d.ts +11 -12
- package/lib/app/guards.js +2 -1
- package/lib/app/index.d.ts +11 -8
- package/lib/app/index.js +28 -9
- package/lib/app/logger.d.ts +3 -3
- package/lib/app/messages.gen.d.ts +8 -6
- package/lib/app/messages.gen.js +107 -87
- package/lib/app/nodes.d.ts +1 -1
- package/lib/app/observer/iframe_offsets.d.ts +1 -1
- package/lib/app/observer/observer.js +5 -5
- package/lib/app/observer/top_observer.d.ts +2 -2
- package/lib/app/observer/top_observer.js +1 -1
- package/lib/app/session.d.ts +2 -2
- package/lib/app/ticker.d.ts +1 -1
- package/lib/common/interaction.d.ts +5 -5
- package/lib/common/messages.gen.d.ts +104 -86
- package/lib/common/tsconfig.tsbuildinfo +1 -1
- package/lib/index.d.ts +6 -2
- package/lib/index.js +8 -6
- package/lib/modules/cssrules.js +1 -1
- package/lib/modules/focus.js +2 -2
- package/lib/modules/fonts.js +2 -2
- package/lib/modules/img.js +6 -5
- package/lib/modules/input.d.ts +1 -1
- package/lib/modules/input.js +15 -23
- package/lib/modules/mouse.js +1 -1
- package/lib/modules/network.d.ts +28 -0
- package/lib/modules/network.js +200 -0
- package/lib/modules/timing.js +8 -4
- package/lib/modules/viewport.js +3 -1
- package/lib/vendors/finder/finder.d.ts +1 -1
- package/package.json +8 -3
- package/tsconfig-base.json +2 -1
- package/cjs/app/messages.d.ts +0 -52
- package/cjs/app/messages.js +0 -234
- package/lib/app/messages.d.ts +0 -52
- package/lib/app/messages.js +0 -181
package/lib/app/messages.js
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
// Auto-generated, do not edit
|
|
2
|
-
export function BatchMetadata(version, pageNo, firstIndex, timestamp, location) {
|
|
3
|
-
return [81 /* BatchMetadata */, version, pageNo, firstIndex, timestamp, location];
|
|
4
|
-
}
|
|
5
|
-
export function PartitionedMessage(partNo, partTotal) {
|
|
6
|
-
return [82 /* PartitionedMessage */, partNo, partTotal];
|
|
7
|
-
}
|
|
8
|
-
export function Timestamp(timestamp) {
|
|
9
|
-
return [0 /* Timestamp */, timestamp];
|
|
10
|
-
}
|
|
11
|
-
export function SetPageLocation(url, referrer, navigationStart) {
|
|
12
|
-
return [4 /* SetPageLocation */, url, referrer, navigationStart];
|
|
13
|
-
}
|
|
14
|
-
export function SetViewportSize(width, height) {
|
|
15
|
-
return [5 /* SetViewportSize */, width, height];
|
|
16
|
-
}
|
|
17
|
-
export function SetViewportScroll(x, y) {
|
|
18
|
-
return [6 /* SetViewportScroll */, x, y];
|
|
19
|
-
}
|
|
20
|
-
export function CreateDocument() {
|
|
21
|
-
return [7 /* CreateDocument */];
|
|
22
|
-
}
|
|
23
|
-
export function CreateElementNode(id, parentID, index, tag, svg) {
|
|
24
|
-
return [8 /* CreateElementNode */, id, parentID, index, tag, svg];
|
|
25
|
-
}
|
|
26
|
-
export function CreateTextNode(id, parentID, index) {
|
|
27
|
-
return [9 /* CreateTextNode */, id, parentID, index];
|
|
28
|
-
}
|
|
29
|
-
export function MoveNode(id, parentID, index) {
|
|
30
|
-
return [10 /* MoveNode */, id, parentID, index];
|
|
31
|
-
}
|
|
32
|
-
export function RemoveNode(id) {
|
|
33
|
-
return [11 /* RemoveNode */, id];
|
|
34
|
-
}
|
|
35
|
-
export function SetNodeAttribute(id, name, value) {
|
|
36
|
-
return [12 /* SetNodeAttribute */, id, name, value];
|
|
37
|
-
}
|
|
38
|
-
export function RemoveNodeAttribute(id, name) {
|
|
39
|
-
return [13 /* RemoveNodeAttribute */, id, name];
|
|
40
|
-
}
|
|
41
|
-
export function SetNodeData(id, data) {
|
|
42
|
-
return [14 /* SetNodeData */, id, data];
|
|
43
|
-
}
|
|
44
|
-
export function SetNodeScroll(id, x, y) {
|
|
45
|
-
return [16 /* SetNodeScroll */, id, x, y];
|
|
46
|
-
}
|
|
47
|
-
export function SetInputTarget(id, label) {
|
|
48
|
-
return [17 /* SetInputTarget */, id, label];
|
|
49
|
-
}
|
|
50
|
-
export function SetInputValue(id, value, mask) {
|
|
51
|
-
return [18 /* SetInputValue */, id, value, mask];
|
|
52
|
-
}
|
|
53
|
-
export function SetInputChecked(id, checked) {
|
|
54
|
-
return [19 /* SetInputChecked */, id, checked];
|
|
55
|
-
}
|
|
56
|
-
export function MouseMove(x, y) {
|
|
57
|
-
return [20 /* MouseMove */, x, y];
|
|
58
|
-
}
|
|
59
|
-
export function ConsoleLog(level, value) {
|
|
60
|
-
return [22 /* ConsoleLog */, level, value];
|
|
61
|
-
}
|
|
62
|
-
export function PageLoadTiming(requestStart, responseStart, responseEnd, domContentLoadedEventStart, domContentLoadedEventEnd, loadEventStart, loadEventEnd, firstPaint, firstContentfulPaint) {
|
|
63
|
-
return [
|
|
64
|
-
23 /* PageLoadTiming */,
|
|
65
|
-
requestStart,
|
|
66
|
-
responseStart,
|
|
67
|
-
responseEnd,
|
|
68
|
-
domContentLoadedEventStart,
|
|
69
|
-
domContentLoadedEventEnd,
|
|
70
|
-
loadEventStart,
|
|
71
|
-
loadEventEnd,
|
|
72
|
-
firstPaint,
|
|
73
|
-
firstContentfulPaint,
|
|
74
|
-
];
|
|
75
|
-
}
|
|
76
|
-
export function PageRenderTiming(speedIndex, visuallyComplete, timeToInteractive) {
|
|
77
|
-
return [24 /* PageRenderTiming */, speedIndex, visuallyComplete, timeToInteractive];
|
|
78
|
-
}
|
|
79
|
-
export function JSException(name, message, payload, metadata) {
|
|
80
|
-
return [78 /* JSException */, name, message, payload, metadata];
|
|
81
|
-
}
|
|
82
|
-
export function RawCustomEvent(name, payload) {
|
|
83
|
-
return [27 /* RawCustomEvent */, name, payload];
|
|
84
|
-
}
|
|
85
|
-
export function UserID(id) {
|
|
86
|
-
return [28 /* UserID */, id];
|
|
87
|
-
}
|
|
88
|
-
export function UserAnonymousID(id) {
|
|
89
|
-
return [29 /* UserAnonymousID */, id];
|
|
90
|
-
}
|
|
91
|
-
export function Metadata(key, value) {
|
|
92
|
-
return [30 /* Metadata */, key, value];
|
|
93
|
-
}
|
|
94
|
-
export function CSSInsertRule(id, rule, index) {
|
|
95
|
-
return [37 /* CSSInsertRule */, id, rule, index];
|
|
96
|
-
}
|
|
97
|
-
export function CSSDeleteRule(id, index) {
|
|
98
|
-
return [38 /* CSSDeleteRule */, id, index];
|
|
99
|
-
}
|
|
100
|
-
export function Fetch(method, url, request, response, status, timestamp, duration) {
|
|
101
|
-
return [39 /* Fetch */, method, url, request, response, status, timestamp, duration];
|
|
102
|
-
}
|
|
103
|
-
export function Profiler(name, duration, args, result) {
|
|
104
|
-
return [40 /* Profiler */, name, duration, args, result];
|
|
105
|
-
}
|
|
106
|
-
export function OTable(key, value) {
|
|
107
|
-
return [41 /* OTable */, key, value];
|
|
108
|
-
}
|
|
109
|
-
export function StateAction(type) {
|
|
110
|
-
return [42 /* StateAction */, type];
|
|
111
|
-
}
|
|
112
|
-
export function Redux(action, state, duration) {
|
|
113
|
-
return [44 /* Redux */, action, state, duration];
|
|
114
|
-
}
|
|
115
|
-
export function Vuex(mutation, state) {
|
|
116
|
-
return [45 /* Vuex */, mutation, state];
|
|
117
|
-
}
|
|
118
|
-
export function MobX(type, payload) {
|
|
119
|
-
return [46 /* MobX */, type, payload];
|
|
120
|
-
}
|
|
121
|
-
export function NgRx(action, state, duration) {
|
|
122
|
-
return [47 /* NgRx */, action, state, duration];
|
|
123
|
-
}
|
|
124
|
-
export function GraphQL(operationKind, operationName, variables, response) {
|
|
125
|
-
return [48 /* GraphQL */, operationKind, operationName, variables, response];
|
|
126
|
-
}
|
|
127
|
-
export function PerformanceTrack(frames, ticks, totalJSHeapSize, usedJSHeapSize) {
|
|
128
|
-
return [49 /* PerformanceTrack */, frames, ticks, totalJSHeapSize, usedJSHeapSize];
|
|
129
|
-
}
|
|
130
|
-
export function ResourceTiming(timestamp, duration, ttfb, headerSize, encodedBodySize, decodedBodySize, url, initiator) {
|
|
131
|
-
return [
|
|
132
|
-
53 /* ResourceTiming */,
|
|
133
|
-
timestamp,
|
|
134
|
-
duration,
|
|
135
|
-
ttfb,
|
|
136
|
-
headerSize,
|
|
137
|
-
encodedBodySize,
|
|
138
|
-
decodedBodySize,
|
|
139
|
-
url,
|
|
140
|
-
initiator,
|
|
141
|
-
];
|
|
142
|
-
}
|
|
143
|
-
export function ConnectionInformation(downlink, type) {
|
|
144
|
-
return [54 /* ConnectionInformation */, downlink, type];
|
|
145
|
-
}
|
|
146
|
-
export function SetPageVisibility(hidden) {
|
|
147
|
-
return [55 /* SetPageVisibility */, hidden];
|
|
148
|
-
}
|
|
149
|
-
export function LongTask(timestamp, duration, context, containerType, containerSrc, containerId, containerName) {
|
|
150
|
-
return [
|
|
151
|
-
59 /* LongTask */,
|
|
152
|
-
timestamp,
|
|
153
|
-
duration,
|
|
154
|
-
context,
|
|
155
|
-
containerType,
|
|
156
|
-
containerSrc,
|
|
157
|
-
containerId,
|
|
158
|
-
containerName,
|
|
159
|
-
];
|
|
160
|
-
}
|
|
161
|
-
export function SetNodeAttributeURLBased(id, name, value, baseURL) {
|
|
162
|
-
return [60 /* SetNodeAttributeURLBased */, id, name, value, baseURL];
|
|
163
|
-
}
|
|
164
|
-
export function SetCSSDataURLBased(id, data, baseURL) {
|
|
165
|
-
return [61 /* SetCSSDataURLBased */, id, data, baseURL];
|
|
166
|
-
}
|
|
167
|
-
export function TechnicalInfo(type, value) {
|
|
168
|
-
return [63 /* TechnicalInfo */, type, value];
|
|
169
|
-
}
|
|
170
|
-
export function CustomIssue(name, payload) {
|
|
171
|
-
return [64 /* CustomIssue */, name, payload];
|
|
172
|
-
}
|
|
173
|
-
export function CSSInsertRuleURLBased(id, rule, index, baseURL) {
|
|
174
|
-
return [67 /* CSSInsertRuleURLBased */, id, rule, index, baseURL];
|
|
175
|
-
}
|
|
176
|
-
export function MouseClick(id, hesitationTime, label, selector) {
|
|
177
|
-
return [69 /* MouseClick */, id, hesitationTime, label, selector];
|
|
178
|
-
}
|
|
179
|
-
export function CreateIFrameDocument(frameID, id) {
|
|
180
|
-
return [70 /* CreateIFrameDocument */, frameID, id];
|
|
181
|
-
}
|