hadron-type-checker 6.8.0 → 7.0.0

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/index.d.ts CHANGED
@@ -26,7 +26,7 @@ export type TypeCastMap = {
26
26
  MaxKey: MaxKey;
27
27
  MinKey: MinKey;
28
28
  Null: null;
29
- Object: Object;
29
+ Object: Record<string, unknown>;
30
30
  ObjectId: ObjectId;
31
31
  BSONRegExp: BSONRegExp;
32
32
  String: string;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "email": "compass@mongodb.com"
8
8
  },
9
9
  "homepage": "https://github.com/mongodb-js/compass",
10
- "version": "6.8.0",
10
+ "version": "7.0.0",
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "https://github.com/mongodb-js/compass.git"
@@ -17,10 +17,7 @@
17
17
  "mongodb-js"
18
18
  ],
19
19
  "main": "index.js",
20
- "exports": {
21
- "webpack": "./index.js",
22
- "require": "./index.js"
23
- },
20
+ "compass:main": "index.js",
24
21
  "scripts": {
25
22
  "test-check-ci": "npm test",
26
23
  "test": "mocha",
@@ -40,5 +37,5 @@
40
37
  "eslint-config-mongodb-js": "^5.0.3",
41
38
  "mocha": "^8.0.1"
42
39
  },
43
- "gitHead": "a1283df32eb52881cc00eb73f8d435f772cdbfde"
40
+ "gitHead": "a30734888ab496a07d58e26870e5e33b374e98f7"
44
41
  }
@@ -208,7 +208,8 @@ const toObjectID = (object) => {
208
208
  };
209
209
 
210
210
  const toBinary = (object) => {
211
- return new Binary('' + object, Binary.SUBTYPE_DEFAULT);
211
+ const buffer = ArrayBuffer.isView(object) ? Buffer.from(object) : Buffer.from(toString(object), 'utf8');
212
+ return new Binary(buffer, Binary.SUBTYPE_DEFAULT);
212
213
  };
213
214
 
214
215
  const toRegex = (object) => {