@xrystal/core 3.22.5 → 3.22.6

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Yusuf Yasir KAYGUSUZ",
3
3
  "name": "@xrystal/core",
4
- "version": "3.22.5",
4
+ "version": "3.22.6",
5
5
  "description": "Project core for xrystal",
6
6
  "publishConfig": {
7
7
  "access": "public",
@@ -4,5 +4,6 @@ import Logger from "./logger";
4
4
  import Events from "./events";
5
5
  import Localizations from "./localizations";
6
6
  import Controller from "./controller";
7
+ import Service from "./service";
7
8
  import Clients from "./clients";
8
- export { System, Configs, Logger, Events, Localizations, Controller, Clients };
9
+ export { System, Configs, Logger, Events, Localizations, Controller, Service, Clients };
@@ -4,5 +4,6 @@ import Logger from "./logger";
4
4
  import Events from "./events";
5
5
  import Localizations from "./localizations";
6
6
  import Controller from "./controller";
7
+ import Service from "./service";
7
8
  import Clients from "./clients";
8
- export { System, Configs, Logger, Events, Localizations, Controller, Clients };
9
+ export { System, Configs, Logger, Events, Localizations, Controller, Service, Clients };
@@ -0,0 +1,7 @@
1
+ import { IProvide } from '../../utils/index';
2
+ export declare abstract class BaseService {
3
+ }
4
+ export default abstract class Service extends BaseService implements IProvide<any> {
5
+ constructor();
6
+ onInit(): Promise<void>;
7
+ }
@@ -0,0 +1,7 @@
1
+ export class BaseService {
2
+ }
3
+ export default class Service extends BaseService {
4
+ constructor() { super(); }
5
+ async onInit() {
6
+ }
7
+ }