anilink-api-wrapper 2.1.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 +13 -11
- package/dist/AniLink.d.ts +7891 -6358
- package/dist/AniLink.mjs +2752 -1606
- package/dist/anilist.d.ts +1 -1
- package/dist/anilist.mjs +2 -2
- package/dist/mal.d.ts +1 -1
- package/dist/mal.mjs +2 -2
- package/package.json +26 -15
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, CrossLinkMedia, CrossLinkResult, PaginateOptions, PaginateResult, RateLimitInfo, RequestAuth, RequestAuthInput, RequestOptions, buildAuthorizationUrl, crossLink, getAccessToken, getTokenExpiry, paginate, paginateChunks, paginatePages, refreshAccessToken } from './AniLink.js';
|
package/dist/anilist.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, 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 MalAnimeListSort, b as MalAnimeListStatus, c as MalAnimeListStatusUpdate, d as MalAnimeListStatusValue, e as MalAnimeRankingResponse, f as MalAnimeSuggestionsResponse, MalAuthorizationCodeRequest, g as MalBroadcast, MalCredentials, h as MalManga, i as MalMangaListSort, j as MalMangaListStatus, k as MalMangaListStatusUpdate, l as MalMangaListStatusValue, m as MalPaging, n as MalPicture, o as MalRankingEntry, p as MalRankingType, MalRefreshTokenRequest, q as MalRequestOptions, r as MalSeason, s as MalSeasonalAnime, t as MalSeasonalAnimeResponse, u as MalSuggestion, MalTokenRefreshCallback, MalTokenResponse, v as MalUser, w as MalUserAnimeListEntry, x as MalUserAnimeListOptions, y as MalUserAnimeListResponse, z as MalUserMangaListEntry, A as MalUserMangaListOptions, B as MalUserMangaListResponse, C as MyAnimeListAnimeApi, MyAnimeListApi, D as MyAnimeListMangaApi, E 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.3.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,27 +42,36 @@
|
|
|
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",
|
|
47
|
+
"typecheck:tests": "tsc --noEmit -p tsconfig.test.json",
|
|
46
48
|
"test": "vitest run",
|
|
47
49
|
"test:integration": "vitest run --config vitest.integration.config.mts",
|
|
48
50
|
"test:package": "node scripts/package-smoke/run.mjs",
|
|
49
51
|
"test:coverage": "vitest run --coverage",
|
|
52
|
+
"mutation:test": "stryker run",
|
|
50
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)\"",
|
|
51
|
-
"anilist:api:compare": "tsx scripts/
|
|
52
|
-
"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",
|
|
53
60
|
"jsdoc:check": "tsx scripts/check-jsdoc.ts",
|
|
54
61
|
"interfaces:generate": "tsx scripts/generate-interfaces.ts",
|
|
55
|
-
"
|
|
56
|
-
"lint
|
|
57
|
-
"
|
|
58
|
-
"format
|
|
59
|
-
"
|
|
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:site && npm run docs:search-index",
|
|
60
68
|
"docs:serve": "npm run docs:generate && npx serve docs",
|
|
61
69
|
"release": "semantic-release",
|
|
62
70
|
"release:dry": "semantic-release --dry-run --no-ci",
|
|
63
71
|
"prepublishOnly": "npm run build",
|
|
64
|
-
"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 anilist:api:compare -- --strict && npm run mal:api:compare -- --strict && npm run build",
|
|
65
73
|
"docs:operations": "tsx scripts/generate-operation-reference.ts",
|
|
74
|
+
"docs:llms": "tsx scripts/generate-llms-txt.ts",
|
|
66
75
|
"docs:site": "vitepress build docs-src && typedoc",
|
|
67
76
|
"docs:search-index": "tsx scripts/generate-search-index.ts",
|
|
68
77
|
"docs:dev": "vitepress dev docs-src"
|
|
@@ -81,38 +90,40 @@
|
|
|
81
90
|
"author": "RLAlpha49",
|
|
82
91
|
"license": "MIT",
|
|
83
92
|
"devDependencies": {
|
|
84
|
-
"@huggingface/transformers": "
|
|
85
|
-
"@lucide/vue": "^1.
|
|
93
|
+
"@huggingface/transformers": "4.2.0",
|
|
94
|
+
"@lucide/vue": "^1.41.0",
|
|
86
95
|
"@semantic-release/changelog": "^7.0.0",
|
|
87
96
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
88
97
|
"@semantic-release/git": "^11.0.1",
|
|
89
98
|
"@semantic-release/github": "^12.0.9",
|
|
90
99
|
"@semantic-release/npm": "^13.1.5",
|
|
91
100
|
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
101
|
+
"@stryker-mutator/core": "^10.0.0",
|
|
102
|
+
"@stryker-mutator/vitest-runner": "^10.0.0",
|
|
92
103
|
"@types/node": "^22.20.1",
|
|
93
104
|
"@typescript-eslint/eslint-plugin": "^8.69.0",
|
|
94
105
|
"@typescript-eslint/parser": "^8.69.0",
|
|
95
|
-
"@vitest/coverage-v8": "^
|
|
106
|
+
"@vitest/coverage-v8": "^5.0.0",
|
|
96
107
|
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
97
|
-
"eslint": "^10.
|
|
108
|
+
"eslint": "^10.10.0",
|
|
98
109
|
"eslint-config-prettier": "^10.1.8",
|
|
99
110
|
"eslint-plugin-security": "^4.0.1",
|
|
100
111
|
"fast-check": "^4.9.0",
|
|
101
112
|
"graphql": "^17.0.2",
|
|
102
113
|
"mermaid": "^11.17.2",
|
|
114
|
+
"patch-package": "^8.0.1",
|
|
103
115
|
"prettier": "^3.9.6",
|
|
104
116
|
"rimraf": "^6.1.3",
|
|
105
117
|
"semantic-release": "^25.0.9",
|
|
106
118
|
"tsx": "^4.23.13",
|
|
107
119
|
"typedoc": "^0.28.20",
|
|
108
|
-
"typedoc-plugin-ga": "^1.1.1",
|
|
109
120
|
"typedoc-plugin-llms-txt": "^0.1.2",
|
|
110
121
|
"typedoc-plugin-mdn-links": "^5.1.1",
|
|
111
122
|
"typedoc-plugin-missing-exports": "^4.1.4",
|
|
112
123
|
"typescript": "^6.0.3",
|
|
113
124
|
"unbuild": "^3.6.1",
|
|
114
125
|
"vitepress": "^1.6.4",
|
|
115
|
-
"vitest": "^
|
|
126
|
+
"vitest": "^5.0.0",
|
|
116
127
|
"vue": "^3.5.42"
|
|
117
128
|
},
|
|
118
129
|
"dependencies": {
|