v2.7.15: fix to node v6 fix

This commit is contained in:
AJ ONeal 2019-04-07 20:42:34 -06:00
parent 1b388788d8
commit f4cdbe7a47
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ try {
PromiseA = global.Promise;
}
if (!PromiseA.promisify) {
PromiseA.promisify = require('util');
PromiseA.promisify = require('util').promisify;
}
function promisifyAllSelf(obj) {
if (obj.__promisified) { return obj; }
@ -30,7 +30,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 () { return obj[key](opts); }); };
} else {
p = PromiseA.promisify(obj[key]);
}

View File

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