Skip to content

Commit

Permalink
Merge pull request #25 from dpurrington/browserify
Browse files Browse the repository at this point in the history
fix(lib): Require files statically to make it easier for browserify
  • Loading branch information
dpurrington authored Apr 27, 2017
2 parents 0bf58ae + 63815d3 commit 1ccc551
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 1ccc551

Please sign in to comment.