@punks/backend-entity-manager 0.0.351 → 0.0.353

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.
package/dist/cjs/index.js CHANGED
@@ -249,7 +249,7 @@ class EntitySerializer {
249
249
  const validationErrors = [];
250
250
  for (const column of definition.columns) {
251
251
  for (const validator of column.validators ?? []) {
252
- const result = validator.fn((item) => item[column.selector]);
252
+ const result = validator.fn(entity);
253
253
  if (!result.isValid) {
254
254
  validationErrors.push({
255
255
  errorCode: validator.key,
@@ -4069,8 +4069,8 @@ class NestEntityManager {
4069
4069
  }
4070
4070
 
4071
4071
  class NestEntitySerializer extends EntitySerializer {
4072
- constructor(entityName, registry) {
4073
- super(registry.resolveEntityServicesCollection(entityName));
4072
+ constructor(entityName, registry, options) {
4073
+ super(registry.resolveEntityServicesCollection(entityName), options);
4074
4074
  this.registry = registry;
4075
4075
  }
4076
4076
  get manager() {