@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.es.js
CHANGED
|
@@ -15290,7 +15290,7 @@ class StreamClient {
|
|
|
15290
15290
|
});
|
|
15291
15291
|
};
|
|
15292
15292
|
this.getUserAgent = () => {
|
|
15293
|
-
const version = "1.
|
|
15293
|
+
const version = "1.3.0" ;
|
|
15294
15294
|
return (this.userAgent ||
|
|
15295
15295
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
15296
15296
|
};
|
|
@@ -15651,7 +15651,9 @@ class StreamVideoClient {
|
|
|
15651
15651
|
const user = apiKeyOrArgs.user;
|
|
15652
15652
|
const token = apiKeyOrArgs.token || apiKeyOrArgs.tokenProvider;
|
|
15653
15653
|
if (user) {
|
|
15654
|
-
this.connectUser(user, token)
|
|
15654
|
+
this.connectUser(user, token).catch((err) => {
|
|
15655
|
+
this.logger('error', 'Failed to connect', err);
|
|
15656
|
+
});
|
|
15655
15657
|
}
|
|
15656
15658
|
}
|
|
15657
15659
|
}
|