anilink-api-wrapper 2.0.0 → 2.1.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 +1656 -724
- package/dist/AniLink.mjs +1005 -371
- package/dist/mal.d.ts +1 -0
- package/dist/mal.mjs +5 -0
- package/package.json +28 -18
package/dist/mal.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AniLink, AniLinkCredentials, MAL_API_BASE_URL, MAL_API_REFERENCE, MAL_AUTHORIZE_URL, MAL_TOKEN_URL, M as MalAnime, MalAuthorizationCodeRequest, MalCredentials, a as MalPicture, MalRefreshTokenRequest, b as MalRequestOptions, MalTokenResponse, c as MalUser, d as MyAnimeListAnimeApi, MyAnimeListApi, e as MyAnimeListUserApi, ProviderCredentials, RequestAuth, RequestAuthInput, R as RequestOptions, buildMalAuthorizationUrl, buildMyAnimeListApi, getMalAccessToken, getMalTokenExpiry, refreshMalAccessToken } from './AniLink.js';
|
package/dist/mal.mjs
ADDED
|
@@ -0,0 +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';
|
|
2
|
+
import 'node:http';
|
|
3
|
+
import 'node:https';
|
|
4
|
+
import 'node:crypto';
|
|
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.1.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
|
},
|
|
@@ -47,17 +52,20 @@
|
|
|
47
52
|
"anilist:api:update-schema": "tsx scripts/anilist-api-compare/cli.ts update-schema",
|
|
48
53
|
"jsdoc:check": "tsx scripts/check-jsdoc.ts",
|
|
49
54
|
"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",
|
|
55
|
+
"lint": "eslint \"src/**/*.ts\" \"__tests__/**/*.ts\" scripts/ build.config.ts \"docs-src/**/*.{ts,vue}\"",
|
|
56
|
+
"lint:fix": "eslint --fix \"src/**/*.ts\" \"__tests__/**/*.ts\" scripts/ build.config.ts \"docs-src/**/*.{ts,vue}\"",
|
|
57
|
+
"format": "prettier --write \"src/**/*.ts\" \"__tests__/**/*.ts\" scripts/ build.config.ts \"docs-src/**/*.{ts,vue,css}\"",
|
|
58
|
+
"format:check": "prettier --check \"src/**/*.ts\" \"__tests__/**/*.ts\" scripts/ build.config.ts \"docs-src/**/*.{ts,vue,css}\"",
|
|
59
|
+
"docs:generate": "npm run docs:operations && npm run docs:site && npm run docs:search-index",
|
|
56
60
|
"docs:serve": "npm run docs:generate && npx serve docs",
|
|
57
61
|
"release": "semantic-release",
|
|
58
62
|
"release:dry": "semantic-release --dry-run --no-ci",
|
|
59
63
|
"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"
|
|
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 --ignore-unimplemented && npm run build",
|
|
65
|
+
"docs:operations": "tsx scripts/generate-operation-reference.ts",
|
|
66
|
+
"docs:site": "vitepress build docs-src && typedoc",
|
|
67
|
+
"docs:search-index": "tsx scripts/generate-search-index.ts",
|
|
68
|
+
"docs:dev": "vitepress dev docs-src"
|
|
61
69
|
},
|
|
62
70
|
"keywords": [
|
|
63
71
|
"anilist",
|
|
@@ -73,7 +81,8 @@
|
|
|
73
81
|
"author": "RLAlpha49",
|
|
74
82
|
"license": "MIT",
|
|
75
83
|
"devDependencies": {
|
|
76
|
-
"@
|
|
84
|
+
"@huggingface/transformers": "^4.2.0",
|
|
85
|
+
"@lucide/vue": "^1.38.0",
|
|
77
86
|
"@semantic-release/changelog": "^7.0.0",
|
|
78
87
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
79
88
|
"@semantic-release/git": "^11.0.1",
|
|
@@ -81,31 +90,32 @@
|
|
|
81
90
|
"@semantic-release/npm": "^13.1.5",
|
|
82
91
|
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
83
92
|
"@types/node": "^22.20.1",
|
|
84
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
85
|
-
"@typescript-eslint/parser": "^8.
|
|
93
|
+
"@typescript-eslint/eslint-plugin": "^8.69.0",
|
|
94
|
+
"@typescript-eslint/parser": "^8.69.0",
|
|
86
95
|
"@vitest/coverage-v8": "^4.1.11",
|
|
87
96
|
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
88
|
-
"eslint": "^10.9.
|
|
97
|
+
"eslint": "^10.9.1",
|
|
89
98
|
"eslint-config-prettier": "^10.1.8",
|
|
90
99
|
"eslint-plugin-security": "^4.0.1",
|
|
91
100
|
"fast-check": "^4.9.0",
|
|
92
101
|
"graphql": "^17.0.2",
|
|
93
|
-
"mermaid": "^11.17.
|
|
102
|
+
"mermaid": "^11.17.2",
|
|
94
103
|
"prettier": "^3.9.6",
|
|
95
104
|
"rimraf": "^6.1.3",
|
|
96
105
|
"semantic-release": "^25.0.9",
|
|
97
|
-
"tsx": "^4.23.
|
|
106
|
+
"tsx": "^4.23.13",
|
|
98
107
|
"typedoc": "^0.28.20",
|
|
99
|
-
"typedoc-github-theme": "^0.4.0",
|
|
100
108
|
"typedoc-plugin-ga": "^1.1.1",
|
|
101
109
|
"typedoc-plugin-llms-txt": "^0.1.2",
|
|
102
110
|
"typedoc-plugin-mdn-links": "^5.1.1",
|
|
103
111
|
"typedoc-plugin-missing-exports": "^4.1.4",
|
|
104
112
|
"typescript": "^6.0.3",
|
|
105
113
|
"unbuild": "^3.6.1",
|
|
106
|
-
"
|
|
114
|
+
"vitepress": "^1.6.4",
|
|
115
|
+
"vitest": "^4.1.11",
|
|
116
|
+
"vue": "^3.5.42"
|
|
107
117
|
},
|
|
108
118
|
"dependencies": {
|
|
109
|
-
"axios": "^1.
|
|
119
|
+
"axios": "^1.20.0"
|
|
110
120
|
}
|
|
111
121
|
}
|