@deterministic-code/datasources 0.1.4 → 0.1.5

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.
@@ -73,7 +73,9 @@ export class DefaultReadonlyEnrichmentStrategy {
73
73
  continue;
74
74
  map[String(entry)] = enrichment.relatedProperty
75
75
  ? (row[enrichment.relatedProperty] ?? null)
76
- : Object.fromEntries(Object.entries(row).filter(([name]) => name !== mapKey && name !== enrichment.relatedKey && name !== "Id" && name !== "id"));
76
+ : Object.fromEntries(Object.entries(row).filter(([name]) => name !== mapKey &&
77
+ name !== enrichment.relatedKey &&
78
+ !["id", "Id", "uuid", "Uuid", "created", "Created", "updated", "Updated", "version", "Version"].includes(name)));
77
79
  }
78
80
  Object.assign(parent, { [enrichment.destinationProperty]: map });
79
81
  }
@@ -1,7 +1,7 @@
1
1
  import { TypeConverter } from "./TypeConverter.js";
2
2
  import { IdentityMapper } from "../mappers/IdentityMapper.js";
3
3
  const scalarId = (value) => {
4
- if (value === undefined || value === null || typeof value !== "object" || value instanceof Date || value instanceof Uint8Array)
4
+ if (value === undefined || value === null || typeof value !== "object")
5
5
  return value === undefined ? undefined : value;
6
6
  const record = value;
7
7
  return record.Id !== undefined ? record.Id : record.id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deterministic-code/datasources",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",