plutin 1.5.2 → 1.5.3

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.cts CHANGED
@@ -208,14 +208,8 @@ declare function getTakeAndSkip(size: string, page: string): {
208
208
  skip: number;
209
209
  };
210
210
 
211
- type HealthCheckOutput = {
212
- dbIsOnline: boolean;
213
- };
214
- interface IHealthCheck {
215
- check(): Promise<HealthCheckOutput>;
216
- }
217
- interface ICheckDB {
218
- dbIsOnline(): Promise<boolean>;
211
+ interface IHealthCheckDB {
212
+ check(): Promise<boolean>;
219
213
  }
220
214
 
221
215
  type Pagination<T> = {
@@ -321,4 +315,4 @@ declare const logger: {
321
315
  error: (...args: any[]) => void;
322
316
  };
323
317
 
324
- export { AggregateObjectRoot, AggregateRoot, BaseController, CommonDTO, ContextError, Controller, CreateCommonDTO, DependencyContainer, DiscordNotifier, DtoResponsePagination, Entity, EntityObject, ExpressAdapter, FastifyAdapter, GlobalErrorHandler, ICheckDB, IErrorNotifier, IHealthCheck, IHttp, Inject, MethodType, MiddlewareFunction, NotPagination, NotificationErrorInMemory, NotificationFactory, Optional, Pagination, Replace, Request, RequestHttp, Response, SentryNotifier, UniqueEntityId, UniqueObjectUniqueId, ValueObject, WatchedList, ZodSchema, baseEnvSchema, getTakeAndSkip, logger, zodValidator };
318
+ export { AggregateObjectRoot, AggregateRoot, BaseController, CommonDTO, ContextError, Controller, CreateCommonDTO, DependencyContainer, DiscordNotifier, DtoResponsePagination, Entity, EntityObject, ExpressAdapter, FastifyAdapter, GlobalErrorHandler, IErrorNotifier, IHealthCheckDB, IHttp, Inject, MethodType, MiddlewareFunction, NotPagination, NotificationErrorInMemory, NotificationFactory, Optional, Pagination, Replace, Request, RequestHttp, Response, SentryNotifier, UniqueEntityId, UniqueObjectUniqueId, ValueObject, WatchedList, ZodSchema, baseEnvSchema, getTakeAndSkip, logger, zodValidator };
package/dist/index.d.ts CHANGED
@@ -208,14 +208,8 @@ declare function getTakeAndSkip(size: string, page: string): {
208
208
  skip: number;
209
209
  };
210
210
 
211
- type HealthCheckOutput = {
212
- dbIsOnline: boolean;
213
- };
214
- interface IHealthCheck {
215
- check(): Promise<HealthCheckOutput>;
216
- }
217
- interface ICheckDB {
218
- dbIsOnline(): Promise<boolean>;
211
+ interface IHealthCheckDB {
212
+ check(): Promise<boolean>;
219
213
  }
220
214
 
221
215
  type Pagination<T> = {
@@ -321,4 +315,4 @@ declare const logger: {
321
315
  error: (...args: any[]) => void;
322
316
  };
323
317
 
324
- export { AggregateObjectRoot, AggregateRoot, BaseController, CommonDTO, ContextError, Controller, CreateCommonDTO, DependencyContainer, DiscordNotifier, DtoResponsePagination, Entity, EntityObject, ExpressAdapter, FastifyAdapter, GlobalErrorHandler, ICheckDB, IErrorNotifier, IHealthCheck, IHttp, Inject, MethodType, MiddlewareFunction, NotPagination, NotificationErrorInMemory, NotificationFactory, Optional, Pagination, Replace, Request, RequestHttp, Response, SentryNotifier, UniqueEntityId, UniqueObjectUniqueId, ValueObject, WatchedList, ZodSchema, baseEnvSchema, getTakeAndSkip, logger, zodValidator };
318
+ export { AggregateObjectRoot, AggregateRoot, BaseController, CommonDTO, ContextError, Controller, CreateCommonDTO, DependencyContainer, DiscordNotifier, DtoResponsePagination, Entity, EntityObject, ExpressAdapter, FastifyAdapter, GlobalErrorHandler, IErrorNotifier, IHealthCheckDB, IHttp, Inject, MethodType, MiddlewareFunction, NotPagination, NotificationErrorInMemory, NotificationFactory, Optional, Pagination, Replace, Request, RequestHttp, Response, SentryNotifier, UniqueEntityId, UniqueObjectUniqueId, ValueObject, WatchedList, ZodSchema, baseEnvSchema, getTakeAndSkip, logger, zodValidator };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plutin",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "Plutin lib",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -31,7 +31,8 @@
31
31
  "test:coverage": "vitest run --coverage",
32
32
  "prepare": "npm run build",
33
33
  "check:prepublish": "npm run eslint:fix && npm run prettier:format && npm run test",
34
- "prepublishOnly": "npm run check:prepublish"
34
+ "prepublishOnly": "npm run check:prepublish",
35
+ "git:publish": "git push origin master --follow-tags"
35
36
  },
36
37
  "lint-staged": {
37
38
  "*.ts": [