From 03f6b2dff104a6ff153bffa07cbc19bf87e5eaa3 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 24 Apr 2018 11:43:27 -0600 Subject: [PATCH] v2.2.5 backcompat with node v6 --- lib/utils.js | 3 ++- package.json | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index ad8a2e6..7e9ebed 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -4,7 +4,8 @@ var path = require('path'); var homeRe = new RegExp("^~(\\/|\\\\|\\" + path.sep + ")"); var re = /^[a-zA-Z0-9\.\-]+$/; var punycode = require('punycode'); -var dnsResolveMxAsync = require('util').promisify(require('dns').resolveMx); +var promisify = (require('util').promisify || require('bluebird').promisify); +var dnsResolveMxAsync = promisify(require('dns').resolveMx); module.exports.attachCertInfo = function (results) { // XXX Note: Parsing the certificate info comes at a great cost (~500kb) diff --git a/package.json b/package.json index bc048a8..09d5851 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "greenlock", - "version": "2.2.4", + "version": "2.2.5", "description": "Let's Encrypt for node.js on npm", "main": "index.js", "scripts": { @@ -54,11 +54,12 @@ "devDependencies": { "request": "^2.75.0" }, - "optionalDependencies": {}, + "optionalDependencies": { + "bluebird": "^3.5.1" + }, "dependencies": { "acme-v2": "^1.0.2", "asn1js": "^1.2.12", - "bluebird": "^3.0.6", "certpem": "^1.0.0", "homedir": "^0.6.0", "le-acme-core": "^2.1.2",