We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a07840d + c29fa70 commit 59e4de7Copy full SHA for 59e4de7
index.js
@@ -1,2 +1 @@
1
module.exports = require(__dirname + '/lib')
2
-module.exports.Config = require(__dirname + '/config')
lib/index.js
@@ -38,7 +38,7 @@ const STATE_CONNECTING = 2
38
* @implements EventEmitter
39
*/
40
const DataStore = function DataStore (options) {
41
- this.config = options || config.get()
+ this.config = Object.assign({}, config.get(), options)
42
this._connections = []
43
this._mongoClient = new MongoClient()
44
0 commit comments