v2.7.13: more backwards-forwards compat/bugfixes
This commit is contained in:
parent
ddaebd9387
commit
461ad43620
7
index.js
7
index.js
|
@ -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 = {}; }
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "greenlock",
|
||||
"version": "2.7.12",
|
||||
"version": "2.7.13",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -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": [
|
||||
|
|
Loading…
Reference in New Issue