mongodb-core
Advanced tools
Comparing version 3.0.6 to 3.0.7
@@ -0,1 +1,12 @@ | ||
<a name="3.0.7"></a> | ||
## [3.0.7](https://github.com/mongodb-js/mongodb-core/compare/v3.0.6...v3.0.7) (2018-04-17) | ||
### Bug Fixes | ||
* **auth:** pass auth result to callback ([d2192fd](https://github.com/mongodb-js/mongodb-core/commit/d2192fd)) | ||
* **auth:** prevent stalling on authentication when connected ([f52cf68](https://github.com/mongodb-js/mongodb-core/commit/f52cf68)) | ||
<a name="3.0.6"></a> | ||
@@ -2,0 +13,0 @@ ## [3.0.6](https://github.com/mongodb-js/mongodb-core/compare/v3.0.5...v3.0.6) (2018-04-09) |
@@ -827,3 +827,3 @@ 'use strict'; | ||
for (var i = 0; i < connections.length; i++) { | ||
authenticate(self, args, connections[i], function(err) { | ||
authenticate(self, args, connections[i], function(err, result) { | ||
connectionsCount = connectionsCount - 1; | ||
@@ -854,5 +854,5 @@ | ||
return cb(error); | ||
return cb(error, result); | ||
} | ||
cb(null); | ||
cb(null, result); | ||
} | ||
@@ -874,3 +874,3 @@ }); | ||
// Authenticate all live connections | ||
authenticateLiveConnections(self, args, function(err) { | ||
authenticateLiveConnections(self, args, function(err, result) { | ||
// Credentials correctly stored in auth provider if successful | ||
@@ -880,3 +880,3 @@ // Any new connections will now reauthenticate correctly | ||
// Return after authentication connections | ||
callback(err); | ||
callback(err, result); | ||
}); | ||
@@ -883,0 +883,0 @@ }); |
@@ -1385,3 +1385,3 @@ 'use strict'; | ||
// Executed at some point when the handler deems it's reconnected | ||
if (self.s.disconnectHandler != null) { | ||
if (!this.isConnected() && self.s.disconnectHandler != null) { | ||
if (!self.s.replicaSetState.hasPrimary() && !self.s.options.secondaryOnlyConnectionAllowed) { | ||
@@ -1388,0 +1388,0 @@ return self.s.disconnectHandler.add('auth', db, allArgs, {}, callback); |
{ | ||
"name": "mongodb-core", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "Core MongoDB driver functionality, no bells and whistles and meant for integration not end applications", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
621443