support init(deps)

このコミットが含まれているのは:
AJ ONeal 2019-06-15 14:36:20 -06:00
コミット fb69d25250
2個のファイルの変更14行の追加1行の削除

ファイルの表示

@ -407,6 +407,19 @@ module.exports.create = function (gl) {
copy.challenges[challenge.type].remove(copy, challenge.altname, challenge.token, done); copy.challenges[challenge.type].remove(copy, challenge.altname, challenge.token, done);
} }
}; };
certReq.init = function (deps) {
var copy = utils.merge(deps, args);
copy = utils.merge(copy, gl);
utils.tplCopy(copy);
Object.keys(copy.challenges).forEach(function (key) {
if ('function' === typeof copy.challenges[key].init) {
copy.challenges[key].init(copy);
}
});
return null;
};
certReq.getZones = function (challenge) { certReq.getZones = function (challenge) {
var copy = utils.merge({ dnsHosts: args.domains.map(function (x) { return 'xxxx.' + x; }) }, args); var copy = utils.merge({ dnsHosts: args.domains.map(function (x) { return 'xxxx.' + x; }) }, args);
copy = utils.merge(copy, gl); copy = utils.merge(copy, gl);

ファイルの表示

@ -1,6 +1,6 @@
{ {
"name": "greenlock", "name": "greenlock",
"version": "2.8.0", "version": "2.8.1",
"description": "Greenlock is Let's Encrypt (ACME) client for node.js", "description": "Greenlock is Let's Encrypt (ACME) client for node.js",
"homepage": "https://greenlock.domains/", "homepage": "https://greenlock.domains/",
"main": "index.js", "main": "index.js",