From 9d6594945a4a830182547be1746af8dbeb6ffeb3 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 20 Oct 2016 11:59:41 -0600 Subject: [PATCH] return local object, not exports --- ssl-root-cas.tpl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl-root-cas.tpl.js b/ssl-root-cas.tpl.js index bcbdd49..a06553c 100644 --- a/ssl-root-cas.tpl.js +++ b/ssl-root-cas.tpl.js @@ -14,7 +14,7 @@ module.exports.rootCas.inject = function (/*context*/) { var opts = /*context ||*/ require('https').globalAgent.options; if (!opts.ca || !opts.ca.__injected) { opts.ca = (opts.ca||[]).concat(rootCas); } opts.ca.__injected = true; - return module.exports; + return rootCas; }; module.exports.rootCas.addFile = function (filepath) { // BEGIN TODO @@ -37,7 +37,7 @@ module.exports.rootCas.addFile = function (filepath) { httpsOpts.ca = httpsOpts.ca || []; httpsOpts.ca.push(buf); } - return module.exports; + return rootCas; }; module.exports.create = function () { var rootCas = originalCas.slice(0);