Compare commits
No commits in common. "baf8ebd511a3fcf707bfcd8ca29f51c7f40f3d53" and "0d6219837a743543f97eaf391895a6608e0fb7d5" have entirely different histories.
baf8ebd511
...
0d6219837a
|
@ -1,4 +1,3 @@
|
|||
export * from "./rpc.js";
|
||||
export * from "./plugin.js";
|
||||
export * from "./swarm.js";
|
||||
//# 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;AAC5B,cAAc,YAAY,CAAC"}
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
@ -4,7 +4,6 @@ import { Logger } from "pino";
|
|||
import SSLManager from "./ssl.js";
|
||||
import type { HDKey } from "micro-ed25519-hdkey";
|
||||
import type Config from "@lumeweb/cfg";
|
||||
import type { ProtocolManager } from "./swarm.js";
|
||||
export type PluginFunction = (api: PluginAPI) => Promise<void>;
|
||||
export interface Plugin {
|
||||
name: string;
|
||||
|
@ -32,7 +31,6 @@ export declare class PluginAPI extends EventEmitter2 {
|
|||
get seed(): Uint8Array;
|
||||
get identity(): HDKey;
|
||||
get ssl(): SSLManager;
|
||||
get protocols(): ProtocolManager;
|
||||
loadPlugin(moduleName: string): (moduleName: string) => Promise<Plugin>;
|
||||
registerMethod(methodName: string, method: RPCMethod): void;
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;A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AM,EAAE,SAAS,GAAG,IAAI;CAC5D"}
|
|
@ -1,3 +1,2 @@
|
|||
export * from "./rpc.js";
|
||||
export * from "./plugin.js";
|
||||
export * from "./swarm.js";
|
||||
|
|
|
@ -4,7 +4,6 @@ import { Logger } from "pino";
|
|||
import SSLManager from "./ssl.js";
|
||||
import type { HDKey } from "micro-ed25519-hdkey";
|
||||
import type Config from "@lumeweb/cfg";
|
||||
import type { ProtocolManager } from "./swarm.js";
|
||||
|
||||
export type PluginFunction = (api: PluginAPI) => Promise<void>;
|
||||
|
||||
|
@ -35,7 +34,6 @@ export declare class PluginAPI extends EventEmitter2 {
|
|||
get seed(): Uint8Array;
|
||||
get identity(): HDKey;
|
||||
get ssl(): SSLManager;
|
||||
get protocols(): ProtocolManager;
|
||||
loadPlugin(moduleName: string): (moduleName: string) => Promise<Plugin>;
|
||||
registerMethod(methodName: string, method: RPCMethod): void;
|
||||
}
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
export type ProtocolHandler = (peer: any, muxer: any) => void;
|
||||
|
||||
export declare class ProtocolManager {
|
||||
constructor(swarm: any);
|
||||
register(name: string, handler: ProtocolHandler): boolean;
|
||||
}
|
Loading…
Reference in New Issue