From d6890472ff2b7c8a971a47f0858aacdf2338cb73 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 1 Nov 2019 23:12:30 +0000 Subject: [PATCH] v3.0.26: bugfix find wrapper, update manager dep --- greenlock.js | 7 +++++++ package-lock.json | 8 ++++---- package.json | 4 ++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/greenlock.js b/greenlock.js index a1090ab..18c01b0 100644 --- a/greenlock.js +++ b/greenlock.js @@ -306,6 +306,12 @@ G.create = function(gconf) { // Note: the manager must guaranteed that these are mutable copies //console.log('greenlock._renew found', sites);; + if (!Array.isArray(sites)) { + throw new Error( + 'Developer Error: not an array of sites returned from find: ' + + JSON.stringify(sites) + ); + } function next() { var site = sites.shift(); if (!site) { @@ -549,6 +555,7 @@ function warpFind(gconf) { } }); }); + return sites; }); }; } diff --git a/package-lock.json b/package-lock.json index a6264aa..dc8f205 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@root/greenlock", - "version": "3.0.24", + "version": "3.0.25", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -90,9 +90,9 @@ "dev": true }, "greenlock-manager-fs": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/greenlock-manager-fs/-/greenlock-manager-fs-3.0.1.tgz", - "integrity": "sha512-vZfGFq1TTKxaAqdGDUwNservrNzXx0xCwT/ovG/N378GrhS+U5S8B8LUlNtQU7Fdw6RToMiBcm22OOxSrvZ2zw==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/greenlock-manager-fs/-/greenlock-manager-fs-3.0.3.tgz", + "integrity": "sha512-Jwo60nHd10PNUA9M6cylD9YB4x4hzlfO2LRIGI0X+V+zA0x3KVbNW14yj8frdfHrtsWC1JQe7oFnHVdoRbAU2A==", "requires": { "@root/mkdirp": "^1.0.0", "safe-replace": "^1.1.0" diff --git a/package.json b/package.json index 9727709..5655ad1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@root/greenlock", - "version": "3.0.25", + "version": "3.0.26", "description": "The easiest Let's Encrypt client for Node.js and Browsers", "homepage": "https://rootprojects.org/greenlock/", "main": "greenlock.js", @@ -42,7 +42,7 @@ "@root/request": "^1.3.10", "acme-http-01-standalone": "^3.0.5", "cert-info": "^1.5.1", - "greenlock-manager-fs": "^3.0.1", + "greenlock-manager-fs": "^3.0.3", "greenlock-store-fs": "^3.2.0", "safe-replace": "^1.1.0" },