From c834d1603d16d44509aef0aced8099313f851894 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 16 Apr 2019 00:29:18 -0600 Subject: [PATCH] v2.2.3: node v6 promisify fix, eliminate external deps --- index.js | 5 ++++- package-lock.json | 26 ++++++++++++++++++++++++++ package.json | 8 ++++---- 3 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 package-lock.json diff --git a/index.js b/index.js index 90011f3..f70a7de 100644 --- a/index.js +++ b/index.js @@ -8,6 +8,9 @@ try { PromiseA = Promise; } var util = require('util'); +if (!util.promisify) { + util.promisify = PromiseA.promisify; +} function promisifyAll(obj) { var aobj = {}; Object.keys(obj).forEach(function (key) { @@ -15,7 +18,7 @@ function promisifyAll(obj) { }); return aobj; } -var mkdirpAsync = util.promisify(require('mkdirp')); +var mkdirpAsync = util.promisify(require('@root/mkdirp')); var path = require('path'); var fs = require('fs'); var readFileAsync = util.promisify(fs.readFile); diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..f727333 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,26 @@ +{ + "name": "le-store-certbot", + "version": "2.2.2", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@root/mkdirp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@root/mkdirp/-/mkdirp-1.0.0.tgz", + "integrity": "sha512-hxGAYUx5029VggfG+U9naAhQkoMSXtOeXtbql97m3Hi6/sQSRL/4khKZPyOF6w11glyCOU38WCNLu9nUcSjOfA==" + }, + "pyconf": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/pyconf/-/pyconf-1.1.7.tgz", + "integrity": "sha512-v4clh33m68sjtMsh8XMpjhGWb/MQODAYZ1y7ORG5Qv58UK25OddoB+oXyexgDkK8ttFui/lZm2sQDgA2Ftjfkw==", + "requires": { + "safe-replace": "^1.0.2" + } + }, + "safe-replace": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-replace/-/safe-replace-1.1.0.tgz", + "integrity": "sha512-9/V2E0CDsKs9DWOOwJH7jYpSl9S3N05uyevNjvsnDauBqRowBPOyot1fIvV5N2IuZAbYyvrTXrYFVG0RZInfFw==" + } + } +} diff --git a/package.json b/package.json index be52b89..21db50d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "le-store-certbot", - "version": "2.2.2", + "version": "2.2.3", "description": "The \"certbot\" storage strategy for Greenlock.js", "main": "index.js", "scripts": { @@ -27,8 +27,8 @@ "bluebird": "^3.5.1" }, "dependencies": { - "mkdirp": "^0.5.1", - "pyconf": "^1.1.5", - "safe-replace": "^1.0.3" + "@root/mkdirp": "^1.0.0", + "pyconf": "^1.1.7", + "safe-replace": "^1.1.0" } }