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 +1 -1
- package/package.json +3 -6
- package/src/type-checker.js +2 -1
package/index.d.ts
CHANGED
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": "
|
|
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
|
-
"
|
|
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": "
|
|
40
|
+
"gitHead": "a30734888ab496a07d58e26870e5e33b374e98f7"
|
|
44
41
|
}
|
package/src/type-checker.js
CHANGED
|
@@ -208,7 +208,8 @@ const toObjectID = (object) => {
|
|
|
208
208
|
};
|
|
209
209
|
|
|
210
210
|
const toBinary = (object) => {
|
|
211
|
-
|
|
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) => {
|