@dnax/core 0.64.5 → 0.64.6

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.
@@ -241,21 +241,20 @@ function toBson<T>(
241
241
  function deepSetId(col: Collection, data: any) {
242
242
  if (col) {
243
243
  col?.fields?.map((f) => {
244
-
245
- if(f?.type?.match(/(json|array)/) && data[f.name]) {
246
-
247
- if(f?.injectAutoId && f?.type=='array') {
244
+ if (f?.type?.match(/(json|array)/) && data[f?.name]) {
245
+ if (f?.injectAutoId && f?.type == "array") {
248
246
  data[f.name]?.map((d, index) => {
249
- if(!d?._id){
250
- d._id = String(new ObjectId());
251
- }
247
+ if (!d?._id) {
248
+ d._id = String(new ObjectId());
249
+ }
252
250
  });
253
- }
251
+ }
254
252
 
255
- if(f?.injectAutoId && f?.type=='json') {
256
- if(!data[f.name]?._id){
257
- data[f.name]._id = String(new ObjectId());
258
- }
253
+ if (f?.injectAutoId && f?.type == "json") {
254
+ if (!data[f.name]?._id) {
255
+ data[f.name]._id = String(new ObjectId());
256
+ }
257
+ }
259
258
  }
260
259
 
261
260
  if (f?.type?.match(/(relationship|media)/) && data[f.name]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.64.5",
3
+ "version": "0.64.6",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {