v2.7.15: fix to node v6 fix
This commit is contained in:
parent
1b388788d8
commit
f4cdbe7a47
4
index.js
4
index.js
|
@ -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]);
|
||||
}
|
||||
|
|
|
@ -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": [
|
||||
|
|
Loading…
Reference in New Issue