refactor: export webapp classes/func

This commit is contained in:
Derrick Hammer 2023-12-11 19:42:49 -05:00
parent f3432de638
commit e8f2e23065
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 13 additions and 2 deletions

View File

@ -9,6 +9,10 @@ import CID from "#cid.js";
export * from "./types.js";
export * from "./constants.js";
export * from "./util.js";
import WebAppMetadata, {
WebAppMetadataFileReference,
deserialize as deserializeWebAppMetadata,
} from "./serialization/metadata/webapp.js";
export type { S5Node } from "./node.js";
export {
createTransportSocket,
@ -21,7 +25,14 @@ export type { SignedRegistryEntry, KeyPairEd25519 };
import Packer from "./serialization/pack.js";
import Unpacker from "./serialization/unpack.js";
export { Packer, Unpacker, CID };
export {
Packer,
Unpacker,
CID,
WebAppMetadata,
WebAppMetadataFileReference,
deserializeWebAppMetadata,
};
export function createNode(config: S5NodeConfig) {
return new S5Node(config);

View File

@ -47,7 +47,7 @@ export default class WebAppMetadata extends Metadata {
}
}
class WebAppMetadataFileReference {
export class WebAppMetadataFileReference {
contentType: string | null;
cid: CID;