ani-client 2.1.0 → 2.1.1
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/README.md +134 -60
- package/dist/index.js +14 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -349,7 +349,7 @@ var AniListError = class _AniListError extends Error {
|
|
|
349
349
|
this.status = status;
|
|
350
350
|
this.errors = errors;
|
|
351
351
|
Object.setPrototypeOf(this, _AniListError.prototype);
|
|
352
|
-
if (Error
|
|
352
|
+
if ("captureStackTrace" in Error) {
|
|
353
353
|
Error.captureStackTrace(this, _AniListError);
|
|
354
354
|
}
|
|
355
355
|
}
|
|
@@ -466,18 +466,24 @@ var MEDIA_RECOMMENDATION_FIELDS = `
|
|
|
466
466
|
title { romaji english native userPreferred }
|
|
467
467
|
type
|
|
468
468
|
format
|
|
469
|
-
coverImage { large medium }
|
|
469
|
+
coverImage { extraLarge large medium color }
|
|
470
470
|
averageScore
|
|
471
471
|
meanScore
|
|
472
472
|
episodes
|
|
473
473
|
chapters
|
|
474
474
|
volumes
|
|
475
|
-
nextAiringEpisode
|
|
475
|
+
nextAiringEpisode {
|
|
476
|
+
id
|
|
477
|
+
airingAt
|
|
478
|
+
episode
|
|
479
|
+
mediaId
|
|
480
|
+
timeUntilAiring
|
|
481
|
+
}
|
|
476
482
|
season
|
|
477
483
|
seasonYear
|
|
478
|
-
startDate
|
|
479
|
-
|
|
480
|
-
studios
|
|
484
|
+
startDate { year month day }
|
|
485
|
+
endDate { year month day }
|
|
486
|
+
studios { nodes { id name isAnimationStudio siteUrl } }
|
|
481
487
|
genres
|
|
482
488
|
siteUrl
|
|
483
489
|
}
|
|
@@ -839,7 +845,7 @@ query (
|
|
|
839
845
|
timeUntilAiring
|
|
840
846
|
episode
|
|
841
847
|
mediaId
|
|
842
|
-
media
|
|
848
|
+
media {
|
|
843
849
|
${MEDIA_FIELDS_BASE}
|
|
844
850
|
}
|
|
845
851
|
}
|
|
@@ -2115,7 +2121,7 @@ function mapFavorites(fav) {
|
|
|
2115
2121
|
|
|
2116
2122
|
// src/client/index.ts
|
|
2117
2123
|
var DEFAULT_API_URL = "https://graphql.anilist.co";
|
|
2118
|
-
var LIB_VERSION = "2.1.
|
|
2124
|
+
var LIB_VERSION = "2.1.1" ;
|
|
2119
2125
|
var AniListClient = class {
|
|
2120
2126
|
apiUrl;
|
|
2121
2127
|
headers;
|