ani-client 2.1.3 → 2.1.4
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 +3 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
> A fully typed, zero-dependency client for the [AniList](https://anilist.co) GraphQL API.
|
|
11
11
|
> Supports Node.js, Bun, Deno, and modern browsers.
|
|
12
12
|
|
|
13
|
+
> 📌 **Note** – thanks for **1K+ downloads** this month on `npm` 🎉
|
|
14
|
+
|
|
13
15
|
## Features
|
|
14
16
|
|
|
15
17
|
- **Zero dependencies** — uses the native `fetch` API
|
|
@@ -246,4 +248,4 @@ This repository also includes GitHub issue templates and a pull request template
|
|
|
246
248
|
|
|
247
249
|
## License
|
|
248
250
|
|
|
249
|
-
[MIT](LICENSE) © [gonzyui](https://github.com/gonzyui)
|
|
251
|
+
[MIT](LICENSE) © [gonzyui](https://github.com/gonzyui)
|
package/dist/index.d.mts
CHANGED
|
@@ -449,7 +449,7 @@ declare enum MediaRelationType {
|
|
|
449
449
|
}
|
|
450
450
|
interface MediaEdge {
|
|
451
451
|
relationType: MediaRelationType;
|
|
452
|
-
node: Pick<Media, "id" | "title" | "type" | "format" | "status" | "startDate" | "endDate" | "season" | "seasonYear" | "episodes" | "chapters" | "volumes" | "coverImage" | "genres" | "averageScore" | "meanScore" | "studios" | "siteUrl" | "nextAiringEpisode">;
|
|
452
|
+
node: Pick<Media, "id" | "title" | "type" | "format" | "status" | "description" | "startDate" | "endDate" | "season" | "seasonYear" | "episodes" | "chapters" | "volumes" | "coverImage" | "genres" | "averageScore" | "meanScore" | "studios" | "siteUrl" | "nextAiringEpisode">;
|
|
453
453
|
}
|
|
454
454
|
interface MediaConnection {
|
|
455
455
|
edges: MediaEdge[];
|
|
@@ -490,7 +490,7 @@ interface MediaStats {
|
|
|
490
490
|
interface MediaRecommendationNode {
|
|
491
491
|
id: number;
|
|
492
492
|
rating: number | null;
|
|
493
|
-
mediaRecommendation: Pick<Media, "id" | "title" | "type" | "format" | "coverImage" | "averageScore" | "meanScore" | "episodes" | "chapters" | "volumes" | "nextAiringEpisode" | "season" | "seasonYear" | "startDate" | "endDate" | "studios" | "genres" | "siteUrl">;
|
|
493
|
+
mediaRecommendation: Pick<Media, "id" | "title" | "type" | "format" | "status" | "description" | "coverImage" | "averageScore" | "meanScore" | "episodes" | "chapters" | "volumes" | "nextAiringEpisode" | "season" | "seasonYear" | "startDate" | "endDate" | "studios" | "genres" | "siteUrl">;
|
|
494
494
|
}
|
|
495
495
|
interface NextAiringEpisode {
|
|
496
496
|
id: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -449,7 +449,7 @@ declare enum MediaRelationType {
|
|
|
449
449
|
}
|
|
450
450
|
interface MediaEdge {
|
|
451
451
|
relationType: MediaRelationType;
|
|
452
|
-
node: Pick<Media, "id" | "title" | "type" | "format" | "status" | "startDate" | "endDate" | "season" | "seasonYear" | "episodes" | "chapters" | "volumes" | "coverImage" | "genres" | "averageScore" | "meanScore" | "studios" | "siteUrl" | "nextAiringEpisode">;
|
|
452
|
+
node: Pick<Media, "id" | "title" | "type" | "format" | "status" | "description" | "startDate" | "endDate" | "season" | "seasonYear" | "episodes" | "chapters" | "volumes" | "coverImage" | "genres" | "averageScore" | "meanScore" | "studios" | "siteUrl" | "nextAiringEpisode">;
|
|
453
453
|
}
|
|
454
454
|
interface MediaConnection {
|
|
455
455
|
edges: MediaEdge[];
|
|
@@ -490,7 +490,7 @@ interface MediaStats {
|
|
|
490
490
|
interface MediaRecommendationNode {
|
|
491
491
|
id: number;
|
|
492
492
|
rating: number | null;
|
|
493
|
-
mediaRecommendation: Pick<Media, "id" | "title" | "type" | "format" | "coverImage" | "averageScore" | "meanScore" | "episodes" | "chapters" | "volumes" | "nextAiringEpisode" | "season" | "seasonYear" | "startDate" | "endDate" | "studios" | "genres" | "siteUrl">;
|
|
493
|
+
mediaRecommendation: Pick<Media, "id" | "title" | "type" | "format" | "status" | "description" | "coverImage" | "averageScore" | "meanScore" | "episodes" | "chapters" | "volumes" | "nextAiringEpisode" | "season" | "seasonYear" | "startDate" | "endDate" | "studios" | "genres" | "siteUrl">;
|
|
494
494
|
}
|
|
495
495
|
interface NextAiringEpisode {
|
|
496
496
|
id: number;
|
package/dist/index.js
CHANGED
|
@@ -649,6 +649,7 @@ var RELATIONS_FIELDS = `
|
|
|
649
649
|
type
|
|
650
650
|
format
|
|
651
651
|
status
|
|
652
|
+
description(asHtml: false)
|
|
652
653
|
startDate { year month day }
|
|
653
654
|
endDate { year month day }
|
|
654
655
|
season
|
|
@@ -683,6 +684,8 @@ var MEDIA_RECOMMENDATION_FIELDS = `
|
|
|
683
684
|
title { romaji english native userPreferred }
|
|
684
685
|
type
|
|
685
686
|
format
|
|
687
|
+
status
|
|
688
|
+
description(asHtml: false)
|
|
686
689
|
coverImage { extraLarge large medium color }
|
|
687
690
|
averageScore
|
|
688
691
|
meanScore
|
|
@@ -2363,7 +2366,7 @@ function mapFavorites(fav) {
|
|
|
2363
2366
|
|
|
2364
2367
|
// src/client/index.ts
|
|
2365
2368
|
var DEFAULT_API_URL = "https://graphql.anilist.co";
|
|
2366
|
-
var LIB_VERSION = "2.1.
|
|
2369
|
+
var LIB_VERSION = "2.1.4" ;
|
|
2367
2370
|
var AniListClient = class {
|
|
2368
2371
|
apiUrl;
|
|
2369
2372
|
headers;
|