Initial commit

This commit is contained in:
Arnaud Nelissen
2021-07-16 10:18:13 +02:00
commit 3af7ddab06
5894 changed files with 590836 additions and 0 deletions

12
node_modules/mongoose/lib/helpers/topology/isAtlas.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
'use strict';
module.exports = function isAtlas(topologyDescription) {
if (topologyDescription == null ||
topologyDescription.constructor.name !== 'TopologyDescription') {
return false;
}
const hostnames = Array.from(topologyDescription.servers.keys());
return hostnames.length > 0 &&
hostnames.every(host => host.endsWith('.mongodb.net:27017'));
};