@reactoo/watchtogether-sdk-js 2.8.15-beta.2 → 2.8.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactoo/watchtogether-sdk-js",
3
- "version": "2.8.15-beta.2",
3
+ "version": "2.8.16",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "dist/watchtogether-sdk.min.js",
6
6
  "module": "dist/watchtogether-sdk.min.js",
@@ -118,9 +118,6 @@ let asset = function() {
118
118
  },
119
119
 
120
120
  createHighlightAssetWithThumbnail: (file, id, title, roomIds, highlight = {}, initiationData = null) => {
121
-
122
- console.log(id, id || generateUUID(), title, roomIds, highlight, initiationData);
123
-
124
121
  return this.__privates.auth.__client
125
122
  .then(client => Promise.all([client, initiationData ? Promise.resolve(initiationData) : client.apis.asset.initiateAssetUpload({id: id || generateUUID()})]))
126
123
  .then(([client, response]) => Promise.all([client, client.http({url: response.data.signedUrl, method: response.data.httpMethod, headers: {"Content-Type":file.type}, body:file}), response.data.id]))
@@ -947,6 +947,11 @@ class RoomSession {
947
947
  return json;
948
948
  })
949
949
  .catch(e => {
950
+
951
+ if(e?.code === 403) {
952
+ this.disconnect();
953
+ }
954
+
950
955
  return Promise.reject({error: e, requestData});
951
956
  })
952
957
  }