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
11
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 0.12.1 to 0.13.1

lib/mongodb-patches.d.ts

1

lib/cli-service-provider.d.ts

@@ -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 };

8

package.json
{
"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

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