Comparing version 1.3.8 to 1.3.9
@@ -407,3 +407,3 @@ var EventEmitter = require('events').EventEmitter | ||
// Delete the current object | ||
delete this._callBackStore._notReplied[id]; | ||
delete this._callBackStore._notReplied[id]; | ||
// Emit to the callback of the object | ||
@@ -410,0 +410,0 @@ this._callBackStore.emit(id, err, document, info.connection); |
@@ -486,2 +486,9 @@ var Connection = require('./connection').Connection, | ||
if(firstResult[0].err != null || firstResult[0].errmsg != null) { | ||
// Cleanup the remaining callback | ||
if(Array.isArray(callbackInfo.info.chained)) { | ||
for(var i = 0; i < callbackInfo.info.chained.length; i++) { | ||
if(callbackInfo.info.chained[i] != mongoReply.responseTo) | ||
server._removeHandler(callbackInfo.info.chained[i]); | ||
} | ||
} | ||
// Trigger the callback for the error | ||
@@ -499,3 +506,3 @@ server._callHandler(mongoReply.responseTo, mongoReply, null); | ||
server._callHandler(mongoReply.responseTo, callbackInfo.info.results.shift(), null); | ||
} else{ | ||
} else{ | ||
// Add the results to all the results | ||
@@ -502,0 +509,0 @@ for(var i = 0; i < chainedIds.length; i++) { |
{ "name" : "mongodb" | ||
, "description" : "A node.js driver for MongoDB" | ||
, "keywords" : ["mongodb", "mongo", "driver", "db"] | ||
, "version" : "1.3.8" | ||
, "version" : "1.3.9" | ||
, "author" : "Christian Amor Kvalheim <christkv@gmail.com>" | ||
@@ -6,0 +6,0 @@ , "contributors" : [ "Aaron Heckmann", |
Sorry, the diff of this file is too big to display
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
546507
49
12586
7