Comparing version 6.8.0-dev.20240712.sha.320dde04 to 6.8.0-dev.20240716.sha.4b219d36
{ | ||
"name": "mongodb", | ||
"version": "6.8.0-dev.20240712.sha.320dde04", | ||
"version": "6.8.0-dev.20240716.sha.4b219d36", | ||
"description": "The official MongoDB driver for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -295,3 +295,3 @@ import { type BSONSerializeOptions, type Document, resolveBSONOptions } from './bson'; | ||
async insertMany( | ||
docs: OptionalUnlessRequiredId<TSchema>[], | ||
docs: ReadonlyArray<OptionalUnlessRequiredId<TSchema>>, | ||
options?: BulkWriteOptions | ||
@@ -329,3 +329,3 @@ ): Promise<InsertManyResult<TSchema>> { | ||
async bulkWrite( | ||
operations: AnyBulkWriteOperation<TSchema>[], | ||
operations: ReadonlyArray<AnyBulkWriteOperation<TSchema>>, | ||
options?: BulkWriteOptions | ||
@@ -341,3 +341,3 @@ ): Promise<BulkWriteResult> { | ||
this as TODO_NODE_3286, | ||
operations as TODO_NODE_3286, | ||
operations, | ||
resolveOptions(this, options ?? { ordered: true }) | ||
@@ -344,0 +344,0 @@ ) |
@@ -16,7 +16,7 @@ import type { | ||
collection: Collection; | ||
operations: AnyBulkWriteOperation[]; | ||
operations: ReadonlyArray<AnyBulkWriteOperation>; | ||
constructor( | ||
collection: Collection, | ||
operations: AnyBulkWriteOperation[], | ||
operations: ReadonlyArray<AnyBulkWriteOperation>, | ||
options: BulkWriteOptions | ||
@@ -23,0 +23,0 @@ ) { |
@@ -107,5 +107,5 @@ import type { Document } from '../bson'; | ||
collection: Collection; | ||
docs: Document[]; | ||
docs: ReadonlyArray<Document>; | ||
constructor(collection: Collection, docs: Document[], options: BulkWriteOptions) { | ||
constructor(collection: Collection, docs: ReadonlyArray<Document>, options: BulkWriteOptions) { | ||
super(options); | ||
@@ -112,0 +112,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
3037892