@hedhog/setting 0.0.1 → 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"}
@@ -1,3 +1,3 @@
1
- export declare class SettingsModule {
1
+ export declare class SettingModule {
2
2
  }
3
3
  //# sourceMappingURL=settings.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings.module.d.ts","sourceRoot":"","sources":["../src/settings.module.ts"],"names":[],"mappings":"AAOA,qBAUa,cAAc;CAAG"}
1
+ {"version":3,"file":"settings.module.d.ts","sourceRoot":"","sources":["../src/settings.module.ts"],"names":[],"mappings":"AAOA,qBAUa,aAAa;CAAG"}
@@ -6,17 +6,17 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.SettingsModule = void 0;
9
+ exports.SettingModule = void 0;
10
10
  const auth_1 = require("@hedhog/auth");
11
11
  const pagination_1 = require("@hedhog/pagination");
12
12
  const prisma_1 = require("@hedhog/prisma");
13
13
  const common_1 = require("@nestjs/common");
14
14
  const settings_controller_1 = require("./settings.controller");
15
15
  const settings_service_1 = require("./settings.service");
16
- let SettingsModule = class SettingsModule {
16
+ let SettingModule = class SettingModule {
17
17
  };
18
- exports.SettingsModule = SettingsModule;
19
- exports.SettingsModule = SettingsModule = __decorate([
18
+ exports.SettingModule = SettingModule;
19
+ exports.SettingModule = SettingModule = __decorate([
20
20
  (0, common_1.Module)({
21
21
  providers: [settings_service_1.SettingsService],
22
22
  exports: [settings_service_1.SettingsService],
@@ -27,5 +27,5 @@ exports.SettingsModule = SettingsModule = __decorate([
27
27
  (0, common_1.forwardRef)(() => pagination_1.PaginationModule),
28
28
  ],
29
29
  })
30
- ], SettingsModule);
30
+ ], SettingModule);
31
31
  //# sourceMappingURL=settings.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings.module.js","sourceRoot":"","sources":["../src/settings.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAA0C;AAC1C,mDAAsD;AACtD,2CAA8C;AAC9C,2CAAoD;AACpD,+DAA2D;AAC3D,yDAAqD;AAY9C,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IAV1B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,kCAAe,CAAC;QAC5B,OAAO,EAAE,CAAC,kCAAe,CAAC;QAC1B,WAAW,EAAE,CAAC,wCAAkB,CAAC;QACjC,OAAO,EAAE;YACP,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,6BAAgB,CAAC;SACnC;KACF,CAAC;GACW,cAAc,CAAG"}
1
+ {"version":3,"file":"settings.module.js","sourceRoot":"","sources":["../src/settings.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAA0C;AAC1C,mDAAsD;AACtD,2CAA8C;AAC9C,2CAAoD;AACpD,+DAA2D;AAC3D,yDAAqD;AAY9C,IAAM,aAAa,GAAnB,MAAM,aAAa;CAAG,CAAA;AAAhB,sCAAa;wBAAb,aAAa;IAVzB,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,kCAAe,CAAC;QAC5B,OAAO,EAAE,CAAC,kCAAe,CAAC;QAC1B,WAAW,EAAE,CAAC,wCAAkB,CAAC;QACjC,OAAO,EAAE;YACP,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,6BAAgB,CAAC;SACnC;KACF,CAAC;GACW,aAAa,CAAG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedhog/setting",
3
- "version": "0.0.1",
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
  }
@@ -15,4 +15,4 @@ import { SettingsService } from './settings.service';
15
15
  forwardRef(() => PaginationModule),
16
16
  ],
17
17
  })
18
- export class SettingsModule {}
18
+ export class SettingModule {}