From 4995bdcefe8e747017e1a31b700fae121d98983d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 18 Apr 2023 22:54:51 -0400 Subject: [PATCH] *Update dist --- dist/ssl.d.ts | 14 ++++++-------- dist/ssl.d.ts.map | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/dist/ssl.d.ts b/dist/ssl.d.ts index 5b0e96a..f266cb6 100644 --- a/dist/ssl.d.ts +++ b/dist/ssl.d.ts @@ -2,19 +2,17 @@ /// import type tls from "tls"; export type SSLManagerRenewHandler = (domain: string) => Promise; +export type SSLCert = string | Buffer | Array; 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; + set cert(cert: SSLCert); renew(): Promise; - get enabled(): any; + get enabled(): boolean; + get ready(): boolean; + get renewHandler(): SSLManagerRenewHandler; + set renewHandler(value: SSLManagerRenewHandler); } export default SSLManager; //# sourceMappingURL=ssl.d.ts.map diff --git a/dist/ssl.d.ts.map b/dist/ssl.d.ts.map index c3453b8..60e756c 100644 --- a/dist/ssl.d.ts.map +++ b/dist/ssl.d.ts.map @@ -1 +1 @@ -{"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,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