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