hadron-type-checker 6.3.1 → 6.6.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/package.json CHANGED
@@ -2,17 +2,25 @@
2
2
  "name": "hadron-type-checker",
3
3
  "description": "Hadron Type Checker",
4
4
  "author": "Durran Jordan <durran@gmail.com>",
5
- "bugs": "https://github.com/mongodb-js/hadron-type-checker/issues",
6
- "homepage": "https://github.com/mongodb-js/hadron-type-checker",
7
- "version": "6.3.1",
5
+ "bugs": {
6
+ "url": "https://jira.mongodb.org/projects/COMPASS/issues",
7
+ "email": "compass@mongodb.com"
8
+ },
9
+ "homepage": "https://github.com/mongodb-js/compass",
10
+ "version": "6.6.0",
8
11
  "repository": {
9
12
  "type": "git",
10
- "url": "https://github.com/mongodb-js/hadron-type-checker.git"
13
+ "url": "https://github.com/mongodb-js/compass.git"
11
14
  },
12
15
  "license": "SSPL",
13
16
  "keywords": [
14
17
  "mongodb-js"
15
18
  ],
19
+ "main": "index.js",
20
+ "exports": {
21
+ "webpack": "./index.js",
22
+ "require": "./index.js"
23
+ },
16
24
  "scripts": {
17
25
  "test-check-ci": "npm test",
18
26
  "test": "mocha",
@@ -27,10 +35,10 @@
27
35
  },
28
36
  "devDependencies": {
29
37
  "chai": "^4.2.0",
30
- "depcheck": "^1.4.0",
38
+ "depcheck": "^1.4.1",
31
39
  "eslint": "^7.25.0",
32
40
  "eslint-config-mongodb-js": "^5.0.3",
33
41
  "mocha": "^8.0.1"
34
42
  },
35
- "gitHead": "f46948c37c24aeeebe19d424ffc50ec85d7f0d9b"
43
+ "gitHead": "77166e3754e36e95c7ff7efb5a0ce5e0990b0ff7"
36
44
  }
@@ -8,7 +8,6 @@ const {
8
8
  without,
9
9
  toNumber,
10
10
  toString,
11
- includes,
12
11
  } = require('lodash');
13
12
 
14
13
  const {
@@ -194,7 +193,7 @@ const toDecimal128 = (object) => {
194
193
  /*
195
194
  If converting a BSON Object, extract the value before converting to a string.
196
195
  */
197
- if (hasIn(object, BSON_TYPE) && includes(NUMBER_TYPES, object._bsontype)) {
196
+ if (hasIn(object, BSON_TYPE) && NUMBER_TYPES.includes(object._bsontype)) {
198
197
  object = object._bsontype === LONG ? object.toString() : object.valueOf();
199
198
  }
200
199
  return Decimal128.fromString('' + object);