Skip to content

Commit

Permalink
fix(legacy): support legacy import expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Aug 1, 2018
1 parent f6a9a8e commit 615b23f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
'use strict';

const kerberos = require('./lib/kerberos');

// Get the Kerberos library
module.exports = require('./lib/kerberos');
module.exports = kerberos;

// Support for legacy versions of the mongodb driver expect this export
module.exports.Kerberos = kerberos;

// Set up the auth processes
module.exports.processes = {
MongoAuthProcess: require('./lib/auth_processes/mongodb').MongoAuthProcess
};

0 comments on commit 615b23f

Please # to comment.