@stream-io/video-client 0.1.6 → 0.1.8
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 +17 -9
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +17 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +17 -9
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +9 -1
- package/dist/src/coordinator/connection/client.d.ts +3 -3
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/Call.ts +11 -1
- package/src/__tests__/server-side/call-types.test.ts +11 -1
- package/src/__tests__/server-side/call.test.ts +1 -1
- package/src/coordinator/connection/client.ts +18 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.1.8](https://github.com/GetStream/stream-video-js/compare/client0.1.7...client0.1.8) (2023-07-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* Add call.create ([#862](https://github.com/GetStream/stream-video-js/issues/862)) ([6d07d0b](https://github.com/GetStream/stream-video-js/commit/6d07d0b5248b6339b4ee95af90dba4c4e1f5c5db))
|
|
11
|
+
|
|
12
|
+
### [0.1.7](https://github.com/GetStream/stream-video-js/compare/client0.1.6...client0.1.7) (2023-07-26)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* support goLive({ notify: true }) ([#848](https://github.com/GetStream/stream-video-js/issues/848)) ([ed67b28](https://github.com/GetStream/stream-video-js/commit/ed67b280082e91e356ee7c0063f2dafab6f8e0c2))
|
|
18
|
+
|
|
5
19
|
### [0.1.6](https://github.com/GetStream/stream-video-js/compare/client0.1.5...client0.1.6) (2023-07-26)
|
|
6
20
|
|
|
7
21
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -9539,6 +9539,14 @@ class Call {
|
|
|
9539
9539
|
}
|
|
9540
9540
|
return response;
|
|
9541
9541
|
});
|
|
9542
|
+
/**
|
|
9543
|
+
* Creates a call
|
|
9544
|
+
*
|
|
9545
|
+
* @param data the data to create the call with.
|
|
9546
|
+
*/
|
|
9547
|
+
this.create = (data) => __awaiter(this, void 0, void 0, function* () {
|
|
9548
|
+
return this.getOrCreate(data);
|
|
9549
|
+
});
|
|
9542
9550
|
/**
|
|
9543
9551
|
* A shortcut for {@link Call.get} with `ring` parameter set to `true`.
|
|
9544
9552
|
* Will send a `call.ring` event to the call members.
|
|
@@ -10268,8 +10276,8 @@ class Call {
|
|
|
10268
10276
|
/**
|
|
10269
10277
|
* Starts the livestreaming of the call.
|
|
10270
10278
|
*/
|
|
10271
|
-
this.goLive = () => __awaiter(this, void 0, void 0, function* () {
|
|
10272
|
-
return this.streamClient.post(`${this.streamClientBasePath}/go_live`, {});
|
|
10279
|
+
this.goLive = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
10280
|
+
return this.streamClient.post(`${this.streamClientBasePath}/go_live`, {}, params);
|
|
10273
10281
|
});
|
|
10274
10282
|
/**
|
|
10275
10283
|
* Stops the livestreaming of the call.
|
|
@@ -11636,7 +11644,7 @@ class WSConnectionFallback {
|
|
|
11636
11644
|
}
|
|
11637
11645
|
}
|
|
11638
11646
|
|
|
11639
|
-
const version = '0.1.
|
|
11647
|
+
const version = '0.1.8';
|
|
11640
11648
|
|
|
11641
11649
|
const logger = getLogger(['location']);
|
|
11642
11650
|
const HINT_URL = `https://hint.stream-io-video.com/`;
|
|
@@ -11977,14 +11985,14 @@ class StreamClient {
|
|
|
11977
11985
|
params,
|
|
11978
11986
|
});
|
|
11979
11987
|
};
|
|
11980
|
-
this.put = (url, data) => {
|
|
11981
|
-
return this.doAxiosRequest('put', url, data);
|
|
11988
|
+
this.put = (url, data, params) => {
|
|
11989
|
+
return this.doAxiosRequest('put', url, data, { params });
|
|
11982
11990
|
};
|
|
11983
|
-
this.post = (url, data) => {
|
|
11984
|
-
return this.doAxiosRequest('post', url, data);
|
|
11991
|
+
this.post = (url, data, params) => {
|
|
11992
|
+
return this.doAxiosRequest('post', url, data, { params });
|
|
11985
11993
|
};
|
|
11986
|
-
this.patch = (url, data) => {
|
|
11987
|
-
return this.doAxiosRequest('patch', url, data);
|
|
11994
|
+
this.patch = (url, data, params) => {
|
|
11995
|
+
return this.doAxiosRequest('patch', url, data, { params });
|
|
11988
11996
|
};
|
|
11989
11997
|
this.delete = (url, params) => {
|
|
11990
11998
|
return this.doAxiosRequest('delete', url, null, {
|