@mongosh/service-provider-server
Advanced tools
Comparing version 0.12.1 to 0.13.1
@@ -37,2 +37,3 @@ import { MongoClient, ReadPreference, ClientMetadata, Topology, ReadPreferenceFromOptions, ReadPreferenceLike, OperationOptions } from 'mongodb'; | ||
close(force: boolean): Promise<void>; | ||
suspend(): Promise<() => Promise<void>>; | ||
count(database: string, collection: string, query?: Document, options?: CountOptions, dbOptions?: DbOptions): Promise<number>; | ||
@@ -39,0 +40,0 @@ countDocuments(database: string, collection: string, filter?: Document, options?: CountDocumentsOptions, dbOptions?: DbOptions): Promise<number>; |
@@ -7,2 +7,3 @@ "use strict"; | ||
const errors_1 = require("@mongosh/errors"); | ||
const mongodb_patches_1 = require("./mongodb-patches"); | ||
const bsonlib = { | ||
@@ -79,2 +80,3 @@ Binary: mongodb_1.Binary, | ||
super(bsonlib); | ||
mongodb_patches_1.ensureMongoNodeNativePatchesAreApplied(); | ||
this.mongoClient = mongoClient; | ||
@@ -192,2 +194,8 @@ this.uri = uri; | ||
} | ||
async suspend() { | ||
await this.close(true); | ||
return async () => { | ||
await this.resetConnectionOptions({}); | ||
}; | ||
} | ||
count(database, collection, query = {}, options = {}, dbOptions) { | ||
@@ -194,0 +202,0 @@ options = { ...this.baseCmdOptions, ...options }; |
{ | ||
"name": "@mongosh/service-provider-server", | ||
"version": "0.12.1", | ||
"version": "0.13.1", | ||
"description": "MongoDB Shell Server Service Provider Package", | ||
@@ -41,4 +41,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@mongosh/errors": "0.12.1", | ||
"@mongosh/service-provider-core": "0.12.1", | ||
"@mongosh/errors": "0.13.1", | ||
"@mongosh/service-provider-core": "0.13.1", | ||
"@types/sinon": "^7.5.1", | ||
@@ -56,3 +56,3 @@ "@types/sinon-chai": "^3.2.3", | ||
}, | ||
"gitHead": "9205f20ae5e28f281e040bbcd781f0719ad5846e" | ||
"gitHead": "fbb222324b90d79db02aac0a7d3b90c49e4dab3c" | ||
} |
@@ -84,2 +84,3 @@ import { | ||
import { MongoshCommandFailed, MongoshInternalError, MongoshRuntimeError } from '@mongosh/errors'; | ||
import { ensureMongoNodeNativePatchesAreApplied } from './mongodb-patches'; | ||
@@ -242,2 +243,4 @@ const bsonlib = { | ||
super(bsonlib); | ||
ensureMongoNodeNativePatchesAreApplied(); | ||
this.mongoClient = mongoClient; | ||
@@ -459,2 +462,9 @@ this.uri = uri; | ||
async suspend(): Promise<() => Promise<void>> { | ||
await this.close(true); | ||
return async() => { | ||
await this.resetConnectionOptions({}); | ||
}; | ||
} | ||
/** | ||
@@ -461,0 +471,0 @@ * Deprecated count command. |
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
156427
25
3187
+ Added@mongosh/errors@0.13.1(transitive)
+ Added@mongosh/i18n@0.13.1(transitive)
+ Added@mongosh/service-provider-core@0.13.1(transitive)
- Removed@mongosh/errors@0.12.1(transitive)
- Removed@mongosh/i18n@0.12.1(transitive)
- Removed@mongosh/service-provider-core@0.12.1(transitive)
Updated@mongosh/errors@0.13.1