Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mongosh/service-provider-server

Package Overview
Dependencies
Maintainers
10
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mongosh/service-provider-server - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

8

lib/cli-service-provider.js

@@ -169,10 +169,2 @@ "use strict";

uri = await resolveMongodbSrv(uri, bus);
if (uri.startsWith('mongodb://') || uri.startsWith('mongodb+srv://')) {
const cs = new mongodb_connection_string_url_1.default(uri);
if (cs.searchParams.get('loadBalanced') === 'true' &&
!cs.searchParams.has('maxPoolSize')) {
cs.searchParams.set('maxPoolSize', '1');
uri = cs.href;
}
}
const client = new MClient(uri, clientOptions);

@@ -179,0 +171,0 @@ await connectWithFailFast(client, bus);

16

package.json
{
"name": "@mongosh/service-provider-server",
"version": "1.0.3",
"version": "1.0.4",
"description": "MongoDB Shell Server Service Provider Package",

@@ -16,4 +16,4 @@ "main": "lib/index.js",

"compile-ts": "tsc -p tsconfig.json",
"test": "cross-env TS_NODE_PROJECT=../../config/tsconfig.test.json mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 --colors -r ts-node/register \"./src/**/*.spec.ts\"",
"test-ci": "cross-env TS_NODE_PROJECT=../../config/tsconfig.test.json mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./src/**/*.spec.ts\"",
"test": "cross-env TS_NODE_PROJECT=../../config/tsconfig.test.json mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./src/**/*.spec.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"prepublish": "npm run compile-ts",

@@ -42,7 +42,7 @@ "lint": "eslint --report-unused-disable-directives \"./{src,test}/**/*.{js,ts,tsx}\"",

"dependencies": {
"@mongosh/errors": "1.0.3",
"@mongosh/service-provider-core": "1.0.3",
"@mongosh/types": "1.0.3",
"@mongosh/errors": "1.0.4",
"@mongosh/service-provider-core": "1.0.4",
"@mongosh/types": "1.0.4",
"@types/sinon-chai": "^3.2.3",
"mongodb": "addaleax/node-mongodb-native#71d4c39e5c858f49d10e840df626eca4da653e28",
"mongodb": "^4.1.0",
"mongodb-connection-string-url": "^1.0.0",

@@ -57,3 +57,3 @@ "saslprep": "mongodb-js/saslprep#v1.0.4"

},
"gitHead": "fb1691775754ab5b9018acdb4831b423ee3d77e6"
"gitHead": "248a6f4c1c92ad432a8dc7d078600c6b86f03335"
}

@@ -79,3 +79,3 @@ import CliServiceProvider from './cli-service-provider';

} catch (err) {
expect(err.name).to.equal('MongoDriverError');
expect(err.name).to.equal('MongoNotConnectedError');
}

@@ -82,0 +82,0 @@ await reconnect();

@@ -289,11 +289,2 @@ import {

uri = await resolveMongodbSrv(uri, bus);
if (uri.startsWith('mongodb://') || uri.startsWith('mongodb+srv://')) {
// Hack for Load Balancer support until the driver side is finished:
const cs = new ConnectionString(uri);
if (cs.searchParams.get('loadBalanced') === 'true' &&
!cs.searchParams.has('maxPoolSize')) {
cs.searchParams.set('maxPoolSize', '1');
uri = cs.href;
}
}
const client = new MClient(uri, clientOptions);

@@ -300,0 +291,0 @@ await connectWithFailFast(client, bus);

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc