@iamnnort/nestjs-serializer 2.2.3 → 2.2.4

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/index.d.mts CHANGED
@@ -5,6 +5,7 @@ import { ExecutionContext, CallHandler } from '@nestjs/common';
5
5
  declare const SerializeField: (configs: {
6
6
  scopes: string[];
7
7
  fieldName?: string;
8
+ fieldTransform?: (entity: any) => any | Promise<any>;
8
9
  }[]) => (target: object, name: string) => void;
9
10
  declare const SerializeRelation: (configs: {
10
11
  scopes: string[];
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ import { ExecutionContext, CallHandler } from '@nestjs/common';
5
5
  declare const SerializeField: (configs: {
6
6
  scopes: string[];
7
7
  fieldName?: string;
8
+ fieldTransform?: (entity: any) => any | Promise<any>;
8
9
  }[]) => (target: object, name: string) => void;
9
10
  declare const SerializeRelation: (configs: {
10
11
  scopes: string[];
package/dist/index.js CHANGED
@@ -9000,7 +9000,8 @@ var SerializeField = /* @__PURE__ */ __name((configs) => {
9000
9000
  scopes: config.scopes,
9001
9001
  target: target.constructor,
9002
9002
  name,
9003
- fieldName: config.fieldName
9003
+ fieldName: config.fieldName,
9004
+ fieldTransform: config.fieldTransform
9004
9005
  });
9005
9006
  });
9006
9007
  };