ani-client 1.4.2 → 1.4.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/README.md +3 -1
- package/dist/index.d.mts +405 -407
- package/dist/index.d.ts +405 -407
- package/dist/index.js +59 -58
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +59 -58
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
> A simple, typed client to fetch anime, manga, character, staff and user data from [AniList](https://anilist.co).
|
|
8
8
|
|
|
9
|
+
✨ **Showcase**: [Check here](SHOWCASE.md) to see which projects use this package!
|
|
10
|
+
|
|
9
11
|
- **Zero dependencies** — uses the native `fetch` API
|
|
10
12
|
- **Universal** — Node.js ≥ 20, Bun, Deno and modern browsers
|
|
11
13
|
- **Dual format** — ships ESM + CJS with full TypeScript declarations
|
|
@@ -479,7 +481,7 @@ class MyCache implements CacheAdapter {
|
|
|
479
481
|
set<T>(key: string, data: T): void | Promise<void> { /* ... */ }
|
|
480
482
|
delete(key: string): boolean | Promise<boolean> { /* ... */ }
|
|
481
483
|
clear(): void | Promise<void> { /* ... */ }
|
|
482
|
-
get size(): number { return -1; } // return -1 if unknown
|
|
484
|
+
get size(): number | Promise<number> { return -1; } // return -1 if unknown
|
|
483
485
|
keys(): string[] | Promise<string[]> { /* ... */ }
|
|
484
486
|
// Optional — the client provides a fallback if omitted
|
|
485
487
|
invalidate?(pattern: string | RegExp): number | Promise<number> { /* ... */ }
|