@mongosh/service-provider-server
Advanced tools
Comparing version 0.0.1-alpha.10 to 0.0.1-alpha.11
@@ -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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
151104
3568
0