mongodb-query-util 2.5.16 → 2.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.
@@ -1 +1 @@
1
- {"version":3,"file":"bson-equal.d.ts","sourceRoot":"","sources":["../src/bson-equal.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,GAAI,OAAO,GAAG,EAAE,OAAO,GAAG,KAAG,OAAO,GAAG,SAyB5D,CAAC"}
1
+ {"version":3,"file":"bson-equal.d.ts","sourceRoot":"","sources":["../src/bson-equal.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,GAAI,OAAO,GAAG,EAAE,OAAO,GAAG,KAAG,OAAO,GAAG,SA0B5D,CAAC"}
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.bsonEqual = void 0;
4
- const lodash_1 = require("lodash");
4
+ const hadron_type_checker_1 = require("hadron-type-checker");
5
5
  const bsonEqual = (value, other) => {
6
- const bsontype = (0, lodash_1.get)(value, '_bsontype', undefined);
6
+ const bsontype = (0, hadron_type_checker_1.getBsonType)(value);
7
+ const otherBsontype = (0, hadron_type_checker_1.getBsonType)(other);
7
8
  if (!bsontype || typeof bsontype !== 'string') {
8
9
  return undefined;
9
10
  }
10
- if (typeof other?._bsontype !== 'string') {
11
+ if (!otherBsontype || typeof otherBsontype !== 'string') {
11
12
  return undefined;
12
13
  }
13
14
  if (bsontype === 'ObjectId') {
@@ -1 +1 @@
1
- {"version":3,"file":"bson-equal.js","sourceRoot":"","sources":["../src/bson-equal.ts"],"names":[],"mappings":";;;AAAA,mCAA6B;AAItB,MAAM,SAAS,GAAG,CAAC,KAAU,EAAE,KAAU,EAAuB,EAAE;IACvE,MAAM,QAAQ,GAAG,IAAA,YAAG,EAAC,KAAK,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;IAEpD,IAAI,CAAC,QAAQ,IAAI,OAAO,QAAQ,KAAK,Q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AAkB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC9C,OAAO,KAAK,CAAC,QAAQ,EAAE,KAAK,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC/C,CAAC;IAED,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC3C,OAAQ,KAAwB,CAAC,KAAK,KAAM,KAAwB,CAAC,KAAK,CAAC;IAC7E,CAAC;IAED,yCAAyC;IACzC,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AA1BW,QAAA,SAAS,aA0BpB"}
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "email": "compass@mongodb.com"
14
14
  },
15
15
  "homepage": "https://github.com/mongodb-js/compass",
16
- "version": "2.5.16",
16
+ "version": "2.6.1",
17
17
  "repository": {
18
18
  "type": "git",
19
19
  "url": "https://github.com/mongodb-js/compass.git"
@@ -50,10 +50,10 @@
50
50
  "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
51
51
  },
52
52
  "devDependencies": {
53
- "@mongodb-js/eslint-config-compass": "^1.4.16",
54
- "@mongodb-js/mocha-config-compass": "^1.7.5",
53
+ "@mongodb-js/eslint-config-compass": "^1.4.18",
54
+ "@mongodb-js/mocha-config-compass": "^1.7.6",
55
55
  "@mongodb-js/prettier-config-compass": "^1.2.9",
56
- "@mongodb-js/tsconfig-compass": "^1.2.13",
56
+ "@mongodb-js/tsconfig-compass": "^1.2.14",
57
57
  "@types/chai": "^4.2.21",
58
58
  "@types/mocha": "^9.0.0",
59
59
  "@types/sinon-chai": "^3.2.5",
@@ -66,8 +66,9 @@
66
66
  "typescript": "^5.9.3"
67
67
  },
68
68
  "dependencies": {
69
- "bson": "^6.10.4",
69
+ "bson": "^7.2.0",
70
+ "hadron-type-checker": "^7.5.1",
70
71
  "lodash": "^4.17.21"
71
72
  },
72
- "gitHead": "2211ea4f5fa2c86601f60070e41f8705ee24ae54"
73
+ "gitHead": "aeb492f757655a594fc41ca2799c2569982fbe36"
73
74
  }