@abtnode/certificate-manager 1.17.7-beta-20251227-001958-ea2ba3f5 → 1.17.7-beta-20251229-085620-84f09930
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 +7 -7
- package/sdk/manager.js +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/certificate-manager",
|
|
3
|
-
"version": "1.17.7-beta-
|
|
3
|
+
"version": "1.17.7-beta-20251229-085620-84f09930",
|
|
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",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"url": "https://github.com/ArcBlock/blocklet-server/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@abtnode/cron": "1.17.7-beta-
|
|
34
|
-
"@abtnode/logger": "1.17.7-beta-
|
|
35
|
-
"@abtnode/models": "1.17.7-beta-
|
|
36
|
-
"@abtnode/queue": "1.17.7-beta-
|
|
37
|
-
"@abtnode/util": "1.17.7-beta-
|
|
33
|
+
"@abtnode/cron": "1.17.7-beta-20251229-085620-84f09930",
|
|
34
|
+
"@abtnode/logger": "1.17.7-beta-20251229-085620-84f09930",
|
|
35
|
+
"@abtnode/models": "1.17.7-beta-20251229-085620-84f09930",
|
|
36
|
+
"@abtnode/queue": "1.17.7-beta-20251229-085620-84f09930",
|
|
37
|
+
"@abtnode/util": "1.17.7-beta-20251229-085620-84f09930",
|
|
38
38
|
"@blocklet/error": "^0.3.5",
|
|
39
39
|
"@fidm/x509": "^1.2.1",
|
|
40
40
|
"@greenlock/manager": "^3.1.0",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"joi": "17.12.2",
|
|
48
48
|
"punycode": "^2.3.1"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "fe2ffc3cf431bbaa89ac802bed793aa1188da4c3"
|
|
51
51
|
}
|
package/sdk/manager.js
CHANGED
|
@@ -193,8 +193,12 @@ class Manager extends EventEmitter {
|
|
|
193
193
|
return states.certificate.update({ id }, { $set: data });
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
+
findById(id) {
|
|
197
|
+
return states.certificate.findOne({ id });
|
|
198
|
+
}
|
|
199
|
+
|
|
196
200
|
async remove(id) {
|
|
197
|
-
const existed = await
|
|
201
|
+
const existed = await this.findById(id);
|
|
198
202
|
if (!existed) {
|
|
199
203
|
throw new Error(`The certificate ${id} does not exists!`);
|
|
200
204
|
}
|