You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mongodb

Package Overview
Dependencies
Maintainers
5
Versions
693
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

to
6.18.0-dev.20250724.sha.acd86250

4

lib/client-side-encryption/state_machine.js

@@ -333,2 +333,6 @@ "use strict";

async setTlsOptions(tlsOptions, options) {
// If a secureContext is provided, ensure it is set.
if (tlsOptions.secureContext) {
options.secureContext = tlsOptions.secureContext;
}
if (tlsOptions.tlsCertificateKeyFile) {

@@ -335,0 +339,0 @@ const cert = await fs.readFile(tlsOptions.tlsCertificateKeyFile);

2

package.json
{
"name": "mongodb",
"version": "6.18.0-dev.20250723.sha.d92acfc1",
"version": "6.18.0-dev.20250724.sha.acd86250",
"description": "The official MongoDB driver for Node.js",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -109,3 +109,3 @@ import * as fs from 'fs/promises';

MongoClientOptions,
'tlsCAFile' | 'tlsCertificateKeyFile' | 'tlsCertificateKeyFilePassword'
'tlsCAFile' | 'tlsCertificateKeyFile' | 'tlsCertificateKeyFilePassword' | 'secureContext'
>;

@@ -525,2 +525,6 @@

): Promise<void> {
// If a secureContext is provided, ensure it is set.
if (tlsOptions.secureContext) {
options.secureContext = tlsOptions.secureContext;
}
if (tlsOptions.tlsCertificateKeyFile) {

@@ -527,0 +531,0 @@ const cert = await fs.readFile(tlsOptions.tlsCertificateKeyFile);

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display