diff --git a/package-lock.json b/package-lock.json index 8a75c825..bcdda1c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18150,9 +18150,9 @@ } }, "node_modules/mongodb-log-writer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/mongodb-log-writer/-/mongodb-log-writer-1.4.0.tgz", - "integrity": "sha512-hQrn8Xu58Z9uLmd2oncvu/b5KNxxKaW6MUrVRI/xObz/yzYNVWF3V4rgK9Ort72nOCmMD3PWOS+ZoZBtxgKibA==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/mongodb-log-writer/-/mongodb-log-writer-1.4.2.tgz", + "integrity": "sha512-ZQYBgW1IZtuRWsv9hF0mjpfDg6usMawkkWKnFb/goXosbW0YyxVA9OHt32TJfppGK/U2p7jQx4V9DxRFsFmmKw==", "dev": true, "dependencies": { "bson": "^4.5.1 || ^5.0.0 || ^6.0.0", @@ -24541,7 +24541,7 @@ "gen-esm-wrapper": "^1.1.0", "mocha": "^8.4.0", "mongodb": "^5.8.1 || ^6.0.0", - "mongodb-log-writer": "^1.2.0", + "mongodb-log-writer": "^1.4.2", "nyc": "^15.1.0", "os-dns-native": "^1.2.0", "resolve-mongodb-srv": "^1.1.1", @@ -24559,7 +24559,7 @@ "peerDependencies": { "@mongodb-js/oidc-plugin": "^0.4.0", "mongodb": "^5.8.1 || ^6.0.0", - "mongodb-log-writer": "^1.2.0" + "mongodb-log-writer": "^1.4.2" } }, "packages/devtools-connect/node_modules/@eslint/eslintrc": { @@ -30885,7 +30885,7 @@ "mongodb": "^5.8.1 || ^6.0.0", "mongodb-client-encryption": "^6.0.0", "mongodb-connection-string-url": "^3.0.0", - "mongodb-log-writer": "^1.2.0", + "mongodb-log-writer": "^1.4.2", "nyc": "^15.1.0", "os-dns-native": "^1.2.0", "resolve-mongodb-srv": "^1.1.1", @@ -41552,9 +41552,9 @@ } }, "mongodb-log-writer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/mongodb-log-writer/-/mongodb-log-writer-1.4.0.tgz", - "integrity": "sha512-hQrn8Xu58Z9uLmd2oncvu/b5KNxxKaW6MUrVRI/xObz/yzYNVWF3V4rgK9Ort72nOCmMD3PWOS+ZoZBtxgKibA==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/mongodb-log-writer/-/mongodb-log-writer-1.4.2.tgz", + "integrity": "sha512-ZQYBgW1IZtuRWsv9hF0mjpfDg6usMawkkWKnFb/goXosbW0YyxVA9OHt32TJfppGK/U2p7jQx4V9DxRFsFmmKw==", "dev": true, "requires": { "bson": "^4.5.1 || ^5.0.0 || ^6.0.0", diff --git a/packages/devtools-connect/package.json b/packages/devtools-connect/package.json index d27ad950..1636f97e 100644 --- a/packages/devtools-connect/package.json +++ b/packages/devtools-connect/package.json @@ -56,7 +56,7 @@ "peerDependencies": { "@mongodb-js/oidc-plugin": "^0.4.0", "mongodb": "^5.8.1 || ^6.0.0", - "mongodb-log-writer": "^1.2.0" + "mongodb-log-writer": "^1.4.2" }, "devDependencies": { "@mongodb-js/oidc-plugin": "^0.4.0", @@ -76,7 +76,7 @@ "gen-esm-wrapper": "^1.1.0", "mocha": "^8.4.0", "mongodb": "^5.8.1 || ^6.0.0", - "mongodb-log-writer": "^1.2.0", + "mongodb-log-writer": "^1.4.2", "nyc": "^15.1.0", "os-dns-native": "^1.2.0", "resolve-mongodb-srv": "^1.1.1", diff --git a/packages/devtools-connect/src/connect.ts b/packages/devtools-connect/src/connect.ts index fa7b3124..89c8913b 100644 --- a/packages/devtools-connect/src/connect.ts +++ b/packages/devtools-connect/src/connect.ts @@ -536,10 +536,8 @@ function addCAToOIDCPluginHttpOptions( const existingCustomOptions = existingOIDCPluginOptions?.customHttpOptions; if (typeof existingCustomOptions === 'function') { return { - customHttpOptions: (...args) => ({ - ...existingCustomOptions(...args), - ca, - }), + customHttpOptions: (url, options, ...restArgs) => + existingCustomOptions(url, { ...options, ca }, ...restArgs), }; } return { customHttpOptions: { ...existingCustomOptions, ca } };