Socket
Socket
Sign inDemoInstall

mongodb-core

Package Overview
Dependencies
Maintainers
1
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-core - npm Package Compare versions

Comparing version 1.2.25 to 1.2.26

6

HISTORY.md

@@ -0,1 +1,7 @@

1.2.26 11-23-2015
-----------------
- Converted test suite to use mongodb-topology-manager.
- Upgraded bson library to V0.4.20.
- Minor fixes for 3.2 readPreferences.
1.2.25 11-23-2015

@@ -2,0 +8,0 @@ -----------------

@@ -134,2 +134,3 @@ "use strict";

var connections = [];
this.s.connectedServers.forEach(function(e) {

@@ -396,2 +397,5 @@ connections = connections.concat(e.connections());

// Set connecting state
this.s.state = CONNECTING;
// Attempt to connect to all the servers

@@ -914,2 +918,5 @@ while(servers.length > 0) {

state.state = CONNECTED;
self.emit('reconnect', self);
} else if(state.state == CONNECTING) {
state.state = CONNECTED;
self.emit('connect', self);

@@ -916,0 +923,0 @@ }

6

lib/topologies/replset.js

@@ -1212,3 +1212,3 @@ "use strict";

// No more candiate servers
if(state.state = CONNECTING && state.initialConnectionServers.length == 0
if(state.state == CONNECTING && state.initialConnectionServers.length == 0
&& state.replState.primary == null && state.replState.secondaries.length == 0) {

@@ -1406,3 +1406,5 @@ return self.emit('error', new MongoError("no replicaset members found in seedlist"));

var found = addToListIfNotExist(state.disconnectedServers, server);
if(!found) self.emit('left', state.replState.remove(server), server);
if(!found) {
self.emit('left', state.replState.remove(server), server);
}

@@ -1409,0 +1411,0 @@ // Fire off a detection of missing server using minHeartbeatFrequencyMS

@@ -36,3 +36,3 @@ "use strict";

var writeConcern = options.writeConcern;
// return skeleton

@@ -152,3 +152,3 @@ var writeCommand = {};

if(cursorState.cmd.tailable
if(cursorState.cmd.tailable
&& typeof cursorState.cmd.maxAwaitTimeMS == 'number') {

@@ -433,9 +433,9 @@ getMoreCmd.maxTimeMS = cursorState.cmd.maxAwaitTimeMS;

// Set up the serialize and ignoreUndefined fields
var serializeFunctions = typeof options.serializeFunctions == 'boolean'
var serializeFunctions = typeof options.serializeFunctions == 'boolean'
? options.serializeFunctions : false;
var ignoreUndefined = typeof options.ignoreUndefined == 'boolean'
var ignoreUndefined = typeof options.ignoreUndefined == 'boolean'
? options.ignoreUndefined : false;
// We have a Mongos topology, check if we need to add a readPreference
if(topology.type == 'mongos'
if(topology.type == 'mongos'
&& readPreference

@@ -487,8 +487,8 @@ && readPreference.preference != 'primary') {

// Set up the serialize and ignoreUndefined fields
var ignoreUndefined = typeof options.ignoreUndefined == 'boolean'
var ignoreUndefined = typeof options.ignoreUndefined == 'boolean'
? options.ignoreUndefined : false;
// We have a Mongos topology, check if we need to add a readPreference
if(topology.type == 'mongos'
&& readPreference
if(topology.type == 'mongos'
&& readPreference
&& readPreference.preference != 'primary') {

@@ -495,0 +495,0 @@ finalCmd = {

{
"name": "mongodb-core",
"version": "1.2.25",
"version": "1.2.26",
"description": "Core MongoDB driver functionality, no bells and whistles and meant for integration not end applications",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "node test/runner.js -t functional"
},

@@ -18,5 +18,6 @@ "repository": {

"dependencies": {
"bson": "~0.4.19"
"bson": "~0.4.20"
},
"devDependencies": {
"mongodb-topology-manager": "1.0.x",
"integra": "0.1.8",

@@ -27,5 +28,5 @@ "optimist": "latest",

"gleak": "0.5.0",
"mongodb-tools": "~1.0",
"mkdirp": "0.5.0",
"rimraf": "2.2.6",
"es6-promise": "^3.0.2",
"mongodb-version-manager": "^1.x",

@@ -42,4 +43,3 @@ "co": "4.5.4"

},
"scripts": { "test" : "node test/runner.js -t functional" },
"homepage": "https://github.com/christkv/mongodb-core"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc