Skip to content

Commit

Permalink
fix(lib): Require files statically to make it easier for browserify
Browse files Browse the repository at this point in the history
24
  • Loading branch information
dpurrington committed Apr 27, 2017
1 parent 0bf58ae commit 63815d3
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -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);
}
});
exports = {
auth0admincheck,
auth0client,
auth0clientbuilder,
auth0profile,
auth0ui,
auth0verification,
unauthorized,
}

0 comments on commit 63815d3

Please sign in to comment.