Socket
Socket
Sign inDemoInstall

mongodb

Package Overview
Dependencies
Maintainers
1
Versions
562
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

6

lib/mongodb/commands/query_command.js

@@ -61,4 +61,6 @@ var BaseCommand = require('./base_command').BaseCommand,

QueryCommand.prototype.setMongosReadPreference = function(readPreference, tags) {
// Force the slave ok flag to be set
this.queryOptions |= QueryCommand.OPTS_SLAVE;
// Force the slave ok flag to be set if we are not using primary read preference
if(readPreference != false && readPreference != 'primary') {
this.queryOptions |= QueryCommand.OPTS_SLAVE;
}

@@ -65,0 +67,0 @@ // Backward compatibility, ensure $query only set on read preference so 1.8.X works

@@ -0,1 +1,3 @@

var ReadPreference = require('./read_preference').ReadPreference;
/**

@@ -2,0 +4,0 @@ * Mongos constructor provides a connection to a mongos proxy including failover to additional servers

{ "name" : "mongodb"
, "description" : "A node.js driver for MongoDB"
, "keywords" : ["mongodb", "mongo", "driver", "db"]
, "version" : "1.1.2"
, "version" : "1.1.3"
, "author" : "Christian Amor Kvalheim <christkv@gmail.com>"

@@ -6,0 +6,0 @@ , "contributors" : [ "Aaron Heckmann",

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