@reactoo/watchtogether-sdk-js 2.7.18 → 2.7.19

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.7.18",
3
+ "version": "2.7.19",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -113,6 +113,7 @@ class Auth {
113
113
  isLoggedInAsDevice: this.isLoggedInAs(this.__parsedJwt, 'device'),
114
114
  isLoggedInAsObserver: this.isLoggedInAs(this.__parsedJwt, 'observer'),
115
115
  isLoggedInAsInstanceAdmin: this.isLoggedInAs(this.__parsedJwt, 'instanceAdmin'),
116
+ isDemoAccount: this.isLoggedInAs(this.__parsedJwt, 'demo'),
116
117
  isLoggedInAsAdmin: this.isLoggedInAs(this.__parsedJwt, 'admin'),
117
118
  domain: this.getDomain(this.__parsedJwt)
118
119
  });
@@ -126,6 +127,7 @@ class Auth {
126
127
  isLoggedInAsDevice: false,
127
128
  isLoggedInAsObserver: false,
128
129
  isLoggedInAsInstanceAdmin: false,
130
+ isDemoAccount: false,
129
131
  isLoggedInAsAdmin: false,
130
132
  isReauth
131
133
  });
@@ -129,6 +129,7 @@ const maxJitter = (x) => {
129
129
  }
130
130
 
131
131
  const chunkArray = (array, chunkSize) => {
132
+ array = [...array];
132
133
  if (!array?.length) return [[]];
133
134
 
134
135
  let results = [];