diff --git a/package.json b/package.json index 6b83eb30..acabeac6 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "husky": "8.0.3", "jest": "29.7.0", "lint-staged": "13.2.3", - "prettier": "3.2.5", + "prettier": "3.3.3", "ts-jest": "29.1.4", "typedoc": "^0.24.8", "typescript": "5.0.4" diff --git a/packages/mongodb-memory-server-core/src/MongoMemoryReplSet.ts b/packages/mongodb-memory-server-core/src/MongoMemoryReplSet.ts index 393b0d85..c7a9846c 100644 --- a/packages/mongodb-memory-server-core/src/MongoMemoryReplSet.ts +++ b/packages/mongodb-memory-server-core/src/MongoMemoryReplSet.ts @@ -661,7 +661,7 @@ export class MongoMemoryReplSet extends EventEmitter implements ManagerAdvanced const isInMemory = this.servers[0].instanceInfo?.storageEngine === 'ephemeralForTest'; const extraOptions = this._ranCreateAuth - ? this.servers[0].instanceInfo?.instance.extraConnectionOptions ?? {} + ? (this.servers[0].instanceInfo?.instance.extraConnectionOptions ?? {}) : {}; const con: MongoClient = await MongoClient.connect(uris[0], { diff --git a/yarn.lock b/yarn.lock index 0314d35e..118d7cc8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3901,10 +3901,10 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@3.2.5: - version "3.2.5" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.5.tgz#e52bc3090586e824964a8813b09aba6233b28368" - integrity sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A== +prettier@3.3.3: + version "3.3.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105" + integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew== pretty-format@^29.0.0, pretty-format@^29.7.0: version "29.7.0"