anilink-api-wrapper 1.18.5 → 1.18.6

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.
@@ -26,6 +26,9 @@ class AniChartUserQuery extends APIWrapper_1.APIWrapper {
26
26
  constructor(authToken) {
27
27
  super('https://graphql.anilist.co');
28
28
  this.authToken = authToken;
29
+ if (!this.authToken) {
30
+ throw new Error('AniChartUserQuery requires an authentication token. Create a new instance of AniLink and pass the token as an argument.');
31
+ }
29
32
  }
30
33
  /**
31
34
  * `aniChartUser` is a method that sends a query request to get AniChart users.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anilink-api-wrapper",
3
- "version": "1.18.5",
3
+ "version": "1.18.6",
4
4
  "description": "Anilist API Wrapper",
5
5
  "main": "dist/AniLink.js",
6
6
  "scripts": {