100% dep-injection for pure js

This commit is contained in:
AJ ONeal 2015-12-16 03:32:25 +00:00
parent e5aa40c3d3
commit 7eb5d0e518
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
module.exports.create = function (deps) { module.exports.create = function (deps) {
var NOOP=function () {}, log=NOOP; var NOOP=function () {}, log=NOOP;
var request=require('request'); var request=deps.request;
var toStandardB64 = deps.leUtils.toStandardB64; var toStandardB64 = deps.leUtils.toStandardB64;
var importPemPrivateKey = deps.leCrypto.importPemPrivateKey; var importPemPrivateKey = deps.leCrypto.importPemPrivateKey;
var thumbprinter = deps.leCrypto.thumbprint; var thumbprinter = deps.leCrypto.thumbprint;

View File

@ -8,7 +8,7 @@
'use strict'; 'use strict';
module.exports.create = function (deps) { module.exports.create = function (deps) {
var NOOP=function () {}, log=NOOP; var NOOP=function () {}, log=NOOP;
var request=require('request'); var request=deps.request;
var importPemPrivateKey=deps.leCrypto.importPemPrivateKey; var importPemPrivateKey=deps.leCrypto.importPemPrivateKey;
var Acme = deps.Acme; var Acme = deps.Acme;