mongodb-memory-server-core
Advanced tools
Comparing version 6.7.3 to 6.7.4
@@ -341,11 +341,2 @@ "use strict"; | ||
db = _a.sent(); | ||
// MongoClient HACK which helps to avoid the following error: | ||
// "RangeError: Maximum call stack size exceeded" | ||
// in ./node_modules/mongodb/lib/core/sdam/topology_description.js:263:51 | ||
// Under the hood initiated server topology has type `RSGhost` | ||
// and this server does not support session | ||
// so for skipping the following code | ||
// https://github.com/mongodb/node-mongodb-native/blob/dc70c2de7d3dae2617708c45a1ea695d131e15f3/lib/operations/execute_operation.js#L33-L39 | ||
// we just override shouldCheckForSessionSupport() method for current connection instance | ||
db.topology.shouldCheckForSessionSupport = function () { return false; }; | ||
admin = db.admin(); | ||
@@ -352,0 +343,0 @@ members = uris.map(function (uri, idx) { return ({ _id: idx, host: db_util_1.getHost(uri) }); }); |
{ | ||
"name": "mongodb-memory-server-core", | ||
"version": "6.7.3", | ||
"version": "6.7.4", | ||
"description": "MongoDB Server for testing (core package, without autodownload). The server will allow you to connect your favourite ODM or client library to the MongoDB Server and run parallel integration tests isolated from each other.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
360776
5430