@stream-io/video-client 1.2.2 → 1.3.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/CHANGELOG.md +14 -0
- package/dist/index.browser.es.js +4 -2
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +4 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/StreamVideoClient.ts +3 -1
package/dist/index.cjs.js
CHANGED
|
@@ -15310,7 +15310,7 @@ class StreamClient {
|
|
|
15310
15310
|
});
|
|
15311
15311
|
};
|
|
15312
15312
|
this.getUserAgent = () => {
|
|
15313
|
-
const version = "1.
|
|
15313
|
+
const version = "1.3.0" ;
|
|
15314
15314
|
return (this.userAgent ||
|
|
15315
15315
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
15316
15316
|
};
|
|
@@ -15671,7 +15671,9 @@ class StreamVideoClient {
|
|
|
15671
15671
|
const user = apiKeyOrArgs.user;
|
|
15672
15672
|
const token = apiKeyOrArgs.token || apiKeyOrArgs.tokenProvider;
|
|
15673
15673
|
if (user) {
|
|
15674
|
-
this.connectUser(user, token)
|
|
15674
|
+
this.connectUser(user, token).catch((err) => {
|
|
15675
|
+
this.logger('error', 'Failed to connect', err);
|
|
15676
|
+
});
|
|
15675
15677
|
}
|
|
15676
15678
|
}
|
|
15677
15679
|
}
|