Browse Source

v3.0.10: no auto-install, fix promisify

v3 v3.0.10
AJ ONeal 4 years ago
parent
commit
98e8eaf3f0
  1. 2
      greenlock.js
  2. 2
      package-lock.json
  3. 2
      package.json
  4. 9
      plugins.js

2
greenlock.js

@ -14,8 +14,6 @@ var A = require('./accounts.js');
var C = require('./certificates.js');
var UserEvents = require('./user-events.js');
var promisify = require('util').promisify;
var caches = {};
// { maintainerEmail, directoryUrl, subscriberEmail, store, challenges }

2
package-lock.json

@ -1,6 +1,6 @@
{
"name": "@root/greenlock",
"version": "3.0.9",
"version": "3.0.10",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

2
package.json

@ -1,6 +1,6 @@
{
"name": "@root/greenlock",
"version": "3.0.9",
"version": "3.0.10",
"description": "The easiest Let's Encrypt client for Node.js and Browsers",
"homepage": "https://rootprojects.org/greenlock/",
"main": "greenlock.js",

9
plugins.js

@ -4,6 +4,7 @@ var P = module.exports;
var spawn = require('child_process').spawn;
var spawnSync = require('child_process').spawnSync;
var promisify = require('util').promisify;
// Exported for CLIs and such to override
P.PKG_DIR = __dirname;
@ -27,9 +28,17 @@ P._loadHelper = function(modname) {
try {
return Promise.resolve(require(modname));
} catch (e) {
console.error("Could not load '%s'", modname);
console.error('Did you install it?');
console.error('\tnpm install --save %s', modname);
throw e;
// Fun experiment, bad idea
/*
return P._install(modname).then(function() {
return require(modname);
});
*/
}
};

Loading…
Cancel
Save