From 63815d330b3e0a510bf31d7272da1b8d92e2718d Mon Sep 17 00:00:00 2001 From: Dave Purrington Date: Thu, 27 Apr 2017 18:17:18 -0400 Subject: [PATCH] fix(lib): Require files statically to make it easier for browserify 24 --- lib/index.js | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/lib/index.js b/lib/index.js index c9ed958..7cd50f7 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,9 +1,17 @@ -var glob = require( 'glob' ) - , path = require( 'path' ); +const auth0admincheck = require ('./auth0admincheck'); +const auth0client = require('./auth0client'); +const auth0clientbuilder = require('./auth0clientbuilder'); +const auth0profile = require('./auth0profile'); +const auth0ui = require('./auth0ui'); +const auth0verification = require('./auth0verification'); +const unauthorized = require('./unauthorized'); -require('fs').readdirSync(__dirname + '/').forEach(function(file) { - if (file.match(/\.js$/) !== null && file !== 'index.js') { - var name = file.replace('.js', ''); - exports[name] = require('./' + file); - } -}); \ No newline at end of file +exports = { + auth0admincheck, + auth0client, + auth0clientbuilder, + auth0profile, + auth0ui, + auth0verification, + unauthorized, +}