@stream-io/video-client 0.0.2-alpha.17 → 0.0.2-alpha.18
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 +9 -0
- package/dist/index.browser.es.js +7 -2
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +7 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7 -2
- package/dist/index.es.js.map +1 -1
- package/dist/src/gen/coordinator/index.d.ts +24 -0
- package/package.json +1 -1
- package/src/Call.ts +11 -4
- package/src/gen/coordinator/index.ts +24 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.2-alpha.18](https://github.com/GetStream/stream-video-js/compare/client0.0.2-alpha.17...client0.0.2-alpha.18) (2023-06-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* reflect updateCall response data into call's state ([#578](https://github.com/GetStream/stream-video-js/issues/578)) ([410a926](https://github.com/GetStream/stream-video-js/commit/410a926e30f65396446a9c3d93d18f0367d7eda8))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
5
14
|
## [0.0.2-alpha.17](https://github.com/GetStream/stream-video-js/compare/client0.0.2-alpha.16...client0.0.2-alpha.17) (2023-06-01)
|
|
6
15
|
|
|
7
16
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -9136,7 +9136,12 @@ class Call {
|
|
|
9136
9136
|
* @param updates the updates to apply to the call.
|
|
9137
9137
|
*/
|
|
9138
9138
|
this.update = (updates) => __awaiter(this, void 0, void 0, function* () {
|
|
9139
|
-
|
|
9139
|
+
const response = yield this.streamClient.patch(`${this.streamClientBasePath}`, updates);
|
|
9140
|
+
const { call, members, own_capabilities } = response;
|
|
9141
|
+
this.state.setMetadata(call);
|
|
9142
|
+
this.state.setMembers(members);
|
|
9143
|
+
this.state.setOwnCapabilities(own_capabilities);
|
|
9144
|
+
return response;
|
|
9140
9145
|
});
|
|
9141
9146
|
/**
|
|
9142
9147
|
* Ends the call. Once the call is ended, it cannot be re-joined.
|
|
@@ -10972,7 +10977,7 @@ class StreamClient {
|
|
|
10972
10977
|
}
|
|
10973
10978
|
getUserAgent() {
|
|
10974
10979
|
return (this.userAgent ||
|
|
10975
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.2-alpha.
|
|
10980
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.2-alpha.17"}`);
|
|
10976
10981
|
}
|
|
10977
10982
|
setUserAgent(userAgent) {
|
|
10978
10983
|
this.userAgent = userAgent;
|