Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cleanup of exports #926

  • Loading branch information...
commit 4204696f9f89b5eb6207c02ee20678a117140158 1 parent 3c2b9c1
@christkv christkv authored
Showing with 16 additions and 19 deletions.
  1. +16 −19 lib/mongodb/index.js
View
35 lib/mongodb/index.js
@@ -24,27 +24,24 @@ try {
for (var i in module) {
exports[i] = module[i];
}
-
- // backwards compat
- exports.ReplSetServers = exports.ReplSet;
-
- // Add BSON Classes
- exports.Binary = require('bson').Binary;
- exports.Code = require('bson').Code;
- exports.DBRef = require('bson').DBRef;
- exports.Double = require('bson').Double;
- exports.Long = require('bson').Long;
- exports.MinKey = require('bson').MinKey;
- exports.MaxKey = require('bson').MaxKey;
- exports.ObjectID = require('bson').ObjectID;
- exports.Symbol = require('bson').Symbol;
- exports.Timestamp = require('bson').Timestamp;
-
- // Add BSON Parser
- exports.BSON = require('bson').BSONPure.BSON;
-
});
+// backwards compat
+exports.ReplSetServers = exports.ReplSet;
+// Add BSON Classes
+exports.Binary = require('bson').Binary;
+exports.Code = require('bson').Code;
+exports.DBRef = require('bson').DBRef;
+exports.Double = require('bson').Double;
+exports.Long = require('bson').Long;
+exports.MinKey = require('bson').MinKey;
+exports.MaxKey = require('bson').MaxKey;
+exports.ObjectID = require('bson').ObjectID;
+exports.Symbol = require('bson').Symbol;
+exports.Timestamp = require('bson').Timestamp;
+// Add BSON Parser
+exports.BSON = require('bson').BSONPure.BSON;
+
// Get the Db object
var Db = require('./db').Db;
// Set up the connect function
Please sign in to comment.
Something went wrong with that request. Please try again.