mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 06:31:13 +00:00
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. |
||
|---|---|---|
| .. | ||
| imageSize.test.ts | ||
| package.json | ||
| Readme.md | ||
| rpc.test.ts | ||
| sha1Stream.test.ts | ||
| tsconfig.json | ||
| vitest.config.ts | ||
NapCat-Test
测试方向
测试过程不涉及账号登录