fix deps scope
This commit is contained in:
parent
420351da62
commit
60e4ed8f7b
5
node.js
5
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue