From 0d14db1f1c86722f4d78e445aedead905be8573c Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 7 Apr 2019 21:35:51 -0600 Subject: [PATCH] v2.7.16: minor updates and dep updates for v3 --- index.js | 2 +- lib/core.js | 1 + package-lock.json | 14 +++++++------- package.json | 6 +++--- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/index.js b/index.js index 8e3e45e..48b6e73 100644 --- a/index.js +++ b/index.js @@ -28,7 +28,7 @@ function promisifyAllStore(obj) { if ('function' !== typeof obj[key] || /Async$/.test(key)) { return; } var p; - if (1 === obj[key].length) { + if (0 === obj[key].length || 1 === obj[key].length) { // wrap just in case it's synchronous (or improperly throws) p = function (opts) { return PromiseA.resolve().then(function () { return obj[key](opts); }); }; } else { diff --git a/lib/core.js b/lib/core.js index 6b1fa74..325550c 100644 --- a/lib/core.js +++ b/lib/core.js @@ -152,6 +152,7 @@ module.exports.create = function (gl) { var accountKeypairPromise; args.keypair = keypair; + args.receipt = receipt; if (newAccountKeypair) { accountKeypairPromise = gl.store.accounts.setKeypairAsync(args, keypair); } diff --git a/package-lock.json b/package-lock.json index 3600942..ea62900 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "greenlock", - "version": "2.7.14", + "version": "2.7.15", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -18,9 +18,9 @@ } }, "acme-v2": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/acme-v2/-/acme-v2-1.7.6.tgz", - "integrity": "sha512-k4ZlTI8txU7AweKny2MK9EAJTSCSu9ueodrv3v91r2NckTuHRu8ELzN3LbP5zlTrb2coNFay4uLcA3u4ona67A==", + "version": "1.7.7", + "resolved": "https://registry.npmjs.org/acme-v2/-/acme-v2-1.7.7.tgz", + "integrity": "sha512-Pg0EQ45h8N2e4K2goYedutCgWxAmtcruwDHr6hgPBgAWEORVb5SQEdXjtEhCrn+APtr7MyFPryyzXpYpDD5ecA==", "requires": { "@coolaj86/urequest": "^1.3.6", "rsa-compat": "^2.0.6" @@ -74,9 +74,9 @@ } }, "le-store-fs": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/le-store-fs/-/le-store-fs-1.0.2.tgz", - "integrity": "sha512-9Xm9Lro0qCJMSdsR2496lqu+VjjRUC0Rz3BYGpgVbWb+9+4wyLk+Gq76q3nI3UzrpDxcqhR+Jh1FDxsRowKmmg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/le-store-fs/-/le-store-fs-1.0.3.tgz", + "integrity": "sha512-JdnYvfBiJwgjNFQ55Qw5bgWd+MsnE466AgBMWw6dMzORTQ0F2a35u0l8VvZ9qRBeSoAv6Kt/y5saATzjNltcqQ==", "requires": { "mkdirp": "^0.5.1", "safe-replace": "^1.1.0" diff --git a/package.json b/package.json index 6609596..9b565d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "greenlock", - "version": "2.7.15", + "version": "2.7.16", "description": "Let's Encrypt for node.js on npm", "main": "index.js", "files": [ @@ -39,14 +39,14 @@ }, "dependencies": { "acme": "^1.3.0", - "acme-v2": "^1.7.6", + "acme-v2": "^1.7.7", "cert-info": "^1.5.1", "keypairs": "^1.2.14", "le-challenge-dns": "^3.0.3", "le-challenge-fs": "^2.0.2", "le-sni-auto": "^2.1.8", "le-store-certbot": "^2.2.2", - "le-store-fs": "^1.0.2", + "le-store-fs": "^1.0.3", "rsa-compat": "^2.0.6" }, "engines": {