@stream-io/video-client 0.0.35 → 0.0.36
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 +7 -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/StreamVideoClient.ts +0 -1
- package/src/coordinator/connection/client.ts +4 -1
- package/src/rtc/flows/join.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.0.36](https://github.com/GetStream/stream-video-js/compare/client0.0.35...client0.0.36) (2023-07-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* wait for connection ok for all API requests ([#752](https://github.com/GetStream/stream-video-js/issues/752)) ([82f441d](https://github.com/GetStream/stream-video-js/commit/82f441d5fb84ddc2c16fb97ca362e05fff78b4dd))
|
|
11
|
+
|
|
5
12
|
### [0.0.35](https://github.com/GetStream/stream-video-js/compare/client0.0.34...client0.0.35) (2023-07-05)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -8488,7 +8488,6 @@ const registerRingingCallEventHandlers = (call) => {
|
|
|
8488
8488
|
* @param data the data for the call.
|
|
8489
8489
|
*/
|
|
8490
8490
|
const join = (httpClient, type, id, data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
8491
|
-
yield httpClient.connectionIdPromise;
|
|
8492
8491
|
const joinCallResponse = yield doJoin(httpClient, type, id, data);
|
|
8493
8492
|
const { call, credentials, members, own_capabilities } = joinCallResponse;
|
|
8494
8493
|
return {
|
|
@@ -11484,7 +11483,10 @@ class StreamClient {
|
|
|
11484
11483
|
if (this.waitForConnectPromise) {
|
|
11485
11484
|
yield this.waitForConnectPromise;
|
|
11486
11485
|
}
|
|
11487
|
-
yield
|
|
11486
|
+
yield Promise.all([
|
|
11487
|
+
this.tokenManager.tokenReady(),
|
|
11488
|
+
this.connectionIdPromise,
|
|
11489
|
+
]);
|
|
11488
11490
|
}
|
|
11489
11491
|
const requestConfig = this._enrichAxiosOptions(options);
|
|
11490
11492
|
try {
|
|
@@ -11833,7 +11835,7 @@ class StreamClient {
|
|
|
11833
11835
|
}
|
|
11834
11836
|
getUserAgent() {
|
|
11835
11837
|
return (this.userAgent ||
|
|
11836
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.
|
|
11838
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.35"}`);
|
|
11837
11839
|
}
|
|
11838
11840
|
setUserAgent(userAgent) {
|
|
11839
11841
|
this.userAgent = userAgent;
|
|
@@ -11977,8 +11979,6 @@ class StreamVideoClient {
|
|
|
11977
11979
|
* @param data the query data.
|
|
11978
11980
|
*/
|
|
11979
11981
|
this.queryCalls = (data) => __awaiter(this, void 0, void 0, function* () {
|
|
11980
|
-
if (data.watch)
|
|
11981
|
-
yield this.streamClient.connectionIdPromise;
|
|
11982
11982
|
const response = yield this.streamClient.post('/calls', data);
|
|
11983
11983
|
const calls = response.calls.map((c) => {
|
|
11984
11984
|
const call = new Call({
|