@dnax/core 0.65.6 → 0.65.7

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,6 +241,10 @@ function toBson<T>(
241
241
  function deepSetId(col: Collection, data: any) {
242
242
  if (col) {
243
243
  col?.fields?.map((f) => {
244
+ if (f?.type?.match(/(number|integer)/) && data[f.name] && f?.name) {
245
+ data[f.name] = Number(data[f.name]);
246
+ }
247
+
244
248
  if (f?.type?.match(/(json|array)/) && data[f?.name] && f?.name) {
245
249
  if (
246
250
  f?.injectAutoId &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.65.6",
3
+ "version": "0.65.7",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {