Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
06256f7a4d | |||
be6fc3adfd |
0
dist/cert.hook.js
vendored
Normal file → Executable file
0
dist/cert.hook.js
vendored
Normal file → Executable file
3
dist/index.js
vendored
3
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cert",
|
||||
"version": "0.0.16",
|
||||
"version": "0.0.17",
|
||||
"description": "Easily obain SSL certificates from LetsEncrypt. Supports DNS-01 challenge. TypeScript ready.",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
|
@ -18,7 +18,7 @@ describe("cert", function () {
|
||||
});
|
||||
describe("Cert", function () {
|
||||
it("should create a new Cert object from class", function () {
|
||||
this.timeout(20000);
|
||||
this.timeout(40000);
|
||||
testCert = new cert.Cert({
|
||||
cfEmail: process.env.CF_EMAIL,
|
||||
cfKey: process.env.CF_KEY,
|
||||
@ -30,7 +30,7 @@ describe("cert", function () {
|
||||
});
|
||||
it("should get a valid certificate", function (done) {
|
||||
this.timeout(120000);
|
||||
testCert.getDomainCert("hello2.bleu.de").then(function () {
|
||||
testCert.getDomainCert("hello4.bleu.de").then(function () {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
@ -22,7 +22,7 @@ describe("cert",function(){
|
||||
})
|
||||
describe("Cert",function(){
|
||||
it("should create a new Cert object from class",function(){
|
||||
this.timeout(20000);
|
||||
this.timeout(40000);
|
||||
testCert = new cert.Cert({
|
||||
cfEmail: process.env.CF_EMAIL,
|
||||
cfKey: process.env.CF_KEY,
|
||||
@ -34,7 +34,7 @@ describe("cert",function(){
|
||||
})
|
||||
it("should get a valid certificate",function(done){
|
||||
this.timeout(120000);
|
||||
testCert.getDomainCert("hello2.bleu.de").then(() => {
|
||||
testCert.getDomainCert("hello4.bleu.de").then(() => {
|
||||
done();
|
||||
});
|
||||
})
|
||||
|
@ -77,6 +77,7 @@ export class Cert {
|
||||
let fetchedCertsArray: string[] = plugins.smartfile.fs.listFoldersSync(paths.certDir);
|
||||
if (fetchedCertsArray.indexOf(domainNameArg) != -1) {
|
||||
updateSslDirSync(this._sslDir, domainNameArg);
|
||||
plugins.smartfile.fs.removeSync(plugins.path.join(paths.certDir,domainNameArg));
|
||||
}
|
||||
this.sslGitOriginAddCommitPush();
|
||||
done.resolve();
|
||||
|
Reference in New Issue
Block a user