Compare commits

...

6 Commits

Author SHA1 Message Date
e920406ce9 3.0.11 2021-01-22 18:47:02 +00:00
e044fd81bd fix(core): update 2021-01-22 18:47:01 +00:00
edaccc357d 3.0.10 2021-01-22 18:33:53 +00:00
67f645ad50 fix(core): update 2021-01-22 18:33:53 +00:00
bfeced5f34 3.0.9 2020-11-18 16:52:50 +00:00
24b9794a18 fix(core): update 2020-11-18 16:52:49 +00:00
4 changed files with 1794 additions and 1794 deletions

3557
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartacme",
"version": "3.0.8",
"version": "3.0.11",
"private": false,
"description": "acme with an easy yet powerful interface in TypeScript",
"main": "dist_ts/index.js",
@ -25,28 +25,28 @@
},
"homepage": "https://gitlab.com/umbrellazone/smartacme#README",
"dependencies": {
"@pushrocks/lik": "^4.0.17",
"@pushrocks/smartdata": "^3.1.29",
"@pushrocks/lik": "^4.0.20",
"@pushrocks/smartdata": "^3.1.54",
"@pushrocks/smartdelay": "^2.0.10",
"@pushrocks/smartdns": "^4.0.4",
"@pushrocks/smartexpress": "^3.0.76",
"@pushrocks/smartlog": "^2.0.36",
"@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/smartrequest": "^1.1.47",
"@pushrocks/smartstring": "^3.0.18",
"@pushrocks/smarttime": "^3.0.24",
"@pushrocks/smartexpress": "^3.0.100",
"@pushrocks/smartlog": "^2.0.39",
"@pushrocks/smartpromise": "^3.1.3",
"@pushrocks/smartrequest": "^1.1.51",
"@pushrocks/smartstring": "^3.0.24",
"@pushrocks/smarttime": "^3.0.38",
"@pushrocks/smartunique": "^3.0.3",
"@tsclass/tsclass": "^3.0.21",
"@tsclass/tsclass": "^3.0.29",
"acme-client": "^3.3.1"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.25",
"@gitzone/tsrun": "^1.2.12",
"@gitzone/tstest": "^1.0.44",
"@gitzone/tstest": "^1.0.52",
"@mojoio/cloudflare": "^5.0.6",
"@pushrocks/qenv": "^4.0.10",
"@pushrocks/tapbundle": "^3.2.9",
"@types/node": "^14.0.27",
"@types/node": "^14.14.22",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0"
},

View File

@ -30,7 +30,8 @@ tap.test('should create a valid instance of SmartAcme', async () => {
});
tap.test('should get a domain certificate', async () => {
await smartAcmeInstance.getCertificateForDomain('bleu.de');
const certificate = await smartAcmeInstance.getCertificateForDomain('bleu.de');
console.log(certificate);
});
tap.test('certmatcher should correctly match domains', async () => {

View File

@ -43,7 +43,7 @@ export class CertManager {
* @param certDomainNameArg the domain Name to retrieve the vcertificate for
*/
public async retrieveCertificate(certDomainNameArg: string): Promise<Cert> {
const existingCertificate: Cert = await Cert.getInstance({
const existingCertificate: Cert = await Cert.getInstance<Cert>({
domainName: certDomainNameArg,
});
@ -69,7 +69,7 @@ export class CertManager {
}
public async deleteCertificate(certDomainNameArg: string) {
const cert: Cert = await Cert.getInstance({
const cert: Cert = await Cert.getInstance<Cert>({
domainName: certDomainNameArg,
});
await cert.delete();