stream-chat 4.4.1 → 4.4.2

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.
@@ -3424,7 +3424,6 @@ var ClientState = /*#__PURE__*/function () {
3424
3424
  function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
3425
3425
 
3426
3426
  function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
3427
-
3428
3427
  var InsightMetrics = function InsightMetrics() {
3429
3428
  _classCallCheck(this, InsightMetrics);
3430
3429
 
@@ -3434,9 +3433,12 @@ var InsightMetrics = function InsightMetrics() {
3434
3433
 
3435
3434
  _defineProperty(this, "wsTotalFailures", void 0);
3436
3435
 
3436
+ _defineProperty(this, "instanceClientId", void 0);
3437
+
3437
3438
  this.connectionStartTimestamp = null;
3438
3439
  this.wsTotalFailures = 0;
3439
3440
  this.wsConsecutiveFailures = 0;
3441
+ this.instanceClientId = randomId();
3440
3442
  };
3441
3443
  function buildWsFatalInsight(connection, event) {
3442
3444
  return _objectSpread$2({
@@ -3468,7 +3470,8 @@ function buildWsBaseInsight(connection) {
3468
3470
  ws_total_failures: connection.insightMetrics.wsTotalFailures,
3469
3471
  request_id: connection.requestID,
3470
3472
  online: typeof navigator !== 'undefined' ? (_navigator = navigator) === null || _navigator === void 0 ? void 0 : _navigator.onLine : null,
3471
- user_agent: typeof navigator !== 'undefined' ? (_navigator2 = navigator) === null || _navigator2 === void 0 ? void 0 : _navigator2.userAgent : null
3473
+ user_agent: typeof navigator !== 'undefined' ? (_navigator2 = navigator) === null || _navigator2 === void 0 ? void 0 : _navigator2.userAgent : null,
3474
+ instance_client_id: connection.insightMetrics.instanceClientId
3472
3475
  };
3473
3476
  }
3474
3477
 
@@ -8346,7 +8349,7 @@ var StreamChat = /*#__PURE__*/function () {
8346
8349
  }, {
8347
8350
  key: "getUserAgent",
8348
8351
  value: function getUserAgent() {
8349
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "4.4.1");
8352
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "4.4.2");
8350
8353
  }
8351
8354
  }, {
8352
8355
  key: "setUserAgent",