Comparing version 1.6.25 to 1.6.26
@@ -27,3 +27,2 @@ 'use strict'; | ||
var defaultOpt = { | ||
auto_reconnect: false, | ||
ssl: false | ||
@@ -34,3 +33,9 @@ }; | ||
_.defaults(options.options, defaultOpt); | ||
if (isNew) { | ||
defaultOpt.autoReconnect = false; | ||
_.defaults(options, defaultOpt); | ||
} else { | ||
defaultOpt.auto_reconnect = false; | ||
_.defaults(options.options, defaultOpt); | ||
} | ||
@@ -58,3 +63,3 @@ this.options = options; | ||
var memberString = _(members).map(function(m) { return m.host + ':' + m.port }); | ||
var memberString = _(members).map(function(m) { return m.host + ':' + m.port; }); | ||
var authString = options.username && options.password | ||
@@ -61,0 +66,0 @@ ? options.username + ':' + options.password + '@' |
@@ -27,3 +27,2 @@ 'use strict'; | ||
var defaultOpt = { | ||
auto_reconnect: false, | ||
ssl: false | ||
@@ -34,3 +33,9 @@ }; | ||
_.defaults(options.options, defaultOpt); | ||
if (isNew) { | ||
defaultOpt.autoReconnect = false; | ||
_.defaults(options, defaultOpt); | ||
} else { | ||
defaultOpt.auto_reconnect = false; | ||
_.defaults(options.options, defaultOpt); | ||
} | ||
@@ -58,3 +63,3 @@ this.options = options; | ||
var memberString = _(members).map(function(m) { return m.host + ':' + m.port }); | ||
var memberString = _(members).map(function(m) { return m.host + ':' + m.port; }); | ||
var authString = options.username && options.password | ||
@@ -61,0 +66,0 @@ ? options.username + ':' + options.password + '@' |
{ | ||
"author": "adrai", | ||
"name": "cqrs-saga", | ||
"version": "1.6.25", | ||
"version": "1.6.26", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -0,1 +1,4 @@ | ||
## [v1.6.26](https://github.com/adrai/node-cqrs-saga/compare/v1.6.25...v1.6.26) | ||
- fix for new mongodb driver | ||
## [v1.6.25](https://github.com/adrai/node-cqrs-saga/compare/v1.6.24...v1.6.25) | ||
@@ -2,0 +5,0 @@ - update deps |
166859
4486