Compare commits

..

No commits in common. "b139bba69ade136d3a9f9e7a2baf5626c344e1f7" and "6da33f1352305c509f0b87546e23ad9ad6f791d4" have entirely different histories.

7 changed files with 4 additions and 70 deletions

45
dist/config.d.ts vendored
View File

@ -1,45 +0,0 @@
/// <reference types="node" />
import type arg from "arg";
declare class Config {
private module;
private data;
constructor(module: string);
inject(options: object): void;
load(): void;
openDir(dir: string): void;
open(file: string): void;
save(file: string, data: object): void;
set(key: string, value: any): void;
has(key: string): any;
private normalize;
get(key: string, fallback?: any): any;
typeOf(
key: string
):
| "string"
| "number"
| "bigint"
| "boolean"
| "symbol"
| "undefined"
| "object"
| "function"
| "null";
str(key: string, fallback?: any): any;
int(key: any, fallback?: any): any;
uint(key: any, fallback?: any): any;
float(key: any, fallback?: any): any;
ufloat(key: any, fallback?: any): any;
fixed(key: any, exp: any, fallback?: any): any;
ufixed(key: any, exp: any, fallback?: any): any;
bool(key: any, fallback?: any): any;
buf(key: string, fallback?: any, enc?: BufferEncoding): any;
array(key: string, fallback?: any): any;
obj(key: string, fallback?: any): any;
func(key: string, fallback?: any): any;
mb(key: string, fallback?: any): any;
parseArg(args: arg.Result<any>): void;
parseEnv(env?: object): void;
}
export default Config;
//# sourceMappingURL=config.d.ts.map

View File

@ -1 +0,0 @@
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,OAAO,MAAM;IAClB,OAAO,CAAC,MAAM,CAAC;IACf,OAAO,CAAC,IAAI,CAAC;gBACD,MAAM,EAAE,MAAM;IAC1B,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAC7B,IAAI,IAAI,IAAI;IACZ,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAC1B,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IACxB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAA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C,EAAE,GAAG,GAAG,GAAG;IACvC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG,GAAG,GAAG;IACrC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG,GAAG,GAAG;IACtC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG,GAAG,GAAG;IACpC,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI;IACrC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI;CAC7B;AACD,eAAe,MAAM,CAAC"}

3
dist/plugin.d.ts vendored
View File

@ -11,7 +11,7 @@ export interface Plugin {
exports?: any; exports?: any;
default?: Plugin; default?: Plugin;
} }
export declare class PluginAPI extends EventEmitter2 { declare class PluginAPI extends EventEmitter2 {
private _server; private _server;
constructor({ constructor({
config, config,
@ -37,4 +37,5 @@ export declare class PluginAPI extends EventEmitter2 {
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): void;
} }
export {};
//# sourceMappingURL=plugin.d.ts.map //# sourceMappingURL=plugin.d.ts.map

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,MAAM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reference types="node" />
import type tls from "tls";
export type SSLManagerRenewHandler = (domain: string) => Promise<boolean>;
declare class SSLManager {
private _context?;
private _key?;
private _cert?;
private _domain;
private _renewHandler?;
constructor(domain: string);
get context(): tls.SecureContext;
set privateKey(key: Buffer);
set cert(cert: Buffer);
private _maybeUpdateContext;
renew(): Promise<boolean>;
get enabled(): any;
}
export default SSLManager;
//# sourceMappingURL=ssl.d.ts.map

1
dist/ssl.d.ts.map vendored
View File

@ -1 +0,0 @@
{"version":3,"file":"ssl.d.ts","sourceRoot":"","sources":["../src/ssl.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,MAAM,MAAM,sBAAsB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAC1E,OAAO,OAAO,UAAU;IACtB,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClB,OAAO,CAAC,IAAI,CAAC,CAAC;IACd,OAAO,CAAC,KAAK,CAAC,CAAC;IACf,OAAO,CAAC,OAAO,CAAC;IAChB,OAAO,CAAC,aAAa,CAAC,CAAC;gBACX,MAAM,EAAE,MAAM;IAC1B,IAAI,OAAO,IAAI,GAAG,CAAC,aAAa,CAAC;IACjC,IAAI,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE;IAC5B,IAAI,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE;IACvB,OAAO,CAAC,mBAAmB,CAAC;IAC5B,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC;IACzB,IAAI,OAAO,IAAI,GAAG,CAAC;CACpB;AACD,eAAe,UAAU,CAAC"}

View File

@ -14,7 +14,7 @@ export interface Plugin {
default?: Plugin; default?: Plugin;
} }
export declare class PluginAPI extends EventEmitter2 { declare class PluginAPI extends EventEmitter2 {
private _server; private _server;
constructor({ constructor({
config, config,