@certd/acme-client 1.35.1 → 1.35.2
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 +3 -3
- package/src/auto.js +6 -1
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Simple and unopinionated ACME client",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "nmorsman",
|
|
6
|
-
"version": "1.35.
|
|
6
|
+
"version": "1.35.2",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"module": "scr/index.js",
|
|
9
9
|
"main": "src/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"types"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@certd/basic": "^1.35.
|
|
21
|
+
"@certd/basic": "^1.35.2",
|
|
22
22
|
"@peculiar/x509": "^1.11.0",
|
|
23
23
|
"asn1js": "^3.0.5",
|
|
24
24
|
"axios": "^1.7.2",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"bugs": {
|
|
70
70
|
"url": "https://github.com/publishlab/node-acme-client/issues"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "f252871fb892af015c99052e3728fb0a0535b012"
|
|
73
73
|
}
|
package/src/auto.js
CHANGED
|
@@ -216,12 +216,16 @@ export default async (client, userOpts) => {
|
|
|
216
216
|
return promise;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
async function runPromisePa(tasks, waitTime =
|
|
219
|
+
async function runPromisePa(tasks, waitTime = 8000) {
|
|
220
220
|
const results = [];
|
|
221
|
+
let j = 0
|
|
221
222
|
// eslint-disable-next-line no-await-in-loop,no-restricted-syntax
|
|
222
223
|
for (const task of tasks) {
|
|
224
|
+
j++
|
|
225
|
+
log(`开始第${j}个任务`);
|
|
223
226
|
results.push(task());
|
|
224
227
|
// eslint-disable-next-line no-await-in-loop
|
|
228
|
+
log(`wait ${waitTime}s`)
|
|
225
229
|
await wait(waitTime);
|
|
226
230
|
}
|
|
227
231
|
return Promise.all(results);
|
|
@@ -245,6 +249,7 @@ export default async (client, userOpts) => {
|
|
|
245
249
|
log(`跳过本地验证(skipChallengeVerification=true),等待 60s`);
|
|
246
250
|
await wait(60 * 1000);
|
|
247
251
|
} else {
|
|
252
|
+
log("开始本地校验")
|
|
248
253
|
await runPromisePa(localVerifyTasks, 1000);
|
|
249
254
|
log(`本地校验完成,等待${waitDnsDiffuseTime}s`)
|
|
250
255
|
await wait(waitDnsDiffuseTime * 1000)
|