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;