@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/lib/entry.js CHANGED
@@ -4009,7 +4009,7 @@ class App {
4009
4009
  this.stopCallbacks = [];
4010
4010
  this.commitCallbacks = [];
4011
4011
  this.activityState = ActivityState.NotActive;
4012
- this.version = '18.0.9'; // TODO: version compatability check inside each plugin.
4012
+ this.version = '18.0.10'; // TODO: version compatability check inside each plugin.
4013
4013
  this.socketMode = false;
4014
4014
  this.compressionThreshold = 24 * 1000;
4015
4015
  this.bc = null;
@@ -7415,7 +7415,7 @@ class NetworkMessage {
7415
7415
  return null;
7416
7416
  const gqlHeader = "application/graphql-response";
7417
7417
  const isGraphql = messageInfo.url.includes("/graphql")
7418
- || Object.values(messageInfo.request.headers).some(v => v && v.includes(gqlHeader));
7418
+ || Object.values(messageInfo.request.headers).some(v => v && typeof v === 'string' && v.includes(gqlHeader));
7419
7419
  if (isGraphql && messageInfo.response.body && typeof messageInfo.response.body === 'string') {
7420
7420
  const isError = messageInfo.response.body.includes("errors");
7421
7421
  messageInfo.status = isError ? 400 : 200;
@@ -9008,7 +9008,7 @@ class ConstantProperties {
9008
9008
  user_id: this.user_id,
9009
9009
  distinct_id: this.deviceId,
9010
9010
  sdk_edition: 'web',
9011
- sdk_version: '18.0.9',
9011
+ sdk_version: '18.0.10',
9012
9012
  timezone: getUTCOffsetString(),
9013
9013
  search_engine: this.searchEngine,
9014
9014
  };
@@ -9710,7 +9710,7 @@ class API {
9710
9710
  this.signalStartIssue = (reason, missingApi) => {
9711
9711
  const doNotTrack = this.checkDoNotTrack();
9712
9712
  console.log("Tracker couldn't start due to:", JSON.stringify({
9713
- trackerVersion: '18.0.9',
9713
+ trackerVersion: '18.0.10',
9714
9714
  projectKey: this.options.projectKey,
9715
9715
  doNotTrack,
9716
9716
  reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,