From 01f283b7fd9c3a5adb5164014f12e70ac6410fa6 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 8 Aug 2016 12:02:53 -0600 Subject: [PATCH] add getOptions --- node.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/node.js b/node.js index 225eabb..52de0f8 100644 --- a/node.js +++ b/node.js @@ -28,6 +28,15 @@ function create(deps) { deps.LeCore.getAcmeUrls = require('./lib/get-acme-urls').create(deps); deps.LeCore.registerNewAccount = require('./lib/register-new-account').create(deps); deps.LeCore.getCertificate = require('./lib/get-certificate').create(deps); + deps.LeCore.getOptions = function () { + var defs = {}; + + Object.keys(defaults).forEach(function (key) { + defs[key] = defs[deps] || defaults[key]; + }); + + return defs; + }; deps.Acme = deps.LeCore.Acme;