Skip to content

Commit 069d80e

Browse files
committed
chore: lint
1 parent d6461a8 commit 069d80e

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

src/cmap/wire_protocol/responses.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ function throwUnsupportedError() {
120120
throw new Error('Unsupported method');
121121
}
122122

123+
/** @internal */
123124
export class CursorResponse extends MongoDBResponse {
124125
public id: Long | null = null;
125126
public ns: MongoDBNamespace | null = null;

src/cursor/abstract_cursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ class ReadableCursorStream extends Readable {
961961

962962
private _readNext() {
963963
// eslint-disable-next-line github/no-then
964-
next(this._cursor, { blocking: true, transform: true }).then(
964+
next(this._cursor, { blocking: true, transform: true, hasNext: false }).then(
965965
result => {
966966
if (result == null) {
967967
this.push(null);

src/cursor/run_command_cursor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ export class RunCommandCursor extends AbstractCursor {
125125
const getMoreOperation = new GetMoreOperation(this.namespace, this.id!, this.server!, {
126126
...this.cursorOptions,
127127
session: this.session,
128-
...this.getMoreOptions
128+
...this.getMoreOptions,
129+
useCursorResponse: false
129130
});
130131

131132
return await executeOperation(this.client, getMoreOperation);

src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,11 @@ export type { ConnectionPoolMetrics } from './cmap/metrics';
290290
export type { StreamDescription, StreamDescriptionOptions } from './cmap/stream_description';
291291
export type { CompressorName } from './cmap/wire_protocol/compression';
292292
export type { JSTypeOf, OnDemandDocument } from './cmap/wire_protocol/on_demand/document';
293-
export type { MongoDBResponse, MongoDBResponseConstructor } from './cmap/wire_protocol/responses';
293+
export type {
294+
CursorResponse,
295+
MongoDBResponse,
296+
MongoDBResponseConstructor
297+
} from './cmap/wire_protocol/responses';
294298
export type { CollectionOptions, CollectionPrivate, ModifyResult } from './collection';
295299
export type {
296300
COMMAND_FAILED,

0 commit comments

Comments
 (0)