diff --git a/lib/tiny.js b/lib/tiny.js index 34a03b6..fc5a620 100644 --- a/lib/tiny.js +++ b/lib/tiny.js @@ -773,7 +773,7 @@ Tiny.prototype.createReadStream = function(options, stream) { if (options.values) { stream.emit('data', data); } else { - stream.emit('data', data, docKey); + stream.emit('data', { key: docKey, value: data }); } if (options.end && docKey.indexOf(options.end) === 0) {