@postalsys/certs 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/certs.js +5 -1
  2. package/package.json +2 -2
package/lib/certs.js CHANGED
@@ -468,13 +468,17 @@ class Certs {
468
468
  return challenge.keyAuthorization;
469
469
  }
470
470
 
471
- async getCertificate(domain) {
471
+ async getCertificate(domain, skipAcquire) {
472
472
  domain = normalizeDomain(domain);
473
473
  let certificateData = await this.loadCertificateData(domain);
474
474
  if (certificateData && certificateData.status === 'valid' && certificateData.validTo && certificateData.validTo >= new Date()) {
475
475
  return certificateData;
476
476
  }
477
477
 
478
+ if (skipAcquire) {
479
+ return false;
480
+ }
481
+
478
482
  return await this.acquireCert(domain);
479
483
  }
480
484
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postalsys/certs",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Manage Let's Encrypt certificates",
5
5
  "main": "lib/certs.js",
6
6
  "scripts": {
@@ -16,7 +16,7 @@
16
16
  "eslint-config-nodemailer": "1.2.0",
17
17
  "eslint-config-prettier": "8.5.0",
18
18
  "express": "4.18.1",
19
- "ioredis": "5.0.6"
19
+ "ioredis": "5.1.0"
20
20
  },
21
21
  "dependencies": {
22
22
  "@root/acme": "3.1.0",