*Update dist

This commit is contained in:
Derrick Hammer 2022-12-21 15:19:10 -05:00
parent c476a94b0e
commit 0d6219837a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 3 additions and 6 deletions

7
dist/plugin.d.ts vendored
View File

@ -3,7 +3,7 @@ import { RPCMethod, RPCServer } from "./rpc.js";
import { Logger } from "pino"; 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 Config from "./config.js"; import type Config from "@lumeweb/cfg";
export type PluginFunction = (api: PluginAPI) => Promise<void>; export type PluginFunction = (api: PluginAPI) => Promise<void>;
export interface Plugin { export interface Plugin {
name: string; name: string;
@ -12,7 +12,6 @@ export interface Plugin {
default?: Plugin; default?: Plugin;
} }
export declare class PluginAPI extends EventEmitter2 { export declare class PluginAPI extends EventEmitter2 {
private _server;
constructor({ constructor({
config, config,
logger, logger,
@ -24,11 +23,9 @@ export declare class PluginAPI extends EventEmitter2 {
server: RPCServer; server: RPCServer;
swarm: any; swarm: any;
}); });
private _swarm;
get swarm(): any; get swarm(): any;
private _config;
get config(): Config; get config(): Config;
private _logger; get pluginConfig(): Config;
get logger(): Logger; get logger(): Logger;
get rpcServer(): RPCServer; get rpcServer(): RPCServer;
get seed(): Uint8Array; get seed(): Uint8Array;

View File

@ -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;AAC9B,OAAO,UAAU,MAAM,UAAU,CAAC;AAClC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,M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