@openreplay/tracker 18.0.9 → 18.0.10
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/dist/cjs/entry.js +4 -4
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/lib/entry.js +4 -4
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +4 -4
- package/dist/lib/index.js.map +1 -1
- package/package.json +2 -2
package/dist/cjs/entry.js
CHANGED
|
@@ -4013,7 +4013,7 @@ class App {
|
|
|
4013
4013
|
this.stopCallbacks = [];
|
|
4014
4014
|
this.commitCallbacks = [];
|
|
4015
4015
|
this.activityState = ActivityState.NotActive;
|
|
4016
|
-
this.version = '18.0.
|
|
4016
|
+
this.version = '18.0.10'; // TODO: version compatability check inside each plugin.
|
|
4017
4017
|
this.socketMode = false;
|
|
4018
4018
|
this.compressionThreshold = 24 * 1000;
|
|
4019
4019
|
this.bc = null;
|
|
@@ -7419,7 +7419,7 @@ class NetworkMessage {
|
|
|
7419
7419
|
return null;
|
|
7420
7420
|
const gqlHeader = "application/graphql-response";
|
|
7421
7421
|
const isGraphql = messageInfo.url.includes("/graphql")
|
|
7422
|
-
|| Object.values(messageInfo.request.headers).some(v => v && v.includes(gqlHeader));
|
|
7422
|
+
|| Object.values(messageInfo.request.headers).some(v => v && typeof v === 'string' && v.includes(gqlHeader));
|
|
7423
7423
|
if (isGraphql && messageInfo.response.body && typeof messageInfo.response.body === 'string') {
|
|
7424
7424
|
const isError = messageInfo.response.body.includes("errors");
|
|
7425
7425
|
messageInfo.status = isError ? 400 : 200;
|
|
@@ -9012,7 +9012,7 @@ class ConstantProperties {
|
|
|
9012
9012
|
user_id: this.user_id,
|
|
9013
9013
|
distinct_id: this.deviceId,
|
|
9014
9014
|
sdk_edition: 'web',
|
|
9015
|
-
sdk_version: '18.0.
|
|
9015
|
+
sdk_version: '18.0.10',
|
|
9016
9016
|
timezone: getUTCOffsetString(),
|
|
9017
9017
|
search_engine: this.searchEngine,
|
|
9018
9018
|
};
|
|
@@ -9714,7 +9714,7 @@ class API {
|
|
|
9714
9714
|
this.signalStartIssue = (reason, missingApi) => {
|
|
9715
9715
|
const doNotTrack = this.checkDoNotTrack();
|
|
9716
9716
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
9717
|
-
trackerVersion: '18.0.
|
|
9717
|
+
trackerVersion: '18.0.10',
|
|
9718
9718
|
projectKey: this.options.projectKey,
|
|
9719
9719
|
doNotTrack,
|
|
9720
9720
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|