fix deps scope

This commit is contained in:
AJ ONeal 2016-08-08 19:04:31 -04:00
parent 420351da62
commit 60e4ed8f7b
1 changed files with 2 additions and 3 deletions

View File

@ -25,8 +25,9 @@ function create(deps) {
deps.RSA = deps.RSA || require('rsa-compat').RSA; deps.RSA = deps.RSA || require('rsa-compat').RSA;
deps.request = deps.request || require('request'); 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.getAcmeUrls = require('./lib/get-acme-urls').create(deps);
deps.LeCore.registerNewAccount = require('./lib/register-new-account').create(deps); deps.LeCore.registerNewAccount = require('./lib/register-new-account').create(deps);
deps.LeCore.getCertificate = require('./lib/get-certificate').create(deps); deps.LeCore.getCertificate = require('./lib/get-certificate').create(deps);
@ -40,8 +41,6 @@ function create(deps) {
return defs; return defs;
}; };
deps.Acme = deps.LeCore.Acme;
return deps.LeCore; return deps.LeCore;
} }