@stream-io/video-client 0.0.20 → 0.0.21
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 +4 -2
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +4 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -2
- package/dist/index.es.js.map +1 -1
- package/dist/src/StreamVideoClient.d.ts +3 -1
- package/package.json +1 -1
- package/src/StreamVideoClient.ts +3 -1
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.21](https://github.com/GetStream/stream-video-js/compare/client0.0.20...client0.0.21) (2023-06-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Documentation
|
|
9
|
+
|
|
10
|
+
* **react-sdk:** update audio rooms tutorial ([#659](https://github.com/GetStream/stream-video-js/issues/659)) ([11f2e80](https://github.com/GetStream/stream-video-js/commit/11f2e8090811fbd8478724b3d2c2c8af3b19a0c5))
|
|
11
|
+
|
|
5
12
|
### [0.0.20](https://github.com/GetStream/stream-video-js/compare/client0.0.19...client0.0.20) (2023-06-21)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -11079,7 +11079,7 @@ class StreamClient {
|
|
|
11079
11079
|
}
|
|
11080
11080
|
getUserAgent() {
|
|
11081
11081
|
return (this.userAgent ||
|
|
11082
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.
|
|
11082
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.20"}`);
|
|
11083
11083
|
}
|
|
11084
11084
|
setUserAgent(userAgent) {
|
|
11085
11085
|
this.userAgent = userAgent;
|
|
@@ -11275,6 +11275,7 @@ class StreamVideoClient {
|
|
|
11275
11275
|
* @param {string} push_provider the push provider name (eg. apn, firebase)
|
|
11276
11276
|
* @param {string} push_provider_name user provided push provider name
|
|
11277
11277
|
* @param {string} [userID] the user id (defaults to current user)
|
|
11278
|
+
* @param {boolean} [voip_token] enables use of VoIP token for push notifications on iOS platform
|
|
11278
11279
|
*/
|
|
11279
11280
|
this.addDevice = (id, push_provider, push_provider_name, userID, voip_token) => __awaiter(this, void 0, void 0, function* () {
|
|
11280
11281
|
return yield this.streamClient.post('/devices', Object.assign(Object.assign({ id,
|
|
@@ -11465,10 +11466,11 @@ class StreamVideoClient {
|
|
|
11465
11466
|
}
|
|
11466
11467
|
/**
|
|
11467
11468
|
* createToken - Creates a token to authenticate this user. This function is used server side.
|
|
11468
|
-
* The resulting token should be passed to the client side when the users
|
|
11469
|
+
* The resulting token should be passed to the client side when the users register or logs in.
|
|
11469
11470
|
*
|
|
11470
11471
|
* @param {string} userID The User ID
|
|
11471
11472
|
* @param {number} [exp] The expiration time for the token expressed in the number of seconds since the epoch
|
|
11473
|
+
* @param {number} [iat] The timestamp when a token has been issued
|
|
11472
11474
|
* @param call_cids for anonymous tokens you have to provide the call cids the use can join
|
|
11473
11475
|
*
|
|
11474
11476
|
* @return {string} Returns a token
|