v2.7.13: more backwards-forwards compat/bugfixes

This commit is contained in:
AJ ONeal 2019-04-07 09:22:38 -06:00
parent ddaebd9387
commit 461ad43620
4 changed files with 8 additions and 5 deletions

View File

@ -28,7 +28,7 @@ function promisifyAllStore(obj) {
var p;
if (1 === obj[key].length) {
// wrap just in case it's synchronous (or improperly throws)
p = function (opts) { return PromiseA.resolve().then(function () { obj[key](opts); }) };
p = function (opts) { return PromiseA.resolve().then(function () { obj[key](opts); }); };
} else {
p = util.promisify(obj[key]);
}
@ -468,12 +468,15 @@ Greenlock.create = function (gl) {
var options = results.options || results;
if (opts !== options) {
Object.keys(options).forEach(function (key) {
if ('undefined' !== typeof options[key]) {
if ('undefined' !== typeof options[key] && 'domain' !== key) {
opts[key] = options[key];
}
});
options = opts;
}
if (Array.isArray(options.altnames) && options.altnames.length) {
options.domains = options.altnames;
}
// just in case we get a completely different object from the one we originally created
if (!options.account) { options.account = {}; }
if (!options.certificate) { options.certificate = {}; }

View File

@ -402,7 +402,7 @@ module.exports.create = function (gl) {
Object.keys(challenge).forEach(function (key) {
done[key] = challenge[key];
});
gl.challenges[challenge.type].remove(copy, challenge.altname, challenge.keyAuthorization, done);
gl.challenges[challenge.type].remove(copy, challenge.altname, challenge.token, done);
}
};

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "greenlock",
"version": "2.7.12",
"version": "2.7.13",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "greenlock",
"version": "2.7.12",
"version": "2.7.13",
"description": "Let's Encrypt for node.js on npm",
"main": "index.js",
"files": [