@hedhog/setting 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"delete.dto.d.ts","sourceRoot":"","sources":["../../src/dto/delete.dto.ts"],"names":[],"mappings":"AAOA,qBAAa,SAAS;IAKpB,GAAG,EAAE,MAAM,EAAE,CAAC;CACf"}
1
+ {"version":3,"file":"delete.dto.d.ts","sourceRoot":"","sources":["../../src/dto/delete.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;IAIpB,GAAG,EAAE,MAAM,EAAE,CAAC;CACf"}
@@ -16,9 +16,8 @@ class DeleteDTO {
16
16
  exports.DeleteDTO = DeleteDTO;
17
17
  __decorate([
18
18
  (0, class_validator_1.IsArray)(),
19
- (0, class_validator_1.ArrayNotEmpty)(),
20
19
  (0, class_validator_1.ArrayMinSize)(1),
21
- (0, class_validator_1.IsNumber)({}, { each: true }),
20
+ (0, class_validator_1.IsInt)({ each: true }),
22
21
  __metadata("design:type", Array)
23
22
  ], DeleteDTO.prototype, "ids", void 0);
24
23
  //# sourceMappingURL=delete.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete.dto.js","sourceRoot":"","sources":["../../src/dto/delete.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAKyB;AAEzB,MAAa,SAAS;CAMrB;AAND,8BAMC;AADC;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;sCACf"}
1
+ {"version":3,"file":"delete.dto.js","sourceRoot":"","sources":["../../src/dto/delete.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,MAAa,SAAS;CAKrB;AALD,8BAKC;AADC;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;sCACR"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedhog/setting",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -1,14 +1,8 @@
1
- import {
2
- ArrayMinSize,
3
- ArrayNotEmpty,
4
- IsArray,
5
- IsNumber,
6
- } from 'class-validator';
1
+ import { ArrayMinSize, IsArray, IsInt } from 'class-validator';
7
2
 
8
3
  export class DeleteDTO {
9
4
  @IsArray()
10
- @ArrayNotEmpty()
11
5
  @ArrayMinSize(1)
12
- @IsNumber({}, { each: true })
6
+ @IsInt({ each: true })
13
7
  ids: number[];
14
8
  }