anilink-api-wrapper 2.2.0 → 2.3.0
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 +6 -4
- package/dist/AniLink.d.ts +7080 -6256
- package/dist/AniLink.mjs +1312 -1211
- package/dist/anilist.d.ts +1 -1
- package/dist/anilist.mjs +1 -1
- package/dist/mal.d.ts +1 -1
- package/package.json +17 -11
package/README.md
CHANGED
|
@@ -19,6 +19,8 @@ A typed TypeScript wrapper for the [AniList GraphQL API](https://docs.anilist.co
|
|
|
19
19
|
npm install anilink-api-wrapper
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
Requires Node.js >= 22; the package is ESM-only (`import` syntax only, no CommonJS `require`).
|
|
23
|
+
|
|
22
24
|
```typescript
|
|
23
25
|
import { AniLink } from "anilink-api-wrapper";
|
|
24
26
|
|
|
@@ -33,10 +35,10 @@ const malAnime = await client.mal.anime.get(21, { fields: ["id", "title", "main_
|
|
|
33
35
|
|
|
34
36
|
## What you can do
|
|
35
37
|
|
|
36
|
-
| Provider | Namespace | Capabilities
|
|
37
|
-
| --------------- | ----------------- |
|
|
38
|
-
| **AniList** | `aniLink.anilist` | Queries, page queries, mutations, pagination helpers, `custom()`, data helpers
|
|
39
|
-
| **MyAnimeList** | `aniLink.mal` | `anime.get`, `manga.get`, and `user.me` REST reads with field selection, plus `anime`/`manga` `updateMyListStatus` and `deleteFromList` list-status writes
|
|
38
|
+
| Provider | Namespace | Capabilities |
|
|
39
|
+
| --------------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
40
|
+
| **AniList** | `aniLink.anilist` | Queries, page queries, mutations, pagination helpers, `custom()`, data helpers, and the `crossLink` AniList↔MAL id mapping |
|
|
41
|
+
| **MyAnimeList** | `aniLink.mal` | `anime.get`, `manga.get`, and `user.me` REST reads with field selection, the `seasonal`, `ranking`, and `suggestions` discovery reads, paginated `user.animeList`/`user.mangaList` user-list reads, plus `anime`/`manga` `updateMyListStatus` and `deleteFromList` list-status writes |
|
|
40
42
|
|
|
41
43
|
Both surfaces share one transport layer (timeouts, retries, pacing, circuit breaker, hooks) while keeping credentials and transport settings isolated per provider slot.
|
|
42
44
|
|