@mongosh/service-provider-core 3.3.5 → 3.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/closable.d.ts +1 -1
- package/lib/writable.d.ts +3 -1
- package/package.json +6 -18
- package/src/closable.ts +1 -3
- package/src/writable.ts +1 -1
package/lib/closable.d.ts
CHANGED
package/lib/writable.d.ts
CHANGED
|
@@ -17,7 +17,9 @@ export default interface Writable {
|
|
|
17
17
|
insertOne(database: string, collection: string, doc: Document, options: InsertOneOptions, dbOptions?: DbOptions): Promise<InsertOneResult>;
|
|
18
18
|
replaceOne(database: string, collection: string, filter: Document, replacement: Document, options?: ReplaceOptions, dbOptions?: DbOptions): Promise<UpdateResult>;
|
|
19
19
|
updateMany(database: string, collection: string, filter: Document, update: Document, options?: UpdateOptions, dbOptions?: DbOptions): Promise<UpdateResult>;
|
|
20
|
-
updateOne(database: string, collection: string, filter: Document, update: Document, options?: UpdateOptions
|
|
20
|
+
updateOne(database: string, collection: string, filter: Document, update: Document, options?: UpdateOptions & {
|
|
21
|
+
sort?: Document;
|
|
22
|
+
}, dbOptions?: DbOptions): Promise<UpdateResult>;
|
|
21
23
|
createIndexes(database: string, collection: string, indexSpecs: Document[], options?: CreateIndexesOptions, dbOptions?: DbOptions): Promise<string[]>;
|
|
22
24
|
dropCollection(database: string, collection: string, options: DropCollectionOptions, dbOptions?: DbOptions): Promise<boolean>;
|
|
23
25
|
renameCollection(database: string, oldName: string, newName: string, options?: RenameOptions, dbOptions?: DbOptions): Promise<Collection>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mongosh/service-provider-core",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.7",
|
|
4
4
|
"description": "MongoDB Shell Core Service Provider Package",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -33,27 +33,15 @@
|
|
|
33
33
|
"node": ">=14.15.1"
|
|
34
34
|
},
|
|
35
35
|
"mongosh": {
|
|
36
|
-
"unitTestsOnly": true
|
|
37
|
-
"ciRequiredOptionalDependencies": {
|
|
38
|
-
"mongodb-client-encryption": [
|
|
39
|
-
"darwin",
|
|
40
|
-
"linux",
|
|
41
|
-
"win32"
|
|
42
|
-
]
|
|
43
|
-
}
|
|
36
|
+
"unitTestsOnly": true
|
|
44
37
|
},
|
|
45
38
|
"dependencies": {
|
|
46
|
-
"@
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"mongodb": "^6.16.0",
|
|
39
|
+
"@mongosh/errors": "2.4.4",
|
|
40
|
+
"bson": "^6.10.4",
|
|
41
|
+
"mongodb": "^6.18.0",
|
|
50
42
|
"mongodb-build-info": "^1.7.2",
|
|
51
|
-
"mongodb-client-encryption": "^6.3.0",
|
|
52
43
|
"mongodb-connection-string-url": "^3.0.1"
|
|
53
44
|
},
|
|
54
|
-
"optionalDependencies": {
|
|
55
|
-
"mongodb-client-encryption": "^6.3.0"
|
|
56
|
-
},
|
|
57
45
|
"devDependencies": {
|
|
58
46
|
"@mongodb-js/eslint-config-mongosh": "^1.0.0",
|
|
59
47
|
"@mongodb-js/prettier-config-devtools": "^1.0.1",
|
|
@@ -62,5 +50,5 @@
|
|
|
62
50
|
"eslint": "^7.25.0",
|
|
63
51
|
"prettier": "^2.8.8"
|
|
64
52
|
},
|
|
65
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "535ab3f767e2a27c05a6be6a299e0285eebfcc9e"
|
|
66
54
|
}
|
package/src/closable.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export default interface Closable {
|
|
2
2
|
/**
|
|
3
3
|
* Close the connection.
|
|
4
|
-
*
|
|
5
|
-
* @param {boolean} force - Whether to force close.
|
|
6
4
|
*/
|
|
7
|
-
close(
|
|
5
|
+
close(): Promise<void>;
|
|
8
6
|
|
|
9
7
|
/**
|
|
10
8
|
* Suspends the connection, i.e. temporarily force-closes it
|
package/src/writable.ts
CHANGED