@openreplay/tracker 8.1.2-beta.2 → 8.1.2-beta.3
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 +1 -1
- package/cjs/index.d.ts +2 -1
- package/cjs/index.js +5 -3
- package/lib/app/index.js +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +5 -3
- package/package.json +1 -1
package/cjs/app/index.js
CHANGED
|
@@ -35,7 +35,7 @@ class App {
|
|
|
35
35
|
this.stopCallbacks = [];
|
|
36
36
|
this.commitCallbacks = [];
|
|
37
37
|
this.activityState = ActivityState.NotActive;
|
|
38
|
-
this.version = '8.1.2-beta.
|
|
38
|
+
this.version = '8.1.2-beta.3'; // TODO: version compatability check inside each plugin.
|
|
39
39
|
this.compressionThreshold = 24 * 1000;
|
|
40
40
|
this.restartAttempts = 0;
|
|
41
41
|
this.bc = null;
|
package/cjs/index.d.ts
CHANGED
|
@@ -16,10 +16,11 @@ import type { StartPromiseReturn } from './app/index.js';
|
|
|
16
16
|
export type Options = Partial<AppOptions & ConsoleOptions & ExceptionOptions & InputOptions & PerformanceOptions & TimingOptions> & {
|
|
17
17
|
projectID?: number;
|
|
18
18
|
projectKey: string;
|
|
19
|
+
ignoreTimings?: boolean;
|
|
19
20
|
sessionToken?: string;
|
|
20
21
|
respectDoNotTrack?: boolean;
|
|
21
22
|
autoResetOnWindowOpen?: boolean;
|
|
22
|
-
network?: NetworkOptions
|
|
23
|
+
network?: Partial<NetworkOptions>;
|
|
23
24
|
mouse?: MouseHandlerOptions;
|
|
24
25
|
__DISABLE_SECURE_MODE?: boolean;
|
|
25
26
|
};
|
package/cjs/index.js
CHANGED
|
@@ -114,8 +114,10 @@ class API {
|
|
|
114
114
|
(0, img_js_1.default)(app);
|
|
115
115
|
(0, input_js_1.default)(app, options);
|
|
116
116
|
(0, mouse_js_1.default)(app, options.mouse);
|
|
117
|
-
(
|
|
118
|
-
|
|
117
|
+
if (options.ignoreTimings) {
|
|
118
|
+
(0, timing_js_1.default)(app, options);
|
|
119
|
+
(0, performance_js_1.default)(app, options);
|
|
120
|
+
}
|
|
119
121
|
(0, scroll_js_1.default)(app);
|
|
120
122
|
(0, focus_js_1.default)(app);
|
|
121
123
|
(0, fonts_js_1.default)(app);
|
|
@@ -154,7 +156,7 @@ class API {
|
|
|
154
156
|
// no-cors issue only with text/plain or not-set Content-Type
|
|
155
157
|
// req.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
|
|
156
158
|
req.send(JSON.stringify({
|
|
157
|
-
trackerVersion: '8.1.2-beta.
|
|
159
|
+
trackerVersion: '8.1.2-beta.3',
|
|
158
160
|
projectKey: options.projectKey,
|
|
159
161
|
doNotTrack,
|
|
160
162
|
// TODO: add precise reason (an exact API missing)
|
package/lib/app/index.js
CHANGED
|
@@ -32,7 +32,7 @@ export default class App {
|
|
|
32
32
|
this.stopCallbacks = [];
|
|
33
33
|
this.commitCallbacks = [];
|
|
34
34
|
this.activityState = ActivityState.NotActive;
|
|
35
|
-
this.version = '8.1.2-beta.
|
|
35
|
+
this.version = '8.1.2-beta.3'; // TODO: version compatability check inside each plugin.
|
|
36
36
|
this.compressionThreshold = 24 * 1000;
|
|
37
37
|
this.restartAttempts = 0;
|
|
38
38
|
this.bc = null;
|
package/lib/index.d.ts
CHANGED
|
@@ -16,10 +16,11 @@ import type { StartPromiseReturn } from './app/index.js';
|
|
|
16
16
|
export type Options = Partial<AppOptions & ConsoleOptions & ExceptionOptions & InputOptions & PerformanceOptions & TimingOptions> & {
|
|
17
17
|
projectID?: number;
|
|
18
18
|
projectKey: string;
|
|
19
|
+
ignoreTimings?: boolean;
|
|
19
20
|
sessionToken?: string;
|
|
20
21
|
respectDoNotTrack?: boolean;
|
|
21
22
|
autoResetOnWindowOpen?: boolean;
|
|
22
|
-
network?: NetworkOptions
|
|
23
|
+
network?: Partial<NetworkOptions>;
|
|
23
24
|
mouse?: MouseHandlerOptions;
|
|
24
25
|
__DISABLE_SECURE_MODE?: boolean;
|
|
25
26
|
};
|
package/lib/index.js
CHANGED
|
@@ -109,8 +109,10 @@ export default class API {
|
|
|
109
109
|
Img(app);
|
|
110
110
|
Input(app, options);
|
|
111
111
|
Mouse(app, options.mouse);
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
if (options.ignoreTimings) {
|
|
113
|
+
Timing(app, options);
|
|
114
|
+
Performance(app, options);
|
|
115
|
+
}
|
|
114
116
|
Scroll(app);
|
|
115
117
|
Focus(app);
|
|
116
118
|
Fonts(app);
|
|
@@ -149,7 +151,7 @@ export default class API {
|
|
|
149
151
|
// no-cors issue only with text/plain or not-set Content-Type
|
|
150
152
|
// req.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
|
|
151
153
|
req.send(JSON.stringify({
|
|
152
|
-
trackerVersion: '8.1.2-beta.
|
|
154
|
+
trackerVersion: '8.1.2-beta.3',
|
|
153
155
|
projectKey: options.projectKey,
|
|
154
156
|
doNotTrack,
|
|
155
157
|
// TODO: add precise reason (an exact API missing)
|