@travetto/model-mongo 3.2.4 → 3.3.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 +6 -6
- package/src/internal/util.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-mongo",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "Mongo backing for the travetto model module.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mongo",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"directory": "module/model-mongo"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@travetto/config": "^3.
|
|
29
|
-
"@travetto/model": "^3.
|
|
30
|
-
"@travetto/model-query": "^3.
|
|
31
|
-
"mongodb": "^5.
|
|
28
|
+
"@travetto/config": "^3.3.0",
|
|
29
|
+
"@travetto/model": "^3.3.0",
|
|
30
|
+
"@travetto/model-query": "^3.3.0",
|
|
31
|
+
"mongodb": "^5.7.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@travetto/command": "^3.
|
|
34
|
+
"@travetto/command": "^3.3.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@travetto/command": {
|
package/src/internal/util.ts
CHANGED
|
@@ -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
|
|
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 {
|