Skip to content

Commit 615b23f

Browse files
committed
fix(legacy): support legacy import expectations
1 parent f6a9a8e commit 615b23f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

index.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
'use strict';
22

3+
const kerberos = require('./lib/kerberos');
4+
35
// Get the Kerberos library
4-
module.exports = require('./lib/kerberos');
6+
module.exports = kerberos;
7+
8+
// Support for legacy versions of the mongodb driver expect this export
9+
module.exports.Kerberos = kerberos;
510

611
// Set up the auth processes
712
module.exports.processes = {
813
MongoAuthProcess: require('./lib/auth_processes/mongodb').MongoAuthProcess
914
};
15+

0 commit comments

Comments
 (0)