@dnax/core 0.31.0 → 0.32.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.
@@ -1026,7 +1026,7 @@ class useRest {
1026
1026
  _id: new ObjectId(id),
1027
1027
  },
1028
1028
  {
1029
- ...formatData(omit(update, omitUpdate)),
1029
+ ...formatData(omit(transformAllDate(update), omitUpdate)),
1030
1030
  $currentDate: {
1031
1031
  updatedAt: true,
1032
1032
  },
@@ -148,14 +148,11 @@ function transformAllDate(data: object) {
148
148
  }
149
149
  });
150
150
  }
151
-
152
151
  //console.log(data);
153
152
  return data;
154
- } catch (error) {
155
- console.log(error);
153
+ } catch (error) {}
156
154
 
157
- throw error;
158
- }
155
+ return data;
159
156
  }
160
157
 
161
158
  function toBson<T>(
@@ -376,7 +373,7 @@ function formatData(
376
373
  action: options?.action,
377
374
  });
378
375
 
379
- return data;
376
+ return transformAllDate(data);
380
377
  }
381
378
 
382
379
  function removeKeysAtFirstLevel(data: any, keysToRemove: string[]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {