mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 06:31:13 +00:00
Introduce a new napcat-rpc package implementing a deep-proxy RPC system. Adds client (createDeepProxy, proxy helpers), server (RpcServer, createRpcServer), serializer (serialize/deserialize, callback registry), and transport layers (LocalTransport, MessageTransport, message server handler), plus an easy API (createRpcPair, mockRemote, createServer, createClient). Includes TypeScript types, tsconfig and package.json. Wire-up: add package alias in napcat-schema vite config and add napcat-rpc dependency to napcat-test along with comprehensive rpc tests.
25 lines
439 B
JSON
25 lines
439 B
JSON
{
|
|
"name": "napcat-rpc",
|
|
"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": {},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
}
|
|
} |