anilink-api-wrapper 2.0.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 +32 -484
- package/dist/AniLink.d.ts +2406 -765
- package/dist/AniLink.mjs +2362 -683
- package/dist/anilist.d.ts +1 -1
- package/dist/anilist.mjs +1 -1
- package/dist/mal.d.ts +1 -0
- package/dist/mal.mjs +5 -0
- package/package.json +34 -19
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
ADDED
|
@@ -0,0 +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 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
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
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';
|
|
3
|
+
import 'node:http';
|
|
4
|
+
import 'node:https';
|
|
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",
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
"types": "./dist/anilist.d.ts",
|
|
16
16
|
"import": "./dist/anilist.mjs",
|
|
17
17
|
"default": "./dist/anilist.mjs"
|
|
18
|
+
},
|
|
19
|
+
"./mal": {
|
|
20
|
+
"types": "./dist/mal.d.ts",
|
|
21
|
+
"import": "./dist/mal.mjs",
|
|
22
|
+
"default": "./dist/mal.mjs"
|
|
18
23
|
}
|
|
19
24
|
},
|
|
20
25
|
"sideEffects": false,
|
|
@@ -28,7 +33,7 @@
|
|
|
28
33
|
"type": "git",
|
|
29
34
|
"url": "git+https://github.com/RLAlpha49/AniLink.git"
|
|
30
35
|
},
|
|
31
|
-
"homepage": "https://
|
|
36
|
+
"homepage": "https://anilink.alpha49.com/",
|
|
32
37
|
"bugs": {
|
|
33
38
|
"url": "https://github.com/RLAlpha49/AniLink/issues"
|
|
34
39
|
},
|
|
@@ -37,27 +42,32 @@
|
|
|
37
42
|
"provenance": true
|
|
38
43
|
},
|
|
39
44
|
"scripts": {
|
|
45
|
+
"postinstall": "node -e \"if(require('fs').existsSync('patches'))require('patch-package')\"",
|
|
40
46
|
"typecheck": "tsc --noEmit",
|
|
41
47
|
"test": "vitest run",
|
|
42
48
|
"test:integration": "vitest run --config vitest.integration.config.mts",
|
|
43
49
|
"test:package": "node scripts/package-smoke/run.mjs",
|
|
44
50
|
"test:coverage": "vitest run --coverage",
|
|
51
|
+
"mutation:test": "stryker run",
|
|
45
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)\"",
|
|
46
53
|
"anilist:api:compare": "tsx scripts/anilist-api-compare/cli.ts compare",
|
|
47
54
|
"anilist:api:update-schema": "tsx scripts/anilist-api-compare/cli.ts update-schema",
|
|
48
55
|
"jsdoc:check": "tsx scripts/check-jsdoc.ts",
|
|
49
56
|
"interfaces:generate": "tsx scripts/generate-interfaces.ts",
|
|
50
|
-
"lint": "eslint \"src/**/*.ts\" \"__tests__/**/*.ts\" scripts/ build.config.ts \"
|
|
51
|
-
"lint:fix": "eslint --fix \"src/**/*.ts\" \"__tests__/**/*.ts\" scripts/ build.config.ts \"
|
|
52
|
-
"format": "prettier --write \"src/**/*.ts\" \"__tests__/**/*.ts\"
|
|
53
|
-
"format:check": "prettier --check \"src/**/*.ts\" \"__tests__/**/*.ts\"
|
|
54
|
-
"docs:
|
|
55
|
-
"docs:generate": "typedoc && npm run docs:explorer",
|
|
57
|
+
"lint": "eslint \"src/**/*.ts\" \"__tests__/**/*.ts\" scripts/ build.config.ts \"docs-src/**/*.{ts,vue}\"",
|
|
58
|
+
"lint:fix": "eslint --fix \"src/**/*.ts\" \"__tests__/**/*.ts\" scripts/ build.config.ts \"docs-src/**/*.{ts,vue}\"",
|
|
59
|
+
"format": "prettier --write \"src/**/*.ts\" \"__tests__/**/*.ts\" scripts/ build.config.ts \"docs-src/**/*.{ts,vue,css}\"",
|
|
60
|
+
"format:check": "prettier --check \"src/**/*.ts\" \"__tests__/**/*.ts\" scripts/ build.config.ts \"docs-src/**/*.{ts,vue,css}\"",
|
|
61
|
+
"docs:generate": "npm run docs:operations && npm run docs:site && npm run docs:search-index",
|
|
56
62
|
"docs:serve": "npm run docs:generate && npx serve docs",
|
|
57
63
|
"release": "semantic-release",
|
|
58
64
|
"release:dry": "semantic-release --dry-run --no-ci",
|
|
59
65
|
"prepublishOnly": "npm run build",
|
|
60
|
-
"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 --ignore-unimplemented && 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 --ignore-unimplemented && npm run build",
|
|
67
|
+
"docs:operations": "tsx scripts/generate-operation-reference.ts",
|
|
68
|
+
"docs:site": "vitepress build docs-src && typedoc",
|
|
69
|
+
"docs:search-index": "tsx scripts/generate-search-index.ts",
|
|
70
|
+
"docs:dev": "vitepress dev docs-src"
|
|
61
71
|
},
|
|
62
72
|
"keywords": [
|
|
63
73
|
"anilist",
|
|
@@ -73,39 +83,44 @@
|
|
|
73
83
|
"author": "RLAlpha49",
|
|
74
84
|
"license": "MIT",
|
|
75
85
|
"devDependencies": {
|
|
76
|
-
"@
|
|
86
|
+
"@huggingface/transformers": "^4.2.0",
|
|
87
|
+
"@lucide/vue": "^1.41.0",
|
|
77
88
|
"@semantic-release/changelog": "^7.0.0",
|
|
78
89
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
79
90
|
"@semantic-release/git": "^11.0.1",
|
|
80
91
|
"@semantic-release/github": "^12.0.9",
|
|
81
92
|
"@semantic-release/npm": "^13.1.5",
|
|
82
93
|
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
94
|
+
"@stryker-mutator/core": "^10.0.0",
|
|
95
|
+
"@stryker-mutator/vitest-runner": "^10.0.0",
|
|
83
96
|
"@types/node": "^22.20.1",
|
|
84
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
85
|
-
"@typescript-eslint/parser": "^8.
|
|
86
|
-
"@vitest/coverage-v8": "^
|
|
97
|
+
"@typescript-eslint/eslint-plugin": "^8.69.0",
|
|
98
|
+
"@typescript-eslint/parser": "^8.69.0",
|
|
99
|
+
"@vitest/coverage-v8": "^5.0.0",
|
|
87
100
|
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
88
|
-
"eslint": "^10.
|
|
101
|
+
"eslint": "^10.10.0",
|
|
89
102
|
"eslint-config-prettier": "^10.1.8",
|
|
90
103
|
"eslint-plugin-security": "^4.0.1",
|
|
91
104
|
"fast-check": "^4.9.0",
|
|
92
105
|
"graphql": "^17.0.2",
|
|
93
|
-
"mermaid": "^11.17.
|
|
106
|
+
"mermaid": "^11.17.2",
|
|
107
|
+
"patch-package": "^8.0.1",
|
|
94
108
|
"prettier": "^3.9.6",
|
|
95
109
|
"rimraf": "^6.1.3",
|
|
96
110
|
"semantic-release": "^25.0.9",
|
|
97
|
-
"tsx": "^4.23.
|
|
111
|
+
"tsx": "^4.23.13",
|
|
98
112
|
"typedoc": "^0.28.20",
|
|
99
|
-
"typedoc-github-theme": "^0.4.0",
|
|
100
113
|
"typedoc-plugin-ga": "^1.1.1",
|
|
101
114
|
"typedoc-plugin-llms-txt": "^0.1.2",
|
|
102
115
|
"typedoc-plugin-mdn-links": "^5.1.1",
|
|
103
116
|
"typedoc-plugin-missing-exports": "^4.1.4",
|
|
104
117
|
"typescript": "^6.0.3",
|
|
105
118
|
"unbuild": "^3.6.1",
|
|
106
|
-
"
|
|
119
|
+
"vitepress": "^1.6.4",
|
|
120
|
+
"vitest": "^5.0.0",
|
|
121
|
+
"vue": "^3.5.42"
|
|
107
122
|
},
|
|
108
123
|
"dependencies": {
|
|
109
|
-
"axios": "^1.
|
|
124
|
+
"axios": "^1.20.0"
|
|
110
125
|
}
|
|
111
126
|
}
|