@dnax/core 0.18.2 → 0.18.3

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.
@@ -229,7 +229,7 @@ function toBson<T>(
229
229
  function deepSetId(col: Collection, data: any) {
230
230
  if (col) {
231
231
  col?.fields?.map((f) => {
232
- if (f?.type == "relationship" && data[f.name]) {
232
+ if (f?.type?.match(/(relationship|media)/) && data[f.name]) {
233
233
  if (typeof data[f.name] == "object" && !Array.isArray(data[f.name])) {
234
234
  data[f.name] = data[f.name]?._id || data[f.name]?.id || data[f.name];
235
235
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.18.2",
3
+ "version": "0.18.3",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {