homebridge-xbox-tv 3.0.2-beta.2 → 3.0.2-beta.3

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,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Xbox TV",
3
3
  "name": "homebridge-xbox-tv",
4
- "version": "3.0.2-beta.2",
4
+ "version": "3.0.2-beta.3",
5
5
  "description": "Homebridge plugin to control Xbox game consoles.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -190,7 +190,7 @@ class Authentication extends EventEmitter{
190
190
  await this.saveTokens(this.tokens);
191
191
  return { headers: `XBL3.0 x=${this.tokens.xsts.DisplayClaims.xui[0].uhs};${this.tokens.xsts.Token}`, tokens: this.tokens };
192
192
  } else {
193
- this.emit('error', 'No oauth token found. Use authorization manager first.')
193
+ throw new Error('No oauth token found. Use authorization manager first.')
194
194
  }
195
195
  } catch (error) {
196
196
  throw new Error(error);