@openreplay/tracker 14.0.2 → 14.0.4
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/CHANGELOG.md +8 -0
- package/cjs/app/index.js +9 -7
- package/cjs/index.js +1 -1
- package/cjs/modules/mouse.js +1 -1
- package/lib/app/index.js +9 -7
- package/lib/index.js +1 -1
- package/lib/modules/mouse.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/cjs/app/index.js
CHANGED
|
@@ -94,7 +94,7 @@ class App {
|
|
|
94
94
|
this.stopCallbacks = [];
|
|
95
95
|
this.commitCallbacks = [];
|
|
96
96
|
this.activityState = ActivityState.NotActive;
|
|
97
|
-
this.version = '14.0.
|
|
97
|
+
this.version = '14.0.4'; // TODO: version compatability check inside each plugin.
|
|
98
98
|
this.socketMode = false;
|
|
99
99
|
this.compressionThreshold = 24 * 1000;
|
|
100
100
|
this.bc = null;
|
|
@@ -783,8 +783,8 @@ class App {
|
|
|
783
783
|
deviceMemory: performance_js_1.deviceMemory,
|
|
784
784
|
jsHeapSizeLimit: performance_js_1.jsHeapSizeLimit,
|
|
785
785
|
timezone: getTimezone(),
|
|
786
|
-
width: window.
|
|
787
|
-
height: window.
|
|
786
|
+
width: window.screen.width,
|
|
787
|
+
height: window.screen.height,
|
|
788
788
|
}),
|
|
789
789
|
});
|
|
790
790
|
const {
|
|
@@ -995,17 +995,19 @@ class App {
|
|
|
995
995
|
timezone: getTimezone(),
|
|
996
996
|
condition: conditionName,
|
|
997
997
|
assistOnly: startOpts.assistOnly ?? this.socketMode,
|
|
998
|
+
width: window.screen.width,
|
|
999
|
+
height: window.screen.height,
|
|
998
1000
|
}),
|
|
999
1001
|
});
|
|
1000
1002
|
if (r.status !== 200) {
|
|
1001
1003
|
const error = await r.text();
|
|
1002
1004
|
const reason = error === CANCELED ? CANCELED : `Server error: ${r.status}. ${error}`;
|
|
1003
|
-
return
|
|
1005
|
+
return UnsuccessfulStart(reason);
|
|
1004
1006
|
}
|
|
1005
1007
|
if (!this.worker) {
|
|
1006
|
-
const reason = 'no worker found after start request (this
|
|
1008
|
+
const reason = 'no worker found after start request (this should not happen in real world)';
|
|
1007
1009
|
this.signalError(reason, []);
|
|
1008
|
-
return
|
|
1010
|
+
return UnsuccessfulStart(reason);
|
|
1009
1011
|
}
|
|
1010
1012
|
const { token, userUUID, projectID, beaconSizeLimit, compressionThreshold, // how big the batch should be before we decide to compress it
|
|
1011
1013
|
delay, // derived from token
|
|
@@ -1020,7 +1022,7 @@ class App {
|
|
|
1020
1022
|
(typeof beaconSizeLimit !== 'number' && typeof beaconSizeLimit !== 'undefined')) {
|
|
1021
1023
|
const reason = `Incorrect server response: ${JSON.stringify(r)}`;
|
|
1022
1024
|
this.signalError(reason, []);
|
|
1023
|
-
return
|
|
1025
|
+
return UnsuccessfulStart(reason);
|
|
1024
1026
|
}
|
|
1025
1027
|
this.delay = delay;
|
|
1026
1028
|
this.session.setSessionToken(token);
|
package/cjs/index.js
CHANGED
|
@@ -98,7 +98,7 @@ class API {
|
|
|
98
98
|
const orig = this.options.ingestPoint || index_js_1.DEFAULT_INGEST_POINT;
|
|
99
99
|
req.open('POST', orig + '/v1/web/not-started');
|
|
100
100
|
req.send(JSON.stringify({
|
|
101
|
-
trackerVersion: '14.0.
|
|
101
|
+
trackerVersion: '14.0.4',
|
|
102
102
|
projectKey: this.options.projectKey,
|
|
103
103
|
doNotTrack,
|
|
104
104
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|
package/cjs/modules/mouse.js
CHANGED
package/lib/app/index.js
CHANGED
|
@@ -65,7 +65,7 @@ export default class App {
|
|
|
65
65
|
this.stopCallbacks = [];
|
|
66
66
|
this.commitCallbacks = [];
|
|
67
67
|
this.activityState = ActivityState.NotActive;
|
|
68
|
-
this.version = '14.0.
|
|
68
|
+
this.version = '14.0.4'; // TODO: version compatability check inside each plugin.
|
|
69
69
|
this.socketMode = false;
|
|
70
70
|
this.compressionThreshold = 24 * 1000;
|
|
71
71
|
this.bc = null;
|
|
@@ -754,8 +754,8 @@ export default class App {
|
|
|
754
754
|
deviceMemory,
|
|
755
755
|
jsHeapSizeLimit,
|
|
756
756
|
timezone: getTimezone(),
|
|
757
|
-
width: window.
|
|
758
|
-
height: window.
|
|
757
|
+
width: window.screen.width,
|
|
758
|
+
height: window.screen.height,
|
|
759
759
|
}),
|
|
760
760
|
});
|
|
761
761
|
const {
|
|
@@ -966,17 +966,19 @@ export default class App {
|
|
|
966
966
|
timezone: getTimezone(),
|
|
967
967
|
condition: conditionName,
|
|
968
968
|
assistOnly: startOpts.assistOnly ?? this.socketMode,
|
|
969
|
+
width: window.screen.width,
|
|
970
|
+
height: window.screen.height,
|
|
969
971
|
}),
|
|
970
972
|
});
|
|
971
973
|
if (r.status !== 200) {
|
|
972
974
|
const error = await r.text();
|
|
973
975
|
const reason = error === CANCELED ? CANCELED : `Server error: ${r.status}. ${error}`;
|
|
974
|
-
return
|
|
976
|
+
return UnsuccessfulStart(reason);
|
|
975
977
|
}
|
|
976
978
|
if (!this.worker) {
|
|
977
|
-
const reason = 'no worker found after start request (this
|
|
979
|
+
const reason = 'no worker found after start request (this should not happen in real world)';
|
|
978
980
|
this.signalError(reason, []);
|
|
979
|
-
return
|
|
981
|
+
return UnsuccessfulStart(reason);
|
|
980
982
|
}
|
|
981
983
|
const { token, userUUID, projectID, beaconSizeLimit, compressionThreshold, // how big the batch should be before we decide to compress it
|
|
982
984
|
delay, // derived from token
|
|
@@ -991,7 +993,7 @@ export default class App {
|
|
|
991
993
|
(typeof beaconSizeLimit !== 'number' && typeof beaconSizeLimit !== 'undefined')) {
|
|
992
994
|
const reason = `Incorrect server response: ${JSON.stringify(r)}`;
|
|
993
995
|
this.signalError(reason, []);
|
|
994
|
-
return
|
|
996
|
+
return UnsuccessfulStart(reason);
|
|
995
997
|
}
|
|
996
998
|
this.delay = delay;
|
|
997
999
|
this.session.setSessionToken(token);
|
package/lib/index.js
CHANGED
|
@@ -67,7 +67,7 @@ export default class API {
|
|
|
67
67
|
const orig = this.options.ingestPoint || DEFAULT_INGEST_POINT;
|
|
68
68
|
req.open('POST', orig + '/v1/web/not-started');
|
|
69
69
|
req.send(JSON.stringify({
|
|
70
|
-
trackerVersion: '14.0.
|
|
70
|
+
trackerVersion: '14.0.4',
|
|
71
71
|
projectKey: this.options.projectKey,
|
|
72
72
|
doNotTrack,
|
|
73
73
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|
package/lib/modules/mouse.js
CHANGED