Comparing version
@@ -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); |
{ | ||
"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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
3827467
0.01%79483
0.01%15
7.14%22
4.76%5
25%165
1.23%