refactor: export packer and unpacker

This commit is contained in:
Derrick Hammer 2023-12-10 20:46:54 -05:00
parent ea8c9841a0
commit 0863f450b7
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 1 deletions

View File

@ -17,7 +17,11 @@ export {
BasePeer, BasePeer,
} from "./transports/index.js"; } from "./transports/index.js";
export type { SignedRegistryEntry, KeyPairEd25519 }; export type { SignedRegistryEntry, KeyPairEd25519 };
export { NodeId, CID };
import Packer from "./serialization/pack.js";
import Unpacker from "./serialization/unpack.js";
export { Packer, Unpacker };
export function createNode(config: S5NodeConfig) { export function createNode(config: S5NodeConfig) {
return new S5Node(config); return new S5Node(config);