@root/greenlock
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -8,10 +8,16 @@ #!/usr/bin/env node | ||
var found = ['certonly', 'add', 'update', 'config', 'defaults', 'remove', 'init'].some( | ||
function(k) { | ||
if (k === arg0) { | ||
require('./' + k); | ||
return true; | ||
} | ||
var found = [ | ||
'certonly', | ||
'add', | ||
'update', | ||
'config', | ||
'defaults', | ||
'remove', | ||
'init' | ||
].some(function(k) { | ||
if (k === arg0) { | ||
require('./' + k); | ||
return true; | ||
} | ||
); | ||
}); | ||
@@ -18,0 +24,0 @@ if (!found) { |
@@ -39,2 +39,5 @@ 'use strict'; | ||
try { | ||
if ('.' === String(manager)[0]) { | ||
manager = require('path').resolve(pkgRoot, manager); | ||
} | ||
P._loadSync(manager); | ||
@@ -41,0 +44,0 @@ } catch (e) { |
@@ -15,3 +15,3 @@ 'use strict'; | ||
var mega = mergeManager(gconf); | ||
var mega = mergeManager(greenlock, gconf); | ||
@@ -23,2 +23,14 @@ greenlock.manager = {}; | ||
greenlock.manager._modulename = gconf.manager.module; | ||
if ('/' === String(gconf.manager.module)[0]) { | ||
greenlock.manager._modulename = require('path').relative( | ||
gconf.packageRoot, | ||
greenlock.manager._modulename | ||
); | ||
if ('.' !== String(greenlock.manager._modulename)[0]) { | ||
greenlock.manager._modulename = | ||
'./' + greenlock.manager._modulename; | ||
} | ||
} | ||
var allowed = [ | ||
@@ -414,2 +426,3 @@ 'accountKeyType', //: ["P-256", "RSA-2048"], | ||
*/ | ||
try { | ||
@@ -437,3 +450,3 @@ // wrap this to be safe for @greenlock/manager | ||
function mergeManager(gconf) { | ||
function mergeManager(greenlock, gconf) { | ||
var mng; | ||
@@ -561,2 +574,17 @@ function m() { | ||
if (!mega.find) { | ||
mega._nofind = false; | ||
mega.find = async function(opts) { | ||
if (!mega._nofind) { | ||
console.warn( | ||
'Warning: manager `' + | ||
greenlock.manager._modulename + | ||
'` does not implement `find({})`\n' | ||
); | ||
mega._nofind = true; | ||
} | ||
return []; | ||
}; | ||
} | ||
if (!mega.get) { | ||
@@ -563,0 +591,0 @@ mega.get = function(opts) { |
{ | ||
"name": "@root/greenlock", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "The easiest Let's Encrypt client for Node.js and Browsers", | ||
@@ -5,0 +5,0 @@ "homepage": "https://rootprojects.org/greenlock/", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
182368
4396