From 7eb5d0e5185d3f669756a7ef54034505bcf382d3 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 16 Dec 2015 03:32:25 +0000 Subject: [PATCH] 100% dep-injection for pure js --- lib/get-certificate.js | 2 +- lib/register-new-account.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/get-certificate.js b/lib/get-certificate.js index 235a9c5..e3b89f8 100644 --- a/lib/get-certificate.js +++ b/lib/get-certificate.js @@ -8,7 +8,7 @@ module.exports.create = function (deps) { var NOOP=function () {}, log=NOOP; - var request=require('request'); + var request=deps.request; var toStandardB64 = deps.leUtils.toStandardB64; var importPemPrivateKey = deps.leCrypto.importPemPrivateKey; var thumbprinter = deps.leCrypto.thumbprint; diff --git a/lib/register-new-account.js b/lib/register-new-account.js index 0c4ad69..4b0fa93 100644 --- a/lib/register-new-account.js +++ b/lib/register-new-account.js @@ -8,7 +8,7 @@ 'use strict'; module.exports.create = function (deps) { var NOOP=function () {}, log=NOOP; - var request=require('request'); + var request=deps.request; var importPemPrivateKey=deps.leCrypto.importPemPrivateKey; var Acme = deps.Acme;