stream-chat 8.13.0 → 8.13.1

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/index.js CHANGED
@@ -1344,6 +1344,10 @@ var axiosParamsSerializer = function axiosParamsSerializer(params) {
1344
1344
  var newParams = [];
1345
1345
 
1346
1346
  for (var k in params) {
1347
+ // Stream backend doesn't treat "undefined" value same as value not being present.
1348
+ // So, we need to skip the undefined values.
1349
+ if (params[k] === undefined) continue;
1350
+
1347
1351
  if (Array.isArray(params[k]) || _typeof__default['default'](params[k]) === 'object') {
1348
1352
  newParams.push("".concat(k, "=").concat(encodeURIComponent(JSON.stringify(params[k]))));
1349
1353
  } else {
@@ -10188,7 +10192,7 @@ var StreamChat = /*#__PURE__*/function () {
10188
10192
  }, {
10189
10193
  key: "getUserAgent",
10190
10194
  value: function getUserAgent() {
10191
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.13.0");
10195
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.13.1");
10192
10196
  }
10193
10197
  }, {
10194
10198
  key: "setUserAgent",