Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.0.0-alpha6 to 1.0.0-alpha7

4

lib/cursor.js

@@ -36,2 +36,4 @@ var Response = require('./connection/commands').Response

* @property {number} cursorBatchSize The current cursorBatchSize for the cursor
* @property {number} cursorLimit The current cursorLimit for the cursor
* @property {number} cursorSkip The current cursorSkip for the cursor
*/

@@ -524,3 +526,3 @@ var Cursor = function(bson, ns, cmd, options, topology, topologyOptions) {

if(topology.type == 'mongos' && readPreference) {
findCmd['$readPreference'] = readPreference.toJSON();
finalCmd['$readPreference'] = readPreference.toJSON();
}

@@ -527,0 +529,0 @@

@@ -537,3 +537,2 @@ var f = require('util').format

}, function(err, result) {});
// Call back as the command above will fail

@@ -540,0 +539,0 @@ callback(null, removedServer);

@@ -749,3 +749,5 @@ var inherits = require('util').inherits

this.cursor = function(ns, cmd, cursorOptions) {
return new Cursor(bson, ns, cmd, cursorOptions, self, options);
cursorOptions = cursorOptions || {};
var FinalCursor = cursorOptions.cursorFactory || Cursor;
return new FinalCursor(bson, ns, cmd, cursorOptions, self, options);
}

@@ -752,0 +754,0 @@

@@ -309,3 +309,3 @@ var inherits = require('util').inherits

* @param {boolean} [options.secondaryOnlyConnectionAllowed=false] Allow connection to a secondary only replicaset
* @param {number} [options.haInterval=10000] The High availability period for replicaset inquiry
* @param {number} [options.haInterval=5000] The High availability period for replicaset inquiry
* @param {boolean} [options.emitError=false] Server will emit errors events

@@ -1230,3 +1230,5 @@ * @param {Cursor} [options.cursorFactory=Cursor] The cursor factory class used for all query cursors

this.cursor = function(ns, cmd, cursorOptions) {
return new Cursor(bson, ns, cmd, cursorOptions, self, options);
cursorOptions = cursorOptions || {};
var FinalCursor = cursorOptions.cursorFactory || Cursor;
return new FinalCursor(bson, ns, cmd, cursorOptions, self, options);
}

@@ -1452,3 +1454,3 @@

* @event ReplSet#ha
* @type {ReplSet}
* @type {function}
* @param {string} type The stage in the high availability event (start|end)

@@ -1464,3 +1466,3 @@ * @param {boolean} data.norepeat This is a repeating high availability process or a single execution only

* @event ReplSet#left
* @type {ReplSet}
* @type {function}
* @param {string} type The type of member that left (primary|secondary|arbiter)

@@ -1474,3 +1476,3 @@ * @param {Server} server The server object that left

* @event ReplSet#joined
* @type {ReplSet}
* @type {function}
* @param {string} type The type of member that joined (primary|secondary|arbiter)

@@ -1477,0 +1479,0 @@ * @param {Server} server The server object that joined

@@ -931,2 +931,3 @@ var inherits = require('util').inherits

this.cursor = function(ns, cmd, cursorOptions) {
cursorOptions = cursorOptions || {};
var FinalCursor = cursorOptions.cursorFactory || Cursor;

@@ -933,0 +934,0 @@ return new FinalCursor(bson, ns, cmd, cursorOptions, self, options);

@@ -26,4 +26,4 @@ var Logger = require('../../connection/logger')

// Ping interval
var pingInterval = options.pingInterval || 5000;
var acceptableLatency = options.acceptableLatency || 250;
var pingInterval = options.pingInterval || 10000;
var acceptableLatency = options.acceptableLatency || 15;

@@ -30,0 +30,0 @@ // Debug options

{
"name": "mongodb-core",
"version": "1.0.0-alpha6",
"version": "1.0.0-alpha7",
"description": "Core MongoDB driver functionality, no bells and whistles and meant for integration not end applications",

@@ -18,3 +18,3 @@ "main": "index.js",

"dependencies": {
"bson": "0.2.12",
"bson": "~0.2",
"mkdirp": "0.5.0",

@@ -21,0 +21,0 @@ "rimraf": "2.2.6"

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