@stream-io/video-client 0.0.43 → 0.0.45
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 +8 -1
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +8 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8 -1
- package/dist/index.es.js.map +1 -1
- package/dist/version.d.ts +1 -0
- package/package.json +3 -2
- package/src/StreamVideoClient.ts +11 -0
- package/src/coordinator/connection/client.ts +4 -3
package/dist/index.cjs.js
CHANGED
|
@@ -11354,6 +11354,8 @@ class WSConnectionFallback {
|
|
|
11354
11354
|
}
|
|
11355
11355
|
}
|
|
11356
11356
|
|
|
11357
|
+
const version = '0.0.43';
|
|
11358
|
+
|
|
11357
11359
|
class StreamClient {
|
|
11358
11360
|
/**
|
|
11359
11361
|
* Initialize a client.
|
|
@@ -11811,7 +11813,7 @@ class StreamClient {
|
|
|
11811
11813
|
};
|
|
11812
11814
|
this.getUserAgent = () => {
|
|
11813
11815
|
return (this.userAgent ||
|
|
11814
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${
|
|
11816
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
11815
11817
|
};
|
|
11816
11818
|
this.setUserAgent = (userAgent) => {
|
|
11817
11819
|
this.userAgent = userAgent;
|
|
@@ -12146,6 +12148,11 @@ class StreamVideoClient {
|
|
|
12146
12148
|
}
|
|
12147
12149
|
else {
|
|
12148
12150
|
this.streamClient = new StreamClient(apiKeyOrArgs.apiKey, Object.assign(Object.assign({ persistUserOnConnectionFailure: true }, apiKeyOrArgs.options), { logLevel, logger: this.logger }));
|
|
12151
|
+
const sdkInfo = getSdkInfo();
|
|
12152
|
+
if (sdkInfo) {
|
|
12153
|
+
this.streamClient.setUserAgent(this.streamClient.getUserAgent() +
|
|
12154
|
+
`-video-${SdkType[sdkInfo.type].toLowerCase()}-sdk-${sdkInfo.major}.${sdkInfo.minor}.${sdkInfo.patch}`);
|
|
12155
|
+
}
|
|
12149
12156
|
this.user = apiKeyOrArgs.user;
|
|
12150
12157
|
this.token = apiKeyOrArgs.token || apiKeyOrArgs.tokenProvider;
|
|
12151
12158
|
if (this.user) {
|