stream-chat 7.2.0 → 8.0.0
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 +4 -2
- 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 +4 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +4 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/utils.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -1271,7 +1271,9 @@ function getRandomValuesWithMathRandom(bytes) {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
|
|
1273
1273
|
var getRandomValues = function () {
|
|
1274
|
-
|
|
1274
|
+
var _crypto;
|
|
1275
|
+
|
|
1276
|
+
if (typeof crypto !== 'undefined' && typeof ((_crypto = crypto) === null || _crypto === void 0 ? void 0 : _crypto.getRandomValues) !== 'undefined') {
|
|
1275
1277
|
return crypto.getRandomValues.bind(crypto);
|
|
1276
1278
|
} else if (typeof msCrypto !== 'undefined') {
|
|
1277
1279
|
return msCrypto.getRandomValues.bind(msCrypto);
|
|
@@ -9849,7 +9851,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9849
9851
|
}, {
|
|
9850
9852
|
key: "getUserAgent",
|
|
9851
9853
|
value: function getUserAgent() {
|
|
9852
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "
|
|
9854
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.0.0");
|
|
9853
9855
|
}
|
|
9854
9856
|
}, {
|
|
9855
9857
|
key: "setUserAgent",
|