@mongosh/service-provider-core 3.6.0 → 3.6.1

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/admin.d.ts CHANGED
@@ -28,6 +28,7 @@ export default interface Admin {
28
28
  platform: ReplPlatform;
29
29
  initialDb: string;
30
30
  bsonLibrary: BSON;
31
+ computeLegacyHexMD5?(str: string): Promise<string>;
31
32
  listDatabases(database: string, options?: ListDatabasesOptions): Promise<Document>;
32
33
  getNewConnection(uri: string, options: MongoClientOptions): Promise<any>;
33
34
  getURI(): string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mongosh/service-provider-core",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "description": "MongoDB Shell Core Service Provider Package",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@mongosh/errors": "2.4.4",
40
- "@mongosh/shell-bson": "1.0.1",
40
+ "@mongosh/shell-bson": "1.0.2",
41
41
  "bson": "^6.10.4",
42
42
  "mongodb": "^6.19.0",
43
43
  "mongodb-build-info": "^1.7.2",
@@ -51,5 +51,5 @@
51
51
  "eslint": "^7.25.0",
52
52
  "prettier": "^2.8.8"
53
53
  },
54
- "gitHead": "9f0183e375c5422a0e1ced87c9a620384180abf7"
54
+ "gitHead": "d6e3e2e3df785683c7a1c6b3a30765ea75c603fc"
55
55
  }
package/src/admin.ts CHANGED
@@ -66,6 +66,12 @@ export default interface Admin {
66
66
  */
67
67
  bsonLibrary: BSON;
68
68
 
69
+ /**
70
+ * Compute a hex MD5 hash from a string. Used for legacy auth mechanisms such as
71
+ * SCRAM-SHA-1.
72
+ */
73
+ computeLegacyHexMD5?(str: string): Promise<string>;
74
+
69
75
  /**
70
76
  * list databases.
71
77
  *