Socket
Socket
Sign inDemoInstall

mongodb

Package Overview
Dependencies
Maintainers
8
Versions
546
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb - npm Package Compare versions

Comparing version 6.8.0-dev.20240717.sha.35d88404 to 6.8.0-dev.20240720.sha.357ca086

8

lib/operations/find_and_modify.js

@@ -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

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc