Comparing version 1.0.8 to 1.0.9
25
node.js
@@ -387,11 +387,6 @@ /*! | ||
if (me.debug) console.debug(resp.body); | ||
return ACME._wait(1 * 1000).then(pollStatus).then(resolve, reject); | ||
return ACME._wait(1 * 1000).then(pollStatus); | ||
}); | ||
} | ||
function failChallenge(err) { | ||
if (err) { reject(err); return; } | ||
return testChallenge(); | ||
} | ||
function testChallenge() { | ||
@@ -414,7 +409,19 @@ // TODO put check dns / http checks here? | ||
if (1 === options.setChallenge.length) { | ||
options.setChallenge(auth).then(testChallenge, reject); | ||
options.setChallenge(auth).then(testChallenge).then(resolve, reject); | ||
} else if (2 === options.setChallenge.length) { | ||
options.setChallenge(auth, failChallenge); | ||
options.setChallenge(auth, function(err) { | ||
if(err) { | ||
reject(err); | ||
} else { | ||
testChallenge().then(resolve, reject); | ||
} | ||
}); | ||
} else { | ||
options.setChallenge(identifier.value, ch.token, keyAuthorization, failChallenge); | ||
options.setChallenge(identifier.value, ch.token, keyAuthorization, function(err) { | ||
if(err) { | ||
reject(err); | ||
} else { | ||
testChallenge().then(resolve, reject); | ||
} | ||
}); | ||
} | ||
@@ -421,0 +428,0 @@ } catch(e) { |
{ | ||
"name": "acme-v2", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Free SSL. A framework for building Let's Encrypt v2 clients, and other ACME v2 (draft 11) clients. Successor to le-acme-core.js", | ||
@@ -5,0 +5,0 @@ "homepage": "https://git.coolaj86.com/coolaj86/acme-v2.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
46435
979
4