stream-chat 7.2.0 → 8.0.0-dev.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 +3 -3
- package/src/utils.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-dev.0",
|
|
4
4
|
"description": "JS SDK for the Stream Chat API",
|
|
5
5
|
"author": "GetStream",
|
|
6
6
|
"homepage": "https://getstream.io/chat/",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"prepare": "yarn run build",
|
|
128
128
|
"preversion": "yarn && yarn lint && yarn test-unit",
|
|
129
129
|
"version": "git add yarn.lock",
|
|
130
|
-
"postversion": "git push && git push --tags
|
|
130
|
+
"postversion": "git push && git push --tags"
|
|
131
131
|
},
|
|
132
132
|
"husky": {
|
|
133
133
|
"hooks": {
|
|
@@ -135,6 +135,6 @@
|
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
"engines": {
|
|
138
|
-
"node": "
|
|
138
|
+
"node": ">=16"
|
|
139
139
|
}
|
|
140
140
|
}
|
package/src/utils.ts
CHANGED
|
@@ -171,7 +171,7 @@ function getRandomValuesWithMathRandom(bytes: Uint8Array): void {
|
|
|
171
171
|
declare const msCrypto: Crypto;
|
|
172
172
|
|
|
173
173
|
const getRandomValues = (() => {
|
|
174
|
-
if (typeof crypto !== 'undefined') {
|
|
174
|
+
if (typeof crypto !== 'undefined' && typeof crypto?.getRandomValues !== 'undefined') {
|
|
175
175
|
return crypto.getRandomValues.bind(crypto);
|
|
176
176
|
} else if (typeof msCrypto !== 'undefined') {
|
|
177
177
|
return msCrypto.getRandomValues.bind(msCrypto);
|