NapCatQQ/packages/napcat-test
手瓜一十雪 74781fda0a Cache object properties to avoid extra RPC
Serialize non-function properties of server-side objects as cachedProps so simple property reads don't require additional RPCs. Added cachedProps to SerializedValue, have RpcServer.storeObjectRef serialize and attach cachedProps (skipping functions), updated serializer to deserialize cachedProps and pass them to proxyCreator, and updated client proxy creation to accept cachedProps and return cached top-level properties directly. Tests updated to expect direct property access for serialized/simple objects and arrays.
2026-02-02 18:59:23 +08:00
..
imageSize.test.ts Add TIFF parser and buffer-based image size APIs 2026-02-01 17:42:58 +08:00
package.json Add napcat-rpc package with deep RPC 2026-02-02 17:12:05 +08:00
Readme.md Add napcat-test package and Vitest setup 2025-11-15 16:05:09 +08:00
rpc.test.ts Cache object properties to avoid extra RPC 2026-02-02 18:59:23 +08:00
sha1Stream.test.ts Add ESLint config and update code style 2025-11-15 16:21:59 +08:00
tsconfig.json Add napcat-test package and Vitest setup 2025-11-15 16:05:09 +08:00
vitest.config.ts Add napcat-rpc package with deep RPC 2026-02-02 17:12:05 +08:00

NapCat-Test

测试方向

测试过程不涉及账号登录