@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.es.js
CHANGED
|
@@ -6641,7 +6641,7 @@ const getSdkVersion = (sdk) => {
|
|
|
6641
6641
|
return sdk ? `${sdk.major}.${sdk.minor}.${sdk.patch}` : '0.0.0-development';
|
|
6642
6642
|
};
|
|
6643
6643
|
|
|
6644
|
-
const version = "1.53.
|
|
6644
|
+
const version = "1.53.2";
|
|
6645
6645
|
const [major, minor, patch] = version.split('.');
|
|
6646
6646
|
let sdkInfo = {
|
|
6647
6647
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -17463,11 +17463,11 @@ class StreamClient {
|
|
|
17463
17463
|
return await this.wsConnection.connect(this.defaultWSTimeout);
|
|
17464
17464
|
};
|
|
17465
17465
|
this.getSdkVersion = () => this.options.clientAppIdentifier?.sdkVersion ||
|
|
17466
|
-
"1.53.
|
|
17466
|
+
"1.53.2";
|
|
17467
17467
|
this.getUserAgent = () => {
|
|
17468
17468
|
if (!this.cachedUserAgent) {
|
|
17469
17469
|
const { clientAppIdentifier = {} } = this.options;
|
|
17470
|
-
const { sdkName = 'js', sdkVersion = "1.53.
|
|
17470
|
+
const { sdkName = 'js', sdkVersion = "1.53.2", ...extras } = clientAppIdentifier;
|
|
17471
17471
|
this.cachedUserAgent = [
|
|
17472
17472
|
`stream-video-${sdkName}-v${sdkVersion}`,
|
|
17473
17473
|
...Object.entries(extras).map(([key, value]) => `${key}=${value}`),
|
|
@@ -17874,7 +17874,7 @@ class ClientEventReporter {
|
|
|
17874
17874
|
const coordinatorConnectId = this.coordinatorConnectId;
|
|
17875
17875
|
const ctx = this.callContexts.get(cid);
|
|
17876
17876
|
this.send({
|
|
17877
|
-
user_id: this.streamClient.userID,
|
|
17877
|
+
user_id: this.streamClient.userID || this.coordinatorConnectUserId,
|
|
17878
17878
|
type: ctx?.callType,
|
|
17879
17879
|
id: ctx?.callId,
|
|
17880
17880
|
call_cid: cid,
|
|
@@ -18127,7 +18127,7 @@ class ClientEventReporter {
|
|
|
18127
18127
|
const ctx = this.callContexts.get(cid);
|
|
18128
18128
|
const coordinatorConnectId = this.coordinatorConnectId;
|
|
18129
18129
|
return {
|
|
18130
|
-
user_id: this.streamClient.userID,
|
|
18130
|
+
user_id: this.streamClient.userID || this.coordinatorConnectUserId,
|
|
18131
18131
|
type: ctx?.callType ?? '',
|
|
18132
18132
|
id: ctx?.callId ?? '',
|
|
18133
18133
|
call_cid: cid,
|