@form-engine-ts/storage-mongodb 5.1.0 → 6.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/dist/index.cjs +8 -2
- package/dist/index.js +8 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -421,9 +421,15 @@ function createMongoDbStorage(options) {
|
|
|
421
421
|
formVersion: submission.formVersion,
|
|
422
422
|
fieldId,
|
|
423
423
|
text,
|
|
424
|
-
locale: submission.locale,
|
|
424
|
+
...submission.locale === void 0 ? {} : { locale: submission.locale },
|
|
425
425
|
submittedAt: submission.submittedAt,
|
|
426
|
-
...submission.metadata === void 0 ? {} : {
|
|
426
|
+
...submission.metadata === void 0 ? {} : {
|
|
427
|
+
metadata: Object.fromEntries(
|
|
428
|
+
Object.entries(submission.metadata).filter(
|
|
429
|
+
(entry) => entry[1] !== void 0
|
|
430
|
+
)
|
|
431
|
+
)
|
|
432
|
+
}
|
|
427
433
|
}
|
|
428
434
|
];
|
|
429
435
|
});
|
package/dist/index.js
CHANGED
|
@@ -404,9 +404,15 @@ function createMongoDbStorage(options) {
|
|
|
404
404
|
formVersion: submission.formVersion,
|
|
405
405
|
fieldId,
|
|
406
406
|
text,
|
|
407
|
-
locale: submission.locale,
|
|
407
|
+
...submission.locale === void 0 ? {} : { locale: submission.locale },
|
|
408
408
|
submittedAt: submission.submittedAt,
|
|
409
|
-
...submission.metadata === void 0 ? {} : {
|
|
409
|
+
...submission.metadata === void 0 ? {} : {
|
|
410
|
+
metadata: Object.fromEntries(
|
|
411
|
+
Object.entries(submission.metadata).filter(
|
|
412
|
+
(entry) => entry[1] !== void 0
|
|
413
|
+
)
|
|
414
|
+
)
|
|
415
|
+
}
|
|
410
416
|
}
|
|
411
417
|
];
|
|
412
418
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@form-engine-ts/storage-mongodb",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"typescript"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@form-engine-ts/core": "
|
|
42
|
+
"@form-engine-ts/core": "6.0.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"mongodb": "^6.0.0"
|