Comparing version 6.8.0-dev.20240717.sha.35d88404 to 6.8.0-dev.20240720.sha.357ca086
@@ -74,9 +74,3 @@ "use strict"; | ||
}; | ||
// Have we specified collation | ||
try { | ||
(0, utils_1.decorateWithCollation)(cmd, coll, options); | ||
} | ||
catch (err) { | ||
return err; | ||
} | ||
(0, utils_1.decorateWithCollation)(cmd, coll, options); | ||
if (options.hint) { | ||
@@ -83,0 +77,0 @@ // TODO: once this method becomes a CommandOperation we will have the server |
{ | ||
"name": "mongodb", | ||
"version": "6.8.0-dev.20240717.sha.35d88404", | ||
"version": "6.8.0-dev.20240720.sha.357ca086", | ||
"description": "The official MongoDB driver for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -59,11 +59,37 @@ import { Readable } from 'stream'; | ||
export interface GridFSBucketReadStreamPrivate { | ||
/** | ||
* The running total number of bytes read from the chunks collection. | ||
*/ | ||
bytesRead: number; | ||
/** | ||
* The number of bytes to remove from the last chunk read in the file. This is non-zero | ||
* if `end` is not equal to the length of the document and `end` is not a multiple | ||
* of the chunkSize. | ||
*/ | ||
bytesToTrim: number; | ||
/** | ||
* The number of bytes to remove from the first chunk read in the file. This is non-zero | ||
* if `start` is not equal to the 0 and `start` is not a multiple | ||
* of the chunkSize. | ||
*/ | ||
bytesToSkip: number; | ||
files: Collection<GridFSFile>; | ||
chunks: Collection<GridFSChunk>; | ||
cursor?: FindCursor<GridFSChunk>; | ||
/** The running total number of chunks read from the chunks collection. */ | ||
expected: number; | ||
files: Collection<GridFSFile>; | ||
/** | ||
* The filter used to search in the _files_ collection (i.e., `{ _id: <> }`) | ||
* This is not the same filter used when reading chunks from the chunks collection. | ||
*/ | ||
filter: Document; | ||
/** Indicates whether or not download has started. */ | ||
init: boolean; | ||
/** The expected number of chunks to read, calculated from start, end, chunkSize and file length. */ | ||
expectedEnd: number; | ||
@@ -70,0 +96,0 @@ file?: GridFSFile; |
@@ -195,8 +195,3 @@ import type { Document } from '../bson'; | ||
// Have we specified collation | ||
try { | ||
decorateWithCollation(cmd, coll, options); | ||
} catch (err) { | ||
return err; | ||
} | ||
decorateWithCollation(cmd, coll, options); | ||
@@ -203,0 +198,0 @@ if (options.hint) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3038652
62584