Update napcat-types dependency to version 0.0.2

Changed import paths in index.ts to match new napcat-types structure and updated package.json to use napcat-types@0.0.2 instead of workspace reference. Updated pnpm-lock.yaml accordingly.
This commit is contained in:
手瓜一十雪 committed 2026-01-27 19:12:04 +08:00
1 parent e38014611f
commit 7e59203232
3 files changed
+21 -7

No files matched your search

+4 -4
View File
@@ -1,7 +1,7 @@
import type { ActionMap } from 'napcat-types/dist/napcat-onebot/action/index'; import type { ActionMap } from 'napcat-types/napcat-onebot/action/index';
import { EventType } from 'napcat-types/dist/napcat-onebot/event/index'; import { EventType } from 'napcat-types/napcat-onebot/event/index';
import type { PluginModule } from 'napcat-types/dist/napcat-onebot/network/plugin-manger'; import type { PluginModule } from 'napcat-types/napcat-onebot/network/plugin-manger';
import type { OB11Message, OB11PostSendMsg } from 'napcat-types/dist/napcat-onebot/types/index'; import type { OB11Message, OB11PostSendMsg } from 'napcat-types/napcat-onebot/types/index';
let actions: ActionMap | undefined = undefined; let actions: ActionMap | undefined = undefined;
let startTime: number = Date.now(); let startTime: number = Date.now();
+1 -1
View File
@@ -6,7 +6,7 @@
"description": "NapCat 内置插件", "description": "NapCat 内置插件",
"author": "NapNeko", "author": "NapNeko",
"dependencies": { "dependencies": {
"napcat-types": "workspace:*" "napcat-types": "0.0.2"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^22.0.1" "@types/node": "^22.0.1"
+16 -2
View File
@@ -223,8 +223,8 @@ importers:
packages/napcat-plugin-builtin: packages/napcat-plugin-builtin:
dependencies: dependencies:
napcat-types: napcat-types:
specifier: workspace:* specifier: 0.0.2
version: link:../napcat-types version: 0.0.2
devDependencies: devDependencies:
'@types/node': '@types/node':
specifier: ^22.0.1 specifier: ^22.0.1
@@ -5445,6 +5445,9 @@ packages:
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true hasBin: true
napcat-types@0.0.2:
resolution: {integrity: sha512-CXcuUbK8/iGTf9qeG8juCOQjVzgmudjdQi6stlxTMLv7TzYIpeAg7TAOtAdlpvL+tnFieZ2H1AYrecdlB9l68A==}
napcat.protobuf@1.1.4: napcat.protobuf@1.1.4:
resolution: {integrity: sha512-z7XtLSBJ/PxmYb0VD/w+eYr/X3LyGz+SZ2QejFTOczwt6zWNxy2yV1mTMTvJoc3BWkI3ESVFRxkuT6+pj1tb1Q==} resolution: {integrity: sha512-z7XtLSBJ/PxmYb0VD/w+eYr/X3LyGz+SZ2QejFTOczwt6zWNxy2yV1mTMTvJoc3BWkI3ESVFRxkuT6+pj1tb1Q==}
@@ -12813,6 +12816,17 @@ snapshots:
nanoid@3.3.11: {} nanoid@3.3.11: {}
napcat-types@0.0.2:
dependencies:
'@types/cors': 2.8.19
'@types/express': 4.17.25
'@types/ip': 1.1.3
'@types/multer': 1.4.13
'@types/node': 22.19.1
'@types/winston': 2.4.4
'@types/ws': 8.18.1
'@types/yaml': 1.9.7
napcat.protobuf@1.1.4: napcat.protobuf@1.1.4:
dependencies: dependencies:
'@protobuf-ts/runtime': 2.11.1 '@protobuf-ts/runtime': 2.11.1