refactor: export webapp classes/func
This commit is contained in:
parent
f3432de638
commit
e8f2e23065
13
src/index.ts
13
src/index.ts
|
@ -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);
|
||||
|
|
|
@ -47,7 +47,7 @@ export default class WebAppMetadata extends Metadata {
|
|||
}
|
||||
}
|
||||
|
||||
class WebAppMetadataFileReference {
|
||||
export class WebAppMetadataFileReference {
|
||||
contentType: string | null;
|
||||
cid: CID;
|
||||
|
||||
|
|
Loading…
Reference in New Issue