🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

roster-server

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

roster-server - npm Package Compare versions

Comparing version
2.3.14
to
2.3.16
+1
-1
package.json
{
"name": "roster-server",
"version": "2.3.14",
"version": "2.3.16",
"description": "👾 RosterServer - A domain host router to host multiple HTTPS.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -387,9 +387,30 @@ 'use strict';

await acme.init(dirUrl).catch(function(err) {
log.error(
"ACME init failed (directory may be down or directoryUrl wrong):",
err.message
);
throw err;
});
var maxRetries = 3;
var lastErr;
for (var attempt = 1; attempt <= maxRetries; attempt++) {
try {
await acme.init(dirUrl);
lastErr = null;
break;
} catch (err) {
lastErr = err;
log.error(
"ACME init attempt " +
attempt +
"/" +
maxRetries +
" failed (directory may be down or directoryUrl wrong):",
err.message
);
if (attempt < maxRetries) {
await new Promise(function(resolve) {
setTimeout(resolve, 1000 * attempt);
});
}
}
}
if (lastErr) {
delete caches[dirUrl];
throw lastErr;
}

@@ -396,0 +417,0 @@ caches[dirUrl] = {