From 577ddf9094dea1602d6584a9330dd4162ecc34ac Mon Sep 17 00:00:00 2001 From: Paula Stachova Date: Mon, 30 Sep 2024 15:27:06 +0200 Subject: [PATCH] fix --- package-lock.json | 102 +----------------- package.json | 2 +- src/connectionController.ts | 1 + .../suite/explorer/explorerController.test.ts | 1 + 4 files changed, 8 insertions(+), 98 deletions(-) diff --git a/package-lock.json b/package-lock.json index ffd6573f9..189d640ce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@babel/parser": "^7.24.6", "@babel/traverse": "^7.24.6", "@mongodb-js/compass-components": "^1.25.0", - "@mongodb-js/connection-form": "^1.41.0", + "@mongodb-js/connection-form": "^1.41.1", "@mongodb-js/connection-info": "^0.7.0", "@mongodb-js/mongodb-constants": "^0.10.2", "@mongosh/browser-runtime-electron": "^2.3.0", @@ -3566,18 +3566,6 @@ "react": "^17.0.2" } }, - "node_modules/@mongodb-js/compass-user-data": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/@mongodb-js/compass-user-data/-/compass-user-data-0.3.8.tgz", - "integrity": "sha512-67pTwWuYO6lMmbT3Kd5Z8pp/dNARNvHYCCGuiUz7WuoKgWfLxh3m+40v6GPIr05BCQ0/9Cj9usCOkDlHVhoaxw==", - "license": "SSPL", - "dependencies": { - "@mongodb-js/compass-logging": "^1.4.8", - "@mongodb-js/compass-utils": "^0.6.12", - "write-file-atomic": "^5.0.1", - "zod": "^3.22.3" - } - }, "node_modules/@mongodb-js/compass-utils": { "version": "0.6.12", "resolved": "https://registry.npmjs.org/@mongodb-js/compass-utils/-/compass-utils-0.6.12.tgz", @@ -3589,16 +3577,15 @@ } }, "node_modules/@mongodb-js/connection-form": { - "version": "1.41.0", - "resolved": "https://registry.npmjs.org/@mongodb-js/connection-form/-/connection-form-1.41.0.tgz", - "integrity": "sha512-O3O47LNZpOFKeVxrfPXRF01t2bU6KDCsj3Z6T9OgATK5ilup1+nOuvuklcuFJbCQ1R40cTm1SwOoi8ApA0WFdg==", + "version": "1.41.1", + "resolved": "https://registry.npmjs.org/@mongodb-js/connection-form/-/connection-form-1.41.1.tgz", + "integrity": "sha512-UycBZSvUG9kNz8vsbw9MqnkvKYyPrGAI5J92q1ZTj0GnvxxD5aRXoGZUyAVXrPuyH2WnUmlG73oFSvtQyQY1mA==", "license": "SSPL", "dependencies": { "@mongodb-js/compass-components": "^1.30.0", "@mongodb-js/compass-editor": "^0.31.0", "@mongodb-js/connection-info": "^0.9.0", "@mongodb-js/shell-bson-parser": "^1.1.2", - "compass-preferences-model": "^2.29.0", "lodash": "^4.17.21", "mongodb": "^6.8.0", "mongodb-build-info": "^1.7.2", @@ -7889,52 +7876,6 @@ "node": ">=14" } }, - "node_modules/compass-preferences-model": { - "version": "2.29.0", - "resolved": "https://registry.npmjs.org/compass-preferences-model/-/compass-preferences-model-2.29.0.tgz", - "integrity": "sha512-UdU6hoONHaOM5u0pN5FjREHoaqCaOesjqVF110jm+tiympcHrfGOwMvbSbgAOYMy9ax/n2utwCPmRNhQnTSDOg==", - "license": "SSPL", - "dependencies": { - "@mongodb-js/compass-logging": "^1.4.8", - "@mongodb-js/compass-user-data": "^0.3.8", - "@mongodb-js/devtools-proxy-support": "^0.3.9", - "bson": "^6.7.0", - "hadron-app-registry": "^9.2.7", - "hadron-ipc": "^3.2.23", - "js-yaml": "^4.1.0", - "lodash": "^4.17.21", - "react": "^17.0.2", - "yargs-parser": "^21.1.1", - "zod": "^3.22.3" - } - }, - "node_modules/compass-preferences-model/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "license": "Python-2.0" - }, - "node_modules/compass-preferences-model/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/compass-preferences-model/node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -12046,6 +11987,7 @@ "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, "engines": { "node": ">=0.8.19" } @@ -19177,31 +19119,6 @@ "node": ">=4" } }, - "node_modules/write-file-atomic": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.1.tgz", - "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==", - "license": "ISC", - "dependencies": { - "imurmurhash": "^0.1.4", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/write-file-atomic/node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/write/node_modules/mkdirp": { "version": "0.5.6", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", @@ -19452,15 +19369,6 @@ "funding": { "url": "https://github.com/sponsors/sindresorhus" } - }, - "node_modules/zod": { - "version": "3.23.8", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.23.8.tgz", - "integrity": "sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } } } } diff --git a/package.json b/package.json index 5c7b80354..4aa4fccf7 100644 --- a/package.json +++ b/package.json @@ -1082,7 +1082,7 @@ "@babel/parser": "^7.24.6", "@babel/traverse": "^7.24.6", "@mongodb-js/compass-components": "^1.25.0", - "@mongodb-js/connection-form": "^1.41.0", + "@mongodb-js/connection-form": "^1.41.1", "@mongodb-js/connection-info": "^0.7.0", "@mongodb-js/mongodb-constants": "^0.10.2", "@mongosh/browser-runtime-electron": "^2.3.0", diff --git a/src/connectionController.ts b/src/connectionController.ts index ddedadc4d..65c0ff6e0 100644 --- a/src/connectionController.ts +++ b/src/connectionController.ts @@ -322,6 +322,7 @@ export default class ConnectionController { productDocsLink: LINKS.extensionDocs(), }), logger: Object.assign(log, { mongoLogId }), + proxyOptions: {}, }); this._connectionAttempt = connectionAttempt; this._connectingConnectionId = connectionId; diff --git a/src/test/suite/explorer/explorerController.test.ts b/src/test/suite/explorer/explorerController.test.ts index cadca2a99..0e47cced2 100644 --- a/src/test/suite/explorer/explorerController.test.ts +++ b/src/test/suite/explorer/explorerController.test.ts @@ -75,6 +75,7 @@ suite('Explorer Controller Test Suite', function () { testConnectionController._connectionAttempt = createConnectionAttempt({ connectFn: connect, logger: Object.assign(log, { mongoLogId }), + proxyOptions: {}, }); const connectionsItems = await treeController.getChildren();