anilink-api-wrapper 2.1.0 → 2.2.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 +11 -11
- package/dist/AniLink.d.ts +770 -61
- package/dist/AniLink.mjs +1477 -432
- package/dist/anilist.d.ts +1 -1
- package/dist/anilist.mjs +1 -1
- package/dist/mal.d.ts +1 -1
- package/dist/mal.mjs +2 -2
- package/package.json +10 -5
package/dist/anilist.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ANILIST_AUTHORIZE_URL, ANILIST_TOKEN_URL, AniLink, AniLinkApiError, AniLinkAuthError, AniLinkError, AniLinkErrorCode, AniLinkErrorCodes, AniLinkGraphQLError, AniLinkNetworkError, AniLinkOptions, AniLinkRestError, AniLinkValidationError, AniListApi, AniListTokenResponse, ChunkPaginateOptions, ChunkPaginateResult, PaginateOptions, PaginateResult, RateLimitInfo, buildAuthorizationUrl, getAccessToken, getTokenExpiry, paginate, paginateChunks, paginatePages, refreshAccessToken } from './AniLink.js';
|
|
1
|
+
export { ANILIST_AUTHORIZE_URL, ANILIST_TOKEN_URL, AniLink, AniLinkApiError, AniLinkAuthError, AniLinkError, AniLinkErrorCode, AniLinkErrorCodes, AniLinkGraphQLError, AniLinkNetworkError, AniLinkOptions, AniLinkRestError, AniLinkValidationError, AniListApi, AniListTokenResponse, ChunkPaginateOptions, ChunkPaginateResult, PaginateOptions, PaginateResult, RateLimitInfo, RequestAuth, RequestAuthInput, RequestOptions, buildAuthorizationUrl, getAccessToken, getTokenExpiry, paginate, paginateChunks, paginatePages, refreshAccessToken } from './AniLink.js';
|
package/dist/anilist.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ANILIST_AUTHORIZE_URL, ANILIST_TOKEN_URL, AniLink, AniLinkApiError, AniLinkAuthError, AniLinkError, AniLinkErrorCodes, AniLinkGraphQLError, AniLinkNetworkError, AniLinkRestError, AniLinkValidationError, buildAuthorizationUrl, getAccessToken, getTokenExpiry, paginate, paginateChunks, paginatePages, refreshAccessToken } from './AniLink.mjs';
|
|
2
|
+
import 'node:crypto';
|
|
2
3
|
import 'node:http';
|
|
3
4
|
import 'node:https';
|
|
4
|
-
import 'node:crypto';
|
|
5
5
|
import 'axios';
|
package/dist/mal.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AniLink, AniLinkCredentials, MAL_API_BASE_URL, MAL_API_REFERENCE, MAL_AUTHORIZE_URL, MAL_TOKEN_URL, M as MalAnime, MalAuthorizationCodeRequest, MalCredentials,
|
|
1
|
+
export { AniLink, AniLinkApiError, AniLinkAuthError, AniLinkCredentials, AniLinkError, AniLinkErrorCode, AniLinkErrorCodes, AniLinkGraphQLError, AniLinkNetworkError, AniLinkRestError, AniLinkValidationError, MAL_API_BASE_URL, MAL_API_REFERENCE, MAL_AUTHORIZE_URL, MAL_TOKEN_URL, M as MalAnime, a as MalAnimeListStatus, b as MalAnimeListStatusUpdate, c as MalAnimeListStatusValue, MalAuthorizationCodeRequest, MalCredentials, d as MalManga, e as MalMangaListStatus, f as MalMangaListStatusUpdate, g as MalMangaListStatusValue, h as MalPicture, MalRefreshTokenRequest, i as MalRequestOptions, MalTokenResponse, j as MalUser, k as MyAnimeListAnimeApi, MyAnimeListApi, l as MyAnimeListMangaApi, m as MyAnimeListUserApi, ProviderCredentials, RateLimitInfo, RequestAuth, RequestAuthInput, RequestOptions, buildMalAuthorizationUrl, buildMyAnimeListApi, getMalAccessToken, getMalTokenExpiry, refreshMalAccessToken } from './AniLink.js';
|
package/dist/mal.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { AniLink, MAL_API_BASE_URL, MAL_API_REFERENCE, MAL_AUTHORIZE_URL, MAL_TOKEN_URL, buildMalAuthorizationUrl, buildMyAnimeListApi, getMalAccessToken, getMalTokenExpiry, refreshMalAccessToken } from './AniLink.mjs';
|
|
1
|
+
export { AniLink, AniLinkApiError, AniLinkAuthError, AniLinkError, AniLinkErrorCodes, AniLinkGraphQLError, AniLinkNetworkError, AniLinkRestError, AniLinkValidationError, MAL_API_BASE_URL, MAL_API_REFERENCE, MAL_AUTHORIZE_URL, MAL_TOKEN_URL, buildMalAuthorizationUrl, buildMyAnimeListApi, getMalAccessToken, getMalTokenExpiry, refreshMalAccessToken } from './AniLink.mjs';
|
|
2
|
+
import 'node:crypto';
|
|
2
3
|
import 'node:http';
|
|
3
4
|
import 'node:https';
|
|
4
|
-
import 'node:crypto';
|
|
5
5
|
import 'axios';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anilink-api-wrapper",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "API wrapper for AniManga sites such as Anilist, MyAnimeList, Kitsu.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/AniLink.mjs",
|
|
@@ -42,11 +42,13 @@
|
|
|
42
42
|
"provenance": true
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
|
+
"postinstall": "node -e \"if(require('fs').existsSync('patches'))require('patch-package')\"",
|
|
45
46
|
"typecheck": "tsc --noEmit",
|
|
46
47
|
"test": "vitest run",
|
|
47
48
|
"test:integration": "vitest run --config vitest.integration.config.mts",
|
|
48
49
|
"test:package": "node scripts/package-smoke/run.mjs",
|
|
49
50
|
"test:coverage": "vitest run --coverage",
|
|
51
|
+
"mutation:test": "stryker run",
|
|
50
52
|
"build": "rimraf dist && unbuild && node -e \"for (const f of require('fs').readdirSync('dist')) if (f.endsWith('.d.mts')) require('fs').rmSync('dist/' + f)\"",
|
|
51
53
|
"anilist:api:compare": "tsx scripts/anilist-api-compare/cli.ts compare",
|
|
52
54
|
"anilist:api:update-schema": "tsx scripts/anilist-api-compare/cli.ts update-schema",
|
|
@@ -82,24 +84,27 @@
|
|
|
82
84
|
"license": "MIT",
|
|
83
85
|
"devDependencies": {
|
|
84
86
|
"@huggingface/transformers": "^4.2.0",
|
|
85
|
-
"@lucide/vue": "^1.
|
|
87
|
+
"@lucide/vue": "^1.41.0",
|
|
86
88
|
"@semantic-release/changelog": "^7.0.0",
|
|
87
89
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
88
90
|
"@semantic-release/git": "^11.0.1",
|
|
89
91
|
"@semantic-release/github": "^12.0.9",
|
|
90
92
|
"@semantic-release/npm": "^13.1.5",
|
|
91
93
|
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
94
|
+
"@stryker-mutator/core": "^10.0.0",
|
|
95
|
+
"@stryker-mutator/vitest-runner": "^10.0.0",
|
|
92
96
|
"@types/node": "^22.20.1",
|
|
93
97
|
"@typescript-eslint/eslint-plugin": "^8.69.0",
|
|
94
98
|
"@typescript-eslint/parser": "^8.69.0",
|
|
95
|
-
"@vitest/coverage-v8": "^
|
|
99
|
+
"@vitest/coverage-v8": "^5.0.0",
|
|
96
100
|
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
97
|
-
"eslint": "^10.
|
|
101
|
+
"eslint": "^10.10.0",
|
|
98
102
|
"eslint-config-prettier": "^10.1.8",
|
|
99
103
|
"eslint-plugin-security": "^4.0.1",
|
|
100
104
|
"fast-check": "^4.9.0",
|
|
101
105
|
"graphql": "^17.0.2",
|
|
102
106
|
"mermaid": "^11.17.2",
|
|
107
|
+
"patch-package": "^8.0.1",
|
|
103
108
|
"prettier": "^3.9.6",
|
|
104
109
|
"rimraf": "^6.1.3",
|
|
105
110
|
"semantic-release": "^25.0.9",
|
|
@@ -112,7 +117,7 @@
|
|
|
112
117
|
"typescript": "^6.0.3",
|
|
113
118
|
"unbuild": "^3.6.1",
|
|
114
119
|
"vitepress": "^1.6.4",
|
|
115
|
-
"vitest": "^
|
|
120
|
+
"vitest": "^5.0.0",
|
|
116
121
|
"vue": "^3.5.42"
|
|
117
122
|
},
|
|
118
123
|
"dependencies": {
|