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
7
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.0.1-alpha.10 to 0.0.1-alpha.11

2

lib/cli-service-provider.d.ts

@@ -17,3 +17,3 @@ import { MongoClient } from 'mongodb';

bulkWrite(database: string, collection: string, requests: any, options?: Document, dbOptions?: Document): Promise<BulkWriteResult>;
close(force: boolean): void;
close(force: boolean): Promise<void>;
count(database: string, collection: string, query?: Document, options?: Document, dbOptions?: Document): Promise<Result>;

@@ -20,0 +20,0 @@ countDocuments(database: string, collection: string, filter?: Document, options?: Document, dbOptions?: Document): Promise<Result>;

@@ -128,3 +128,3 @@ "use strict";

CliServiceProvider.prototype.close = function (force) {
this.mongoClient.close(force);
return this.mongoClient.close(force);
};

@@ -131,0 +131,0 @@ CliServiceProvider.prototype.count = function (database, collection, query, options, dbOptions) {

@@ -21,5 +21,5 @@ import { CollationDocument } from 'mongodb';

collation(spec: CollationDocument): NodeCursor;
comment(cmt: string): Cursor;
comment(cmt: string): NodeCursor;
count(): Promise<number>;
forEach(f: any): NodeCursor;
forEach(f: any): Promise<void>;
hasNext(): Promise<boolean>;

@@ -26,0 +26,0 @@ hint(index: string): NodeCursor;

@@ -94,4 +94,12 @@ "use strict";

NodeCursor.prototype.forEach = function (f) {
this.cursor.forEach(f);
return this;
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4, this.cursor.forEach(f)];
case 1:
_a.sent();
return [2];
}
});
});
};

@@ -98,0 +106,0 @@ NodeCursor.prototype.hasNext = function () {

{
"name": "@mongosh/service-provider-server",
"version": "0.0.1-alpha.10",
"version": "0.0.1-alpha.11",
"description": "MongoDB Shell Server Service Provider Package",

@@ -42,6 +42,6 @@ "main": "lib/index.js",

"dependencies": {
"@mongosh/service-provider-core": "^0.0.1-alpha.10",
"@mongosh/service-provider-core": "^0.0.1-alpha.11",
"mongodb": "3.5.3 || ^3.5.5"
},
"gitHead": "72e9d284d6e622e9844b063ab5a11df66fa08aee"
"gitHead": "0353cfe8b7d560910acdf48ef91b5944184a6bcb"
}

@@ -208,4 +208,4 @@ import { MongoClient, Db } from 'mongodb';

*/
close(force: boolean): void {
this.mongoClient.close(force);
close(force: boolean): Promise<void> {
return this.mongoClient.close(force);
}

@@ -212,0 +212,0 @@

@@ -120,3 +120,3 @@ import { Cursor as NativeCursor, CollationDocument } from 'mongodb';

*/
comment(cmt: string): Cursor {
comment(cmt: string): NodeCursor {
this.cursor.comment(cmt);

@@ -135,5 +135,4 @@ return this;

forEach(f): NodeCursor {
this.cursor.forEach(f);
return this;
async forEach(f): Promise<void> {
await this.cursor.forEach(f);
}

@@ -140,0 +139,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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