mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 06:31:13 +00:00
Introduces an 'imageDownloadProxy' config option to OneBot, allowing image downloads via a specified HTTP proxy. Updates the file download logic in napcat-common to use the undici library for proxy support, and propagates the new config through backend, frontend, and type definitions. Also adds undici as a dependency.
29 lines
519 B
JSON
29 lines
519 B
JSON
{
|
|
"name": "napcat-common",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "src/index.ts",
|
|
"scripts": {
|
|
"typecheck": "tsc --noEmit --skipLibCheck -p tsconfig.json"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"import": "./src/index.ts"
|
|
},
|
|
"./src/*": {
|
|
"import": "./src/*"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"ajv": "^8.13.0",
|
|
"file-type": "^21.0.0",
|
|
"undici": "^6.19.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
}
|
|
} |