anilink-api-wrapper 2.2.0 → 3.0.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 +16 -11
- package/dist/AniLink.d.ts +10457 -7104
- package/dist/AniLink.mjs +3944 -2214
- package/dist/anilist.d.ts +1 -1
- package/dist/anilist.mjs +1 -1
- package/dist/mal.d.ts +1 -1
- package/dist/mal.mjs +1 -1
- package/package.json +38 -24
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, RequestAuth, RequestAuthInput, RequestOptions, 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, AniListTokenRefreshCallback, AniListTokenRefreshErrorCallback, AniListTokenResponse, ChunkPaginateOptions, ChunkPaginateResult, CrossLinkMedia, CrossLinkResult, FuzzyDateOptions, PaginateOptions, PaginateResult, RateLimitInfo, RequestAuth, RequestAuthInput, RequestOptions, buildAuthorizationUrl, crossLink, fuzzyDate, fuzzyDateInt, getAccessToken, getTokenExpiry, paginate, paginateChunks, paginatePages, refreshAccessToken } from './AniLink.js';
|
package/dist/anilist.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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';
|
|
1
|
+
export { ANILIST_AUTHORIZE_URL, ANILIST_TOKEN_URL, AniLink, AniLinkApiError, AniLinkAuthError, AniLinkError, AniLinkErrorCodes, AniLinkGraphQLError, AniLinkNetworkError, AniLinkRestError, AniLinkValidationError, buildAuthorizationUrl, crossLink, fuzzyDate, fuzzyDateInt, getAccessToken, getTokenExpiry, paginate, paginateChunks, paginatePages, refreshAccessToken } from './AniLink.mjs';
|
|
2
2
|
import 'node:crypto';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'node:https';
|
package/dist/mal.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
|
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 MalAnimeDeleteParams, b as MalAnimeGetParams, c as MalAnimeListSort, d as MalAnimeListStatus, e as MalAnimeListStatusUpdate, f as MalAnimeListStatusUpdateParams, g as MalAnimeListStatusValue, h as MalAnimeRankingResponse, i as MalAnimeSearchEntry, j as MalAnimeSearchParams, k as MalAnimeSearchResponse, l as MalAnimeSuggestionsResponse, MalAuthorizationCodeRequest, m as MalBroadcast, MalCredentials, n as MalForumBoard, o as MalForumBoardsResponse, p as MalForumCategory, q as MalForumPoll, r as MalForumPollOption, s as MalForumPostCreator, t as MalForumSubboard, u as MalForumTopicCreator, v as MalForumTopicDetail, w as MalForumTopicParams, x as MalForumTopicPost, y as MalForumTopicResponse, z as MalForumTopicSort, A as MalForumTopicSummary, B as MalForumTopicsParams, C as MalForumTopicsResponse, D as MalManga, E as MalMangaDeleteParams, F as MalMangaGetParams, G as MalMangaListSort, H as MalMangaListStatus, I as MalMangaListStatusUpdate, J as MalMangaListStatusUpdateParams, K as MalMangaListStatusValue, L as MalMangaRankingEntry, N as MalMangaRankingParams, O as MalMangaRankingResponse, P as MalMangaRankingType, Q as MalMangaSearchEntry, R as MalMangaSearchParams, S as MalMangaSearchResponse, MalPage, MalPaginateOptions, MalPaginateResult, T as MalPaging, U as MalPicture, V as MalRankingEntry, W as MalRankingParams, X as MalRankingType, MalRefreshTokenRequest, Y as MalRequestOptions, Z as MalSeason, _ as MalSeasonalAnime, $ as MalSeasonalAnimeResponse, a0 as MalSeasonalParams, a1 as MalSuggestion, MalTokenRefreshCallback, MalTokenRefreshErrorCallback, MalTokenResponse, a2 as MalUser, a3 as MalUserAnimeListEntry, a4 as MalUserAnimeListParams, a5 as MalUserAnimeListResponse, a6 as MalUserGetParams, a7 as MalUserMangaListEntry, a8 as MalUserMangaListParams, a9 as MalUserMangaListResponse, aa as MyAnimeListAnimeApi, MyAnimeListApi, ab as MyAnimeListForumApi, ac as MyAnimeListMangaApi, ad as MyAnimeListUserApi, ProviderCredentials, RateLimitInfo, RequestAuth, RequestAuthInput, RequestOptions, buildMalAuthorizationUrl, buildMyAnimeListApi, getMalAccessToken, getMalTokenExpiry, malPaginate, malPaginatePages, refreshMalAccessToken } from './AniLink.js';
|
package/dist/mal.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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';
|
|
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, malPaginate, malPaginatePages, refreshMalAccessToken } from './AniLink.mjs';
|
|
2
2
|
import 'node:crypto';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'node:https';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anilink-api-wrapper",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "A typed TypeScript wrapper that unifies the AniList GraphQL and MyAnimeList REST APIs behind one calling convention: one params object and one options object per operation, with normalized errors, retries, pacing, and caching shared across providers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/AniLink.mjs",
|
|
7
7
|
"types": "./dist/AniLink.d.ts",
|
|
@@ -44,35 +44,45 @@
|
|
|
44
44
|
"scripts": {
|
|
45
45
|
"postinstall": "node -e \"if(require('fs').existsSync('patches'))require('patch-package')\"",
|
|
46
46
|
"typecheck": "tsc --noEmit",
|
|
47
|
+
"typecheck:tests": "tsc --noEmit -p tsconfig.test.json",
|
|
47
48
|
"test": "vitest run",
|
|
48
49
|
"test:integration": "vitest run --config vitest.integration.config.mts",
|
|
49
50
|
"test:package": "node scripts/package-smoke/run.mjs",
|
|
50
51
|
"test:coverage": "vitest run --coverage",
|
|
51
52
|
"mutation:test": "stryker run",
|
|
52
53
|
"build": "rimraf dist && unbuild && node -e \"for (const f of require('fs').readdirSync('dist')) if (f.endsWith('.d.mts')) require('fs').rmSync('dist/' + f)\"",
|
|
53
|
-
"anilist:api:compare": "tsx scripts/
|
|
54
|
-
"anilist:api:update-schema": "tsx scripts/
|
|
54
|
+
"anilist:api:compare": "tsx scripts/api-compare/cli.ts compare --provider anilist",
|
|
55
|
+
"anilist:api:update-schema": "tsx scripts/api-compare/cli.ts update-schema --provider anilist",
|
|
56
|
+
"mal:api:compare": "tsx scripts/api-compare/cli.ts compare --provider mal",
|
|
57
|
+
"mal:api:update-schema": "tsx scripts/api-compare/cli.ts update-schema --provider mal",
|
|
58
|
+
"mal:token": "tsx scripts/tokens/mal-token.ts",
|
|
59
|
+
"anilist:token": "tsx scripts/tokens/anilist-token.ts",
|
|
55
60
|
"jsdoc:check": "tsx scripts/check-jsdoc.ts",
|
|
56
61
|
"interfaces:generate": "tsx scripts/generate-interfaces.ts",
|
|
57
|
-
"
|
|
58
|
-
"lint
|
|
59
|
-
"
|
|
60
|
-
"format
|
|
61
|
-
"
|
|
62
|
+
"facade:generate": "tsx scripts/generate-facade-groups.ts",
|
|
63
|
+
"lint": "eslint \"src/**/*.ts\" \"__tests__/**/*.ts\" scripts/ build.config.ts \"docs-src/**/*.{js,mjs,ts,vue}\"",
|
|
64
|
+
"lint:fix": "eslint --fix \"src/**/*.ts\" \"__tests__/**/*.ts\" scripts/ build.config.ts \"docs-src/**/*.{js,mjs,ts,vue}\"",
|
|
65
|
+
"format": "prettier --write \"src/**/*.ts\" \"__tests__/**/*.ts\" scripts/ build.config.ts \"docs-src/**/*.{js,mjs,ts,vue,css}\"",
|
|
66
|
+
"format:check": "prettier --check \"src/**/*.ts\" \"__tests__/**/*.ts\" scripts/ build.config.ts \"docs-src/**/*.{js,mjs,ts,vue,css}\"",
|
|
67
|
+
"docs:generate": "npm run docs:operations && npm run docs:llms && npm run docs:social-cards && npm run docs:site && npm run docs:search-index",
|
|
62
68
|
"docs:serve": "npm run docs:generate && npx serve docs",
|
|
63
69
|
"release": "semantic-release",
|
|
64
70
|
"release:dry": "semantic-release --dry-run --no-ci",
|
|
65
71
|
"prepublishOnly": "npm run build",
|
|
66
|
-
"check": "npm run typecheck && npm run lint && npm run test:coverage && npm run format:check && npm run jsdoc:check && npm run interfaces:generate -- --check && npm run anilist:api:compare -- --strict --
|
|
72
|
+
"check": "npm run typecheck && npm run typecheck:tests && npm run lint && npm run test:coverage && npm run format:check && npm run jsdoc:check && npm run facade:generate -- --check && npm run interfaces:generate -- --check && npm run docs:operations -- --check && npm run anilist:api:compare -- --strict && npm run mal:api:compare -- --strict && npm run build",
|
|
73
|
+
"check:fast": "npm run typecheck && npm run typecheck:tests && npm run lint && npm test",
|
|
67
74
|
"docs:operations": "tsx scripts/generate-operation-reference.ts",
|
|
68
|
-
"docs:
|
|
75
|
+
"docs:llms": "tsx scripts/generate-llms-txt.ts",
|
|
76
|
+
"docs:social-cards": "tsx scripts/generate-social-cards.ts",
|
|
77
|
+
"docs:vitepress": "vitepress build docs-src",
|
|
78
|
+
"docs:typedoc": "typedoc",
|
|
79
|
+
"docs:site": "npm run docs:vitepress && npm run docs:typedoc",
|
|
69
80
|
"docs:search-index": "tsx scripts/generate-search-index.ts",
|
|
70
81
|
"docs:dev": "vitepress dev docs-src"
|
|
71
82
|
},
|
|
72
83
|
"keywords": [
|
|
73
84
|
"anilist",
|
|
74
85
|
"myanimelist",
|
|
75
|
-
"kitsu",
|
|
76
86
|
"api",
|
|
77
87
|
"wrapper",
|
|
78
88
|
"anilist-api",
|
|
@@ -83,8 +93,8 @@
|
|
|
83
93
|
"author": "RLAlpha49",
|
|
84
94
|
"license": "MIT",
|
|
85
95
|
"devDependencies": {
|
|
86
|
-
"@huggingface/transformers": "
|
|
87
|
-
"@lucide/vue": "^1.
|
|
96
|
+
"@huggingface/transformers": "4.2.0",
|
|
97
|
+
"@lucide/vue": "^1.47.0",
|
|
88
98
|
"@semantic-release/changelog": "^7.0.0",
|
|
89
99
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
90
100
|
"@semantic-release/git": "^11.0.1",
|
|
@@ -94,33 +104,37 @@
|
|
|
94
104
|
"@stryker-mutator/core": "^10.0.0",
|
|
95
105
|
"@stryker-mutator/vitest-runner": "^10.0.0",
|
|
96
106
|
"@types/node": "^22.20.1",
|
|
97
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
98
|
-
"@typescript-eslint/parser": "^8.
|
|
99
|
-
"@vitest/coverage-v8": "^5.0.
|
|
107
|
+
"@typescript-eslint/eslint-plugin": "^8.70.0",
|
|
108
|
+
"@typescript-eslint/parser": "^8.70.0",
|
|
109
|
+
"@vitest/coverage-v8": "^5.0.1",
|
|
100
110
|
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
101
|
-
"eslint": "^10.
|
|
111
|
+
"eslint": "^10.11.0",
|
|
102
112
|
"eslint-config-prettier": "^10.1.8",
|
|
103
113
|
"eslint-plugin-security": "^4.0.1",
|
|
104
|
-
"fast-check": "^4.
|
|
114
|
+
"fast-check": "^4.10.1",
|
|
105
115
|
"graphql": "^17.0.2",
|
|
106
|
-
"mermaid": "^
|
|
116
|
+
"mermaid": "^12.0.0",
|
|
107
117
|
"patch-package": "^8.0.1",
|
|
108
|
-
"prettier": "^3.9.
|
|
118
|
+
"prettier": "^3.9.8",
|
|
109
119
|
"rimraf": "^6.1.3",
|
|
110
120
|
"semantic-release": "^25.0.9",
|
|
111
121
|
"tsx": "^4.23.13",
|
|
112
122
|
"typedoc": "^0.28.20",
|
|
113
|
-
"typedoc-plugin-ga": "^1.1.1",
|
|
114
123
|
"typedoc-plugin-llms-txt": "^0.1.2",
|
|
115
124
|
"typedoc-plugin-mdn-links": "^5.1.1",
|
|
116
125
|
"typedoc-plugin-missing-exports": "^4.1.4",
|
|
117
126
|
"typescript": "^6.0.3",
|
|
118
127
|
"unbuild": "^3.6.1",
|
|
119
128
|
"vitepress": "^1.6.4",
|
|
120
|
-
"vitest": "^5.0.
|
|
121
|
-
"vue": "^3.5.
|
|
129
|
+
"vitest": "^5.0.1",
|
|
130
|
+
"vue": "^3.5.43"
|
|
122
131
|
},
|
|
123
132
|
"dependencies": {
|
|
124
133
|
"axios": "^1.20.0"
|
|
134
|
+
},
|
|
135
|
+
"overrides": {
|
|
136
|
+
"unbuild": {
|
|
137
|
+
"typescript": "$typescript"
|
|
138
|
+
}
|
|
125
139
|
}
|
|
126
140
|
}
|