mongodb-core
Advanced tools
Comparing version 2.1.14 to 2.1.15
@@ -0,1 +1,5 @@ | ||
2.1.15 2017-08-08 | ||
----------------- | ||
* Emit SDAM events on close and reconnect | ||
2.1.14 2017-07-07 | ||
@@ -2,0 +6,0 @@ ----------------- |
@@ -315,2 +315,9 @@ "use strict" | ||
if (event === 'close') { | ||
// Closing emits a server description changed event going to unknown. | ||
sdam.emitServerDescriptionChanged(self, { | ||
address: self.name, arbiters: [], hosts: [], passives: [], type: 'Unknown' | ||
}); | ||
} | ||
// Reconnect failed return error | ||
@@ -335,2 +342,7 @@ if(event == 'reconnectFailed') { | ||
if(event == 'reconnect') { | ||
// Reconnecting emits a server description changed event going from unknown to the | ||
// current server type. | ||
sdam.emitServerDescriptionChanged(self, { | ||
address: self.name, arbiters: [], hosts: [], passives: [], type: sdam.getTopologyType(self) | ||
}); | ||
return self.emit(event, self); | ||
@@ -337,0 +349,0 @@ } |
{ | ||
"name": "mongodb-core", | ||
"version": "2.1.14", | ||
"version": "2.1.15", | ||
"description": "Core MongoDB driver functionality, no bells and whistles and meant for integration not end applications", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
445995
10531
2