@stream-io/video-client 1.53.1 → 1.53.2
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 +6 -0
- package/dist/index.browser.es.js +5 -5
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -5
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/reporting/ClientEventReporter.ts +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -6660,7 +6660,7 @@ const getSdkVersion = (sdk) => {
|
|
|
6660
6660
|
return sdk ? `${sdk.major}.${sdk.minor}.${sdk.patch}` : '0.0.0-development';
|
|
6661
6661
|
};
|
|
6662
6662
|
|
|
6663
|
-
const version = "1.53.
|
|
6663
|
+
const version = "1.53.2";
|
|
6664
6664
|
const [major, minor, patch] = version.split('.');
|
|
6665
6665
|
let sdkInfo = {
|
|
6666
6666
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -17482,11 +17482,11 @@ class StreamClient {
|
|
|
17482
17482
|
return await this.wsConnection.connect(this.defaultWSTimeout);
|
|
17483
17483
|
};
|
|
17484
17484
|
this.getSdkVersion = () => this.options.clientAppIdentifier?.sdkVersion ||
|
|
17485
|
-
"1.53.
|
|
17485
|
+
"1.53.2";
|
|
17486
17486
|
this.getUserAgent = () => {
|
|
17487
17487
|
if (!this.cachedUserAgent) {
|
|
17488
17488
|
const { clientAppIdentifier = {} } = this.options;
|
|
17489
|
-
const { sdkName = 'js', sdkVersion = "1.53.
|
|
17489
|
+
const { sdkName = 'js', sdkVersion = "1.53.2", ...extras } = clientAppIdentifier;
|
|
17490
17490
|
this.cachedUserAgent = [
|
|
17491
17491
|
`stream-video-${sdkName}-v${sdkVersion}`,
|
|
17492
17492
|
...Object.entries(extras).map(([key, value]) => `${key}=${value}`),
|
|
@@ -17893,7 +17893,7 @@ class ClientEventReporter {
|
|
|
17893
17893
|
const coordinatorConnectId = this.coordinatorConnectId;
|
|
17894
17894
|
const ctx = this.callContexts.get(cid);
|
|
17895
17895
|
this.send({
|
|
17896
|
-
user_id: this.streamClient.userID,
|
|
17896
|
+
user_id: this.streamClient.userID || this.coordinatorConnectUserId,
|
|
17897
17897
|
type: ctx?.callType,
|
|
17898
17898
|
id: ctx?.callId,
|
|
17899
17899
|
call_cid: cid,
|
|
@@ -18146,7 +18146,7 @@ class ClientEventReporter {
|
|
|
18146
18146
|
const ctx = this.callContexts.get(cid);
|
|
18147
18147
|
const coordinatorConnectId = this.coordinatorConnectId;
|
|
18148
18148
|
return {
|
|
18149
|
-
user_id: this.streamClient.userID,
|
|
18149
|
+
user_id: this.streamClient.userID || this.coordinatorConnectUserId,
|
|
18150
18150
|
type: ctx?.callType ?? '',
|
|
18151
18151
|
id: ctx?.callId ?? '',
|
|
18152
18152
|
call_cid: cid,
|