-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lib): Require files statically to make it easier for browserify
24
- Loading branch information
1 parent
0bf58ae
commit 63815d3
Showing
1 changed file
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |