*Update dist
This commit is contained in:
parent
815c7a824c
commit
baf8ebd511
|
@ -1,3 +1,4 @@
|
||||||
export * from "./rpc.js";
|
export * from "./rpc.js";
|
||||||
export * from "./plugin.js";
|
export * from "./plugin.js";
|
||||||
|
export * from "./swarm.js";
|
||||||
//# sourceMappingURL=index.d.ts.map
|
//# sourceMappingURL=index.d.ts.map
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
|
@ -4,6 +4,7 @@ import { Logger } from "pino";
|
||||||
import SSLManager from "./ssl.js";
|
import SSLManager from "./ssl.js";
|
||||||
import type { HDKey } from "micro-ed25519-hdkey";
|
import type { HDKey } from "micro-ed25519-hdkey";
|
||||||
import type Config from "@lumeweb/cfg";
|
import type Config from "@lumeweb/cfg";
|
||||||
|
import type { ProtocolManager } from "./swarm.js";
|
||||||
export type PluginFunction = (api: PluginAPI) => Promise<void>;
|
export type PluginFunction = (api: PluginAPI) => Promise<void>;
|
||||||
export interface Plugin {
|
export interface Plugin {
|
||||||
name: string;
|
name: string;
|
||||||
|
@ -31,6 +32,7 @@ export declare class PluginAPI extends EventEmitter2 {
|
||||||
get seed(): Uint8Array;
|
get seed(): Uint8Array;
|
||||||
get identity(): HDKey;
|
get identity(): HDKey;
|
||||||
get ssl(): SSLManager;
|
get ssl(): SSLManager;
|
||||||
|
get protocols(): ProtocolManager;
|
||||||
loadPlugin(moduleName: string): (moduleName: string) => Promise<Plugin>;
|
loadPlugin(moduleName: string): (moduleName: string) => Promise<Plugin>;
|
||||||
registerMethod(methodName: string, method: RPCMethod): void;
|
registerMethod(methodName: string, method: RPCMethod):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