Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit 4934adf

Browse files
committed
fix(auth-plain): only use BSON -after- requiring it
1 parent 812091b commit 4934adf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/auth/plain.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
'use strict';
22

3-
var BSON = retrieveBSON();
4-
53
var f = require('util').format,
6-
Binary = BSON.Binary,
74
retrieveBSON = require('../connection/utils').retrieveBSON,
85
Query = require('../connection/commands').Query,
96
MongoError = require('../error').MongoError;
107

8+
var BSON = retrieveBSON(),
9+
Binary = BSON.Binary;
10+
1111
var AuthSession = function(db, username, password) {
1212
this.db = db;
1313
this.username = username;

0 commit comments

Comments
 (0)