2 Commits

Author SHA1 Message Date
a7525184ef 0.0.15 2016-07-12 18:00:15 +02:00
ae9865749a use interface for Cert constructor 2016-07-12 18:00:08 +02:00
4 changed files with 20 additions and 16 deletions

15
dist/index.d.ts vendored
View File

@ -1,5 +1,12 @@
/// <reference types="q" />
import * as plugins from "./cert.plugins";
export interface CertConstructorOptions {
cfEmail: string;
cfKey: string;
sslDir: string;
gitOriginRepo?: string;
testMode?: boolean;
}
export declare class Cert {
private _cfEmail;
private _cfKey;
@ -8,13 +15,7 @@ export declare class Cert {
private _testMode;
certificatesPresent: Certificate[];
certificatesValid: Certificate[];
constructor(optionsArg: {
cfEmail: string;
cfKey: string;
sslDir: string;
gitOriginRepo?: string;
testMode?: boolean;
});
constructor(optionsArg: CertConstructorOptions);
sslGitOriginPull: () => void;
sslGitOriginAddCommitPush: () => void;
getDomainCert(domainNameArg: string, optionsArg?: {

3
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "cert",
"version": "0.0.14",
"version": "0.0.15",
"description": "Easily obain SSL certificates from LetsEncrypt. Supports DNS-01 challenge. TypeScript ready.",
"main": "dist/index.js",
"typings": "dist/index.d.ts",

View File

@ -1,6 +1,14 @@
import * as plugins from "./cert.plugins";
import * as paths from "./cert.paths";
export interface CertConstructorOptions {
cfEmail: string,
cfKey: string,
sslDir: string,
gitOriginRepo?: string,
testMode?: boolean
};
export class Cert {
private _cfEmail: string;
private _cfKey: string;
@ -9,13 +17,7 @@ export class Cert {
private _testMode: boolean
certificatesPresent: Certificate[];
certificatesValid: Certificate[];
constructor(optionsArg: {
cfEmail: string,
cfKey: string,
sslDir: string,
gitOriginRepo?: string,
testMode?: boolean
}) {
constructor(optionsArg:CertConstructorOptions) {
this._cfEmail = optionsArg.cfEmail;
this._cfKey = optionsArg.cfKey;
this._sslDir = optionsArg.sslDir;