return local object, not exports

This commit is contained in:
AJ ONeal 2016-10-20 11:59:41 -06:00
parent 78ad49a688
commit 9d6594945a
1 changed files with 2 additions and 2 deletions

View File

@ -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);