mongodb-core
Advanced tools
Comparing version 1.2.0 to 1.2.2
@@ -0,1 +1,9 @@ | ||
1.2.2 06-22-2015 | ||
----------------- | ||
- Fix issue with SCRAM authentication causing authentication to return true on failed authentication (Issue 26, https://github.com/cglass17) | ||
1.2.1 06-17-2015 | ||
----------------- | ||
- Ensure serializeFunctions passed down correctly to wire protocol. | ||
1.2.0 06-17-2015 | ||
@@ -7,2 +15,3 @@ ----------------- | ||
- NODE-483 throw error if capabilities of topology is queries before topology has performed connection setup. | ||
- NODE-487 fixed issue where killcursor command was not being sent correctly on limit and skip queries. | ||
@@ -9,0 +18,0 @@ 1.1.33 05-31-2015 |
@@ -138,2 +138,3 @@ "use strict"; | ||
if(err) { | ||
numberOfValidConnections = numberOfValidConnections - 1; | ||
errorObject = err; return false; | ||
@@ -317,2 +318,2 @@ } else if(r.result['$err']) { | ||
module.exports = ScramSHA1; | ||
module.exports = ScramSHA1; |
@@ -181,3 +181,3 @@ "use strict"; | ||
state.currentReconnectRetry = state.reconnectTries; | ||
// Remove any non used handlers | ||
@@ -598,4 +598,4 @@ var events = ['error', 'close', 'timeout', 'parseError']; | ||
// Create a new server instance | ||
var server = new Server(options) | ||
var server = new Server(options) | ||
// Add handlers | ||
@@ -799,3 +799,3 @@ server.on('connect', function(_server) { | ||
catch(err) { process.nextTick(function() { throw err}); } | ||
}); | ||
}); | ||
} | ||
@@ -856,3 +856,3 @@ | ||
if(!Array.isArray(cmd)) { | ||
return executeSingleOperation(self, ns, cmd, queryOptions, options, onAll, callback); | ||
return executeSingleOperation(self, ns, cmd, queryOptions, options, onAll, callback); | ||
} | ||
@@ -896,3 +896,3 @@ | ||
var query = queries[i]; | ||
// Execute a single command query | ||
@@ -903,3 +903,3 @@ try { | ||
return callback(MongoError.create(err)); | ||
} | ||
} | ||
@@ -912,3 +912,3 @@ // Register the callback | ||
operationsLeft = operationsLeft - 1; | ||
// If we have an error cancel the operation | ||
@@ -943,3 +943,3 @@ if(err) { | ||
for(var i = 0; i < results.length; i++) { | ||
commandResults[i] = new CommandResult(results[i], connection); | ||
commandResults[i] = new CommandResult(results[i], connection); | ||
} | ||
@@ -946,0 +946,0 @@ |
@@ -39,3 +39,3 @@ "use strict"; | ||
writeCommand.ordered = ordered; | ||
writeCommand.writeConcern = writeConcern; | ||
writeCommand.writeConcern = writeConcern; | ||
@@ -48,3 +48,3 @@ // Options object | ||
// Execute command | ||
topology.command(f("%s.$cmd", d), writeCommand, opts, callback); | ||
topology.command(f("%s.$cmd", d), writeCommand, opts, callback); | ||
} | ||
@@ -60,5 +60,5 @@ | ||
LegacySupport.prototype.update = function(topology, ismaster, ns, bson, pool, callbacks, ops, options, callback) { | ||
LegacySupport.prototype.update = function(topology, ismaster, ns, bson, pool, callbacks, ops, options, callback) { | ||
executeWrite(topology, 'update', 'updates', ns, ops, options, callback); | ||
} | ||
} | ||
@@ -104,3 +104,3 @@ LegacySupport.prototype.remove = function(topology, ismaster, ns, bson, pool, callbacks, ops, options, callback) { | ||
} | ||
// Register a callback | ||
@@ -136,3 +136,3 @@ callbacks.register(getMore.requestId, queryCallback); | ||
var numberToReturn = 0; | ||
// Unpack the limit and batchSize values | ||
@@ -179,3 +179,3 @@ if(cursorState.limit == 0) { | ||
// If we have a special modifier | ||
if(usesSpecialModifier) { | ||
if(usesSpecialModifier) { | ||
findCmd['$query'] = cmd.query; | ||
@@ -186,2 +186,6 @@ } else { | ||
// Serialize functions | ||
var serializeFunctions = typeof options.serializeFunctions == 'boolean' | ||
? options.serializeFunctions : false; | ||
// Build Query object | ||
@@ -191,2 +195,3 @@ var query = new Query(bson, ns, findCmd, { | ||
, checkKeys: false, returnFieldSelector: cmd.fields | ||
, serializeFunctions: serializeFunctions | ||
}); | ||
@@ -206,3 +211,3 @@ | ||
return query; | ||
} | ||
} | ||
@@ -233,6 +238,10 @@ // | ||
// Serialize functions | ||
var serializeFunctions = typeof options.serializeFunctions == 'boolean' | ||
? options.serializeFunctions : false; | ||
// Build Query object | ||
var query = new Query(bson, f('%s.$cmd', parts.shift()), finalCmd, { | ||
numberToSkip: 0, numberToReturn: -1 | ||
, checkKeys: false | ||
, checkKeys: false, serializeFunctions: serializeFunctions | ||
}); | ||
@@ -259,2 +268,2 @@ | ||
module.exports = LegacySupport; | ||
module.exports = LegacySupport; |
{ | ||
"name": "mongodb-core", | ||
"version": "1.2.0", | ||
"version": "1.2.2", | ||
"description": "Core MongoDB driver functionality, no bells and whistles and meant for integration not end applications", | ||
@@ -29,3 +29,3 @@ "main": "index.js", | ||
"rimraf": "2.2.6", | ||
"mongodb-version-manager": "^0.5.0" | ||
"mongodb-version-manager": "^0.7.1" | ||
}, | ||
@@ -32,0 +32,0 @@ "optionalDependencies": { |
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
400798
7971