stream-chat 8.12.1 → 8.12.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.
- package/dist/browser.es.js +15 -1
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.full-bundle.min.js +1 -1
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/browser.js +15 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +15 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/types/client.d.ts +2 -8
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/utils.d.ts +2 -0
- package/dist/types/utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +3 -0
- package/src/utils.ts +14 -0
package/dist/browser.es.js
CHANGED
|
@@ -1311,6 +1311,19 @@ function removeConnectionEventListeners(cb) {
|
|
|
1311
1311
|
window.removeEventListener('online', cb);
|
|
1312
1312
|
}
|
|
1313
1313
|
}
|
|
1314
|
+
var axiosParamsSerializer = function axiosParamsSerializer(params) {
|
|
1315
|
+
var newParams = [];
|
|
1316
|
+
|
|
1317
|
+
for (var k in params) {
|
|
1318
|
+
if (Array.isArray(params[k]) || _typeof(params[k]) === 'object') {
|
|
1319
|
+
newParams.push("".concat(k, "=").concat(encodeURIComponent(JSON.stringify(params[k]))));
|
|
1320
|
+
} else {
|
|
1321
|
+
newParams.push("".concat(k, "=").concat(encodeURIComponent(params[k])));
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
return newParams.join('&');
|
|
1326
|
+
};
|
|
1314
1327
|
|
|
1315
1328
|
function _createForOfIteratorHelper$2(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
1316
1329
|
|
|
@@ -6913,6 +6926,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
6913
6926
|
this.insightMetrics = new InsightMetrics();
|
|
6914
6927
|
this.defaultWSTimeoutWithFallback = 6000;
|
|
6915
6928
|
this.defaultWSTimeout = 15000;
|
|
6929
|
+
this.axiosInstance.defaults.paramsSerializer = axiosParamsSerializer;
|
|
6916
6930
|
/**
|
|
6917
6931
|
* logger function should accept 3 parameters:
|
|
6918
6932
|
* @param logLevel string
|
|
@@ -10073,7 +10087,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10073
10087
|
}, {
|
|
10074
10088
|
key: "getUserAgent",
|
|
10075
10089
|
value: function getUserAgent() {
|
|
10076
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.12.
|
|
10090
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.12.2");
|
|
10077
10091
|
}
|
|
10078
10092
|
}, {
|
|
10079
10093
|
key: "setUserAgent",
|