@abtnode/certificate-manager 1.16.11-next-ca5f18b5 → 1.16.11-next-3e55bc95

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/certificate-manager",
3
- "version": "1.16.11-next-ca5f18b5",
3
+ "version": "1.16.11-next-3e55bc95",
4
4
  "description": "Manage ABT Node SSL certificates",
5
5
  "author": "polunzh <polunzh@gmail.com>",
6
6
  "homepage": "https://github.com/ArcBlock/blocklet-server#readme",
@@ -32,11 +32,11 @@
32
32
  "url": "https://github.com/ArcBlock/blocklet-server/issues"
33
33
  },
34
34
  "dependencies": {
35
- "@abtnode/cron": "1.16.11-next-ca5f18b5",
36
- "@abtnode/logger": "1.16.11-next-ca5f18b5",
37
- "@abtnode/models": "1.16.11-next-ca5f18b5",
38
- "@abtnode/queue": "1.16.11-next-ca5f18b5",
39
- "@abtnode/util": "1.16.11-next-ca5f18b5",
35
+ "@abtnode/cron": "1.16.11-next-3e55bc95",
36
+ "@abtnode/logger": "1.16.11-next-3e55bc95",
37
+ "@abtnode/models": "1.16.11-next-3e55bc95",
38
+ "@abtnode/queue": "1.16.11-next-3e55bc95",
39
+ "@abtnode/util": "1.16.11-next-3e55bc95",
40
40
  "@fidm/x509": "^1.2.1",
41
41
  "@greenlock/manager": "^3.1.0",
42
42
  "@root/acme": "^3.1.0",
@@ -50,5 +50,5 @@
50
50
  "moment": "^2.29.4",
51
51
  "punycode": "^2.1.1"
52
52
  },
53
- "gitHead": "d797d0177d585b66d17876c99c994fda4d812f37"
53
+ "gitHead": "cf0251c2d85c617b03151495b5944061ceb373e5"
54
54
  }
package/sdk/manager.js CHANGED
@@ -82,7 +82,7 @@ class Manager extends EventEmitter {
82
82
  }
83
83
  }
84
84
 
85
- async getAll(projection = {}) {
85
+ getAll(projection = {}) {
86
86
  return states.certificate.find({}, projection);
87
87
  }
88
88
 
@@ -131,7 +131,7 @@ class Manager extends EventEmitter {
131
131
  * @param {string} domain
132
132
  * @returns
133
133
  */
134
- async issue(domain) {
134
+ issue(domain) {
135
135
  if (!domain) {
136
136
  throw new Error('domain is required');
137
137
  }
@@ -9,7 +9,7 @@ const { getCertInfo } = require('../libs/util');
9
9
  * @extends BaseState<import('@abtnode/models').CertificateState>
10
10
  */
11
11
  class Certificate extends BaseState {
12
- async updateStatus(domain, status) {
12
+ updateStatus(domain, status) {
13
13
  if (!Object.values(CERT_STATUS).includes(status)) {
14
14
  throw new Error('invalid domain status');
15
15
  }
@@ -25,7 +25,7 @@ class Certificate extends BaseState {
25
25
  return super.insert(data);
26
26
  }
27
27
 
28
- async update(condition, data) {
28
+ update(condition, data) {
29
29
  if (data.certificate) {
30
30
  data.meta = getCertInfo(data.certificate);
31
31
  } else if (get(data, '$set.certificate')) {