Skip to content

Commit 7da3354

Browse files
committed
Merge branch '3.5' into 3.6
2 parents 52eaf53 + 1c4cf6c commit 7da3354

File tree

6 files changed

+1052
-801
lines changed

6 files changed

+1052
-801
lines changed

lib/core/cursor.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -359,15 +359,6 @@ class CoreCursor extends Readable {
359359
return this.push(this.cursorState.streamOptions.transform(result));
360360
}
361361

362-
// If we provided a map function
363-
if (
364-
this.cursorState.transforms &&
365-
typeof this.cursorState.transforms.doc === 'function' &&
366-
result != null
367-
) {
368-
return this.push(this.cursorState.transforms.doc(result));
369-
}
370-
371362
// Return the result
372363
this.push(result);
373364

lib/cursor.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,7 @@ class Cursor extends CoreCursor {
818818
driver: true
819819
});
820820
}
821+
821822
return maybePromise(this, callback, cb => {
822823
const cursor = this;
823824
const items = [];
@@ -845,12 +846,6 @@ class Cursor extends CoreCursor {
845846
// Get all buffered objects
846847
if (cursor.bufferedCount() > 0) {
847848
let docs = cursor.readBufferedDocuments(cursor.bufferedCount());
848-
849-
// Transform the doc if transform method added
850-
if (cursor.s.transforms && typeof cursor.s.transforms.doc === 'function') {
851-
docs = docs.map(cursor.s.transforms.doc);
852-
}
853-
854849
Array.prototype.push.apply(items, docs);
855850
}
856851

0 commit comments

Comments
 (0)