Comparing version 0.7.1 to 0.7.2
@@ -75,4 +75,8 @@ var mongodb = require('mongodb'); | ||
Cursor.prototype._read = function(size, callback) { // 0.10 stream support (0.8 compat using readable-stream) | ||
this.next(callback); | ||
Cursor.prototype._read = function() { // 0.10 stream support (0.8 compat using readable-stream) | ||
var self = this; | ||
this.next(function(err, data) { | ||
if (err) return self.emit('error', err); | ||
self.push(data); | ||
}); | ||
}; | ||
@@ -79,0 +83,0 @@ |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"repository": "git://github.com/gett/mongojs.git", | ||
@@ -20,3 +20,3 @@ "author": "Ge.tt <hello@ge.tt>", | ||
"thunky": "~0.1.0", | ||
"readable-stream": "~0.3.1" | ||
"readable-stream": "~1.0.2" | ||
}, | ||
@@ -23,0 +23,0 @@ "scripts": { |
17652
451
+ Addedcore-util-is@1.0.3(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedreadable-stream@1.0.34(transitive)
+ Addedstring_decoder@0.10.31(transitive)
- Removedreadable-stream@0.3.1(transitive)
Updatedreadable-stream@~1.0.2