@travetto/model-mongo 3.2.3 → 3.2.5

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-mongo",
3
- "version": "3.2.3",
3
+ "version": "3.2.5",
4
4
  "description": "Mongo backing for the travetto model module.",
5
5
  "keywords": [
6
6
  "mongo",
@@ -25,10 +25,10 @@
25
25
  "directory": "module/model-mongo"
26
26
  },
27
27
  "dependencies": {
28
- "@travetto/config": "^3.2.2",
29
- "@travetto/model": "^3.2.2",
30
- "@travetto/model-query": "^3.2.2",
31
- "mongodb": "^5.6.0"
28
+ "@travetto/config": "^3.2.3",
29
+ "@travetto/model": "^3.2.3",
30
+ "@travetto/model-query": "^3.2.3",
31
+ "mongodb": "^5.7.0"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@travetto/command": "^3.2.2"
@@ -149,7 +149,7 @@ export class MongoUtil {
149
149
  const isPlain = v && ObjectUtil.isPlainObject(v);
150
150
  const firstKey = isPlain ? Object.keys(v)[0] : '';
151
151
 
152
- if ((isPlain && !firstKey.startsWith('$')) || v.constructor?.Ⲑid) {
152
+ if ((isPlain && !firstKey.startsWith('$')) || v?.constructor?.Ⲑid) {
153
153
  if (recursive) {
154
154
  Object.assign(out, this.extractSimple(subField?.type, v, `${subpath}.`, recursive));
155
155
  } else {