@mongosh/service-provider-server
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -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); |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
1
1
172655
3498
+ Added@aws-crypto/sha256-browser@5.2.0(transitive)
+ Added@aws-crypto/sha256-js@5.2.0(transitive)
+ Added@aws-crypto/supports-web-crypto@5.2.0(transitive)
+ Added@aws-crypto/util@5.2.0(transitive)
+ Added@aws-sdk/client-cognito-identity@3.687.0(transitive)
+ Added@aws-sdk/client-sso@3.687.0(transitive)
+ Added@aws-sdk/client-sso-oidc@3.687.0(transitive)
+ Added@aws-sdk/client-sts@3.687.0(transitive)
+ Added@aws-sdk/core@3.686.0(transitive)
+ Added@aws-sdk/credential-provider-cognito-identity@3.687.0(transitive)
+ Added@aws-sdk/credential-provider-env@3.686.0(transitive)
+ Added@aws-sdk/credential-provider-http@3.686.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.687.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.687.0(transitive)
+ Added@aws-sdk/credential-provider-process@3.686.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.687.0(transitive)
+ Added@aws-sdk/credential-provider-web-identity@3.686.0(transitive)
+ Added@aws-sdk/credential-providers@3.687.0(transitive)
+ Added@aws-sdk/middleware-host-header@3.686.0(transitive)
+ Added@aws-sdk/middleware-logger@3.686.0(transitive)
+ Added@aws-sdk/middleware-recursion-detection@3.686.0(transitive)
+ Added@aws-sdk/middleware-user-agent@3.687.0(transitive)
+ Added@aws-sdk/region-config-resolver@3.686.0(transitive)
+ Added@aws-sdk/token-providers@3.686.0(transitive)
+ Added@aws-sdk/types@3.686.0(transitive)
+ Added@aws-sdk/util-endpoints@3.686.0(transitive)
+ Added@aws-sdk/util-locate-window@3.679.0(transitive)
+ Added@aws-sdk/util-user-agent-browser@3.686.0(transitive)
+ Added@aws-sdk/util-user-agent-node@3.687.0(transitive)
+ Added@mongosh/errors@1.0.4(transitive)
+ Added@mongosh/i18n@1.0.4(transitive)
+ Added@mongosh/service-provider-core@1.0.4(transitive)
+ Added@mongosh/types@1.0.4(transitive)
+ Added@smithy/abort-controller@3.1.6(transitive)
+ Added@smithy/config-resolver@3.0.10(transitive)
+ Added@smithy/core@2.5.1(transitive)
+ Added@smithy/credential-provider-imds@3.2.5(transitive)
+ Added@smithy/fetch-http-handler@4.0.0(transitive)
+ Added@smithy/hash-node@3.0.8(transitive)
+ Added@smithy/invalid-dependency@3.0.8(transitive)
+ Added@smithy/is-array-buffer@2.2.03.0.0(transitive)
+ Added@smithy/middleware-content-length@3.0.10(transitive)
+ Added@smithy/middleware-endpoint@3.2.1(transitive)
+ Added@smithy/middleware-retry@3.0.25(transitive)
+ Added@smithy/middleware-serde@3.0.8(transitive)
+ Added@smithy/middleware-stack@3.0.8(transitive)
+ Added@smithy/node-config-provider@3.1.9(transitive)
+ Added@smithy/node-http-handler@3.2.5(transitive)
+ Added@smithy/property-provider@3.1.8(transitive)
+ Added@smithy/protocol-http@4.1.5(transitive)
+ Added@smithy/querystring-builder@3.0.8(transitive)
+ Added@smithy/querystring-parser@3.0.8(transitive)
+ Added@smithy/service-error-classification@3.0.8(transitive)
+ Added@smithy/shared-ini-file-loader@3.1.9(transitive)
+ Added@smithy/signature-v4@4.2.1(transitive)
+ Added@smithy/smithy-client@3.4.2(transitive)
+ Added@smithy/types@3.6.0(transitive)
+ Added@smithy/url-parser@3.0.8(transitive)
+ Added@smithy/util-base64@3.0.0(transitive)
+ Added@smithy/util-body-length-browser@3.0.0(transitive)
+ Added@smithy/util-body-length-node@3.0.0(transitive)
+ Added@smithy/util-buffer-from@2.2.03.0.0(transitive)
+ Added@smithy/util-config-provider@3.0.0(transitive)
+ Added@smithy/util-defaults-mode-browser@3.0.25(transitive)
+ Added@smithy/util-defaults-mode-node@3.0.25(transitive)
+ Added@smithy/util-endpoints@2.1.4(transitive)
+ Added@smithy/util-hex-encoding@3.0.0(transitive)
+ Added@smithy/util-middleware@3.0.8(transitive)
+ Added@smithy/util-retry@3.0.8(transitive)
+ Added@smithy/util-stream@3.2.1(transitive)
+ Added@smithy/util-uri-escape@3.0.0(transitive)
+ Added@smithy/util-utf8@2.3.03.0.0(transitive)
+ Addedbowser@2.11.0(transitive)
+ Addedfast-xml-parser@4.4.1(transitive)
+ Addedip-address@9.0.5(transitive)
+ Addedjsbn@1.1.0(transitive)
+ Addedmongodb@4.17.2(transitive)
+ Addedmongodb-connection-string-url@2.6.0(transitive)
+ Addedsmart-buffer@4.2.0(transitive)
+ Addedsocks@2.8.3(transitive)
+ Addedsprintf-js@1.1.3(transitive)
+ Addedstrnum@1.0.5(transitive)
+ Addedtr46@3.0.0(transitive)
+ Addedtslib@2.8.1(transitive)
+ Addeduuid@9.0.1(transitive)
+ Addedwhatwg-url@11.0.0(transitive)
- Removed@mongosh/errors@1.0.3(transitive)
- Removed@mongosh/i18n@1.0.3(transitive)
- Removed@mongosh/service-provider-core@1.0.3(transitive)
- Removed@mongosh/types@1.0.3(transitive)
- Removedbson@6.9.0(transitive)
- Removedmongodb@6.10.0(transitive)
Updated@mongosh/errors@1.0.4
Updated@mongosh/types@1.0.4
Updatedmongodb@^4.1.0