nicot 1.0.28 → 1.0.29

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.
@@ -2,3 +2,4 @@ import { ValidationPipe } from '@nestjs/common';
2
2
  export declare const CreatePipe: () => ValidationPipe;
3
3
  export declare const GetPipe: () => ValidationPipe;
4
4
  export declare const UpdatePipe: () => ValidationPipe;
5
+ export declare const DataPipe: () => ValidationPipe;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdatePipe = exports.GetPipe = exports.CreatePipe = void 0;
3
+ exports.DataPipe = exports.UpdatePipe = exports.GetPipe = exports.CreatePipe = void 0;
4
4
  const common_1 = require("@nestjs/common");
5
5
  const CreatePipe = () => new common_1.ValidationPipe({
6
6
  transform: true,
@@ -23,4 +23,9 @@ const UpdatePipe = () => new common_1.ValidationPipe({
23
23
  skipUndefinedProperties: true,
24
24
  });
25
25
  exports.UpdatePipe = UpdatePipe;
26
+ const DataPipe = () => new common_1.ValidationPipe({
27
+ transform: true,
28
+ transformOptions: { enableImplicitConversion: true },
29
+ });
30
+ exports.DataPipe = DataPipe;
26
31
  //# sourceMappingURL=pipes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pipes.js","sourceRoot":"","sources":["../../../src/decorators/pipes.ts"],"names":[],"mappings":";;;AAAA,2CAAgD;AAEzC,MAAM,UAAU,GAAG,GAAG,EAAE,CAC7B,IAAI,uBAAc,CAAC;IACjB,SAAS,EAAE,IAAI;IACf,gBAAgB,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,wBAAwB,EAAE,IAAI,EAAE;CACpE,CAAC,CAAC;AAJQ,QAAA,UAAU,cAIlB;AAEE,MAAM,OAAO,GAAG,GAAG,EAAE,CAC1B,IAAI,uBAAc,CAAC;IACjB,SAAS,EAAE,IAAI;IACf,gBAAgB,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,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,IAAI,EAAE;IACnE,qBAAqB,EAAE,IAAI;IAC3B,kBAAkB,EAAE,IAAI;IACxB,uBAAuB,EAAE,IAAI;CAC9B,CAAC,CAAC;AAPQ,QAAA,UAAU,cAOlB;AAEE,MAAM,QAAQ,GAAG,GAAG,EAAE,CAC3B,IAAI,uBAAc,CAAC;IACjB,SAAS,EAAE,IAAI;IACf,gBAAgB,EAAE,EAAE,wBAAwB,EAAE,IAAI,EAAE;CACrD,CAAC,CAAC;AAJQ,QAAA,QAAQ,YAIhB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nicot",
3
3
  "description": "Nest.js interacting with class-validator + OpenAPI + TypeORM for Nest.js Restful API development.",
4
- "version": "1.0.28",
4
+ "version": "1.0.29",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {