From 60e4ed8f7b927a5d67fbb81f819d38d00c71576b Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 8 Aug 2016 19:04:31 -0400 Subject: [PATCH] fix deps scope --- node.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/node.js b/node.js index 53cfe4b..c156e29 100644 --- a/node.js +++ b/node.js @@ -25,8 +25,9 @@ function create(deps) { deps.RSA = deps.RSA || require('rsa-compat').RSA; deps.request = deps.request || require('request'); + deps.Acme = require('./lib/acme-client').create(deps); - deps.LeCore.Acme = require('./lib/acme-client').create(deps); + deps.LeCore.Acme = deps.Acme; 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); @@ -40,8 +41,6 @@ function create(deps) { return defs; }; - deps.Acme = deps.LeCore.Acme; - return deps.LeCore; }