mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-19 05:05:44 +08:00
Moved file element creation methods (for file, picture, video, and ptt) from napcat-core/apis/file.ts to a new OneBotFileApi class in napcat-onebot/api/file.ts. Updated package.json dependencies to remove unused packages and fix workspace references. This improves separation of concerns and modularity between core and onebot-specific logic.
29 lines
628 B
JSON
29 lines
628 B
JSON
{
|
|
"name": "napcat-core",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "index.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": "./index.ts"
|
|
},
|
|
"./*": {
|
|
"import": "./*"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@protobuf-ts/runtime": "^2.11.1",
|
|
"ajv": "^8.13.0",
|
|
"@sinclair/typebox": "^0.34.38",
|
|
"file-type": "^21.0.0",
|
|
"napcat-common": "workspace:*",
|
|
"napcat-protobuf": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
}
|
|
} |