@zenflux/core 0.0.0-alpha.6 → 0.0.0-alpha.7

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.
Files changed (74) hide show
  1. package/dist/cjs/zenflux-core.js +18 -145
  2. package/dist/es/clients/http.d.ts +21 -0
  3. package/dist/es/clients/http.d.ts.map +1 -0
  4. package/dist/es/command-bases/command-base.d.ts +23 -0
  5. package/dist/es/command-bases/command-base.d.ts.map +1 -0
  6. package/dist/es/command-bases/command-data.d.ts +18 -0
  7. package/dist/es/command-bases/command-data.d.ts.map +1 -0
  8. package/dist/es/command-bases/command-internal.d.ts +10 -0
  9. package/dist/es/command-bases/command-internal.d.ts.map +1 -0
  10. package/dist/es/command-bases/command-public.d.ts +10 -0
  11. package/dist/es/command-bases/command-public.d.ts.map +1 -0
  12. package/dist/es/command-bases/index.d.ts +8 -0
  13. package/dist/es/command-bases/index.d.ts.map +1 -0
  14. package/dist/es/core/controller.d.ts +36 -0
  15. package/dist/es/core/controller.d.ts.map +1 -0
  16. package/dist/es/core/index.d.ts +3 -0
  17. package/dist/es/core/index.d.ts.map +1 -0
  18. package/dist/es/core/object-base.d.ts +15 -0
  19. package/dist/es/core/object-base.d.ts.map +1 -0
  20. package/dist/es/enums/http.d.ts +13 -0
  21. package/dist/es/enums/http.d.ts.map +1 -0
  22. package/dist/es/errors/command-already-registered.d.ts +9 -0
  23. package/dist/es/errors/command-already-registered.d.ts.map +1 -0
  24. package/dist/es/errors/command-not-found.d.ts +8 -0
  25. package/dist/es/errors/command-not-found.d.ts.map +1 -0
  26. package/dist/es/errors/controller-already-registered.d.ts +9 -0
  27. package/dist/es/errors/controller-already-registered.d.ts.map +1 -0
  28. package/dist/es/errors/force-method.d.ts +12 -0
  29. package/dist/es/errors/force-method.d.ts.map +1 -0
  30. package/dist/es/errors/index.d.ts +5 -0
  31. package/dist/es/errors/index.d.ts.map +1 -0
  32. package/dist/es/exports.d.ts +11 -0
  33. package/dist/es/exports.d.ts.map +1 -0
  34. package/dist/es/index.d.ts +6 -0
  35. package/dist/es/index.d.ts.map +1 -0
  36. package/dist/es/initializer.d.ts +20 -0
  37. package/dist/es/initializer.d.ts.map +1 -0
  38. package/dist/es/interfaces/commands.d.ts +14 -0
  39. package/dist/es/interfaces/commands.d.ts.map +1 -0
  40. package/dist/es/interfaces/config.d.ts +11 -0
  41. package/dist/es/interfaces/config.d.ts.map +1 -0
  42. package/dist/es/interfaces/managers.d.ts +14 -0
  43. package/dist/es/interfaces/managers.d.ts.map +1 -0
  44. package/dist/es/interfaces/object-base.d.ts +11 -0
  45. package/dist/es/interfaces/object-base.d.ts.map +1 -0
  46. package/dist/es/manager-bases/commands.d.ts +76 -0
  47. package/dist/es/manager-bases/commands.d.ts.map +1 -0
  48. package/dist/es/manager-bases/controllers.d.ts +19 -0
  49. package/dist/es/manager-bases/controllers.d.ts.map +1 -0
  50. package/dist/es/manager-bases/data.d.ts +24 -0
  51. package/dist/es/manager-bases/data.d.ts.map +1 -0
  52. package/dist/es/manager-bases/index.d.ts +8 -0
  53. package/dist/es/manager-bases/index.d.ts.map +1 -0
  54. package/dist/es/manager-bases/internal.d.ts +10 -0
  55. package/dist/es/manager-bases/internal.d.ts.map +1 -0
  56. package/dist/es/managers/index.d.ts +16 -0
  57. package/dist/es/managers/index.d.ts.map +1 -0
  58. package/dist/es/modules/index.d.ts +2 -0
  59. package/dist/es/modules/index.d.ts.map +1 -0
  60. package/dist/es/modules/logger.d.ts +118 -0
  61. package/dist/es/modules/logger.d.ts.map +1 -0
  62. package/dist/es/utils/index.d.ts +3 -0
  63. package/dist/es/utils/index.d.ts.map +1 -0
  64. package/dist/es/utils/object.d.ts +7 -0
  65. package/dist/es/utils/object.d.ts.map +1 -0
  66. package/dist/es/utils/rgb.d.ts +7 -0
  67. package/dist/es/utils/rgb.d.ts.map +1 -0
  68. package/dist/es/zenflux-core.js +18 -145
  69. package/dist/esm/zenflux-core.mjs +2083 -0
  70. package/dist/umd/zenflux-core.js +18 -145
  71. package/package.json +3 -2
  72. package/src/initializer.ts +2 -1
  73. package/types/index.d.ts +3 -3
  74. package/dist/es/zenflux-core.mjs +0 -1
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @author: Leonid Vinikov <leonidvinikov@gmail.com>
3
+ * @description: Responsible for commands, Aka ( CommandsSpace ).
4
+ */
5
+ import ObjectBase from "./object-base";
6
+ import { CommandData, CommandInternal, CommandPublic } from "../command-bases";
7
+ export declare abstract class Controller extends ObjectBase {
8
+ commands: {
9
+ [key: string]: typeof CommandPublic;
10
+ };
11
+ data: {
12
+ [key: string]: typeof CommandData;
13
+ };
14
+ internal: {
15
+ [key: string]: typeof CommandInternal;
16
+ };
17
+ static getName(): string;
18
+ constructor();
19
+ initialize(): void;
20
+ register(): void;
21
+ getCommands(): {
22
+ [key: string]: typeof CommandPublic;
23
+ };
24
+ getData(): {
25
+ [key: string]: typeof CommandData;
26
+ };
27
+ getInternal(): {
28
+ [key: string]: typeof CommandInternal;
29
+ };
30
+ /**
31
+ * Function setupHooks() : Override this method to setup hooks.
32
+ */
33
+ setupHooks?(): void;
34
+ }
35
+ export default Controller;
36
+ //# sourceMappingURL=controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../src/core/controller.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAI/E,8BAAsB,UAAW,SAAQ,UAAU;IAC/C,QAAQ,EAAE;QAAE,CAAE,GAAG,EAAE,MAAM,GAAI,OAAO,aAAa,CAAA;KAAE,CAAC;IACpD,IAAI,EAAE;QAAE,CAAE,GAAG,EAAE,MAAM,GAAI,OAAO,WAAW,CAAA;KAAE,CAAC;IAC9C,QAAQ,EAAE;QAAE,CAAE,GAAG,EAAE,MAAM,GAAI,OAAO,eAAe,CAAA;KAAE,CAAC;IAEtD,MAAM,CAAC,OAAO;;IAUd,UAAU;IAMV,QAAQ;IAWR,WAAW,IAAI;QAAE,CAAE,GAAG,EAAE,MAAM,GAAI,OAAO,aAAa,CAAA;KAAE;IAIxD,OAAO,IAAI;QAAE,CAAE,GAAG,EAAE,MAAM,GAAI,OAAO,WAAW,CAAA;KAAE;IAIlD,WAAW,IAAI;QAAE,CAAE,GAAG,EAAE,MAAM,GAAI,OAAO,eAAe,CAAA;KAAE;IAI1D;;OAEG;IACH,UAAU,CAAC,IAAG,IAAI;CACrB;AAED,eAAe,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Controller } from './controller';
2
+ export { ObjectBase } from './object-base';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { IObjectBaseInterface } from "../interfaces/object-base";
2
+ /**
3
+ * Base class 4 *
4
+ */
5
+ export declare abstract class ObjectBase implements IObjectBaseInterface {
6
+ virtualId: number;
7
+ static getName(): string;
8
+ constructor();
9
+ getName(): string;
10
+ }
11
+ export declare function APIResetIdCounter(): number;
12
+ export declare function APIIncreaseIdCounter(): number;
13
+ export declare function APIGetIdCounter(): number;
14
+ export default ObjectBase;
15
+ //# sourceMappingURL=object-base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-base.d.ts","sourceRoot":"","sources":["../src/core/object-base.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAIjE;;GAEG;AACH,8BAAsB,UAAW,YAAW,oBAAoB;IACrD,SAAS,EAAE,MAAM,CAAK;IAE7B,MAAM,CAAC,OAAO,IAAI,MAAM;;IAUxB,OAAO,IAAI,MAAM;CAGpB;AAED,wBAAgB,iBAAiB,WAIhC;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AAED,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAED,eAAe,UAAU,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @author: Leonid Vinikov <leonidvinikov@gmail.com>
3
+ */
4
+ export declare enum HTTPMethodEnum {
5
+ DELETE = "DELETE",
6
+ GET = "GET",
7
+ OPTIONS = "OPTIONS",
8
+ PATCH = "PATCH",
9
+ POST = "POST",
10
+ PUT = "PUT",
11
+ '__EMPTY__' = ""
12
+ }
13
+ //# sourceMappingURL=http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../src/enums/http.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,cAAc;IACtB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,WAAW,KAAK;CACnB"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @author: Leonid Vinikov <leonidvinikov@gmail.com>
3
+ */
4
+ import CommandBase from "../command-bases/command-base";
5
+ export declare class CommandAlreadyRegistered extends Error {
6
+ constructor(command: typeof CommandBase);
7
+ }
8
+ export default CommandAlreadyRegistered;
9
+ //# sourceMappingURL=command-already-registered.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-already-registered.d.ts","sourceRoot":"","sources":["../src/errors/command-already-registered.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,WAAW,MAAM,+BAA+B,CAAC;AAExD,qBAAa,wBAAyB,SAAQ,KAAK;gBAClC,OAAO,EAAE,OAAO,WAAW;CAG3C;AAED,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @author: Leonid Vinikov <leonidvinikov@gmail.com>
3
+ */
4
+ export declare class CommandNotFound extends Error {
5
+ constructor(command: string);
6
+ }
7
+ export default CommandNotFound;
8
+ //# sourceMappingURL=command-not-found.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-not-found.d.ts","sourceRoot":"","sources":["../src/errors/command-not-found.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,eAAgB,SAAQ,KAAK;gBACzB,OAAO,EAAE,MAAM;CAG/B;AAED,eAAe,eAAe,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @author: Leonid Vinikov <leonidvinikov@gmail.com>
3
+ */
4
+ import Controller from "../core/controller";
5
+ export declare class ControllerAlreadyRegistered extends Error {
6
+ constructor(controller: Controller);
7
+ }
8
+ export default ControllerAlreadyRegistered;
9
+ //# sourceMappingURL=controller-already-registered.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controller-already-registered.d.ts","sourceRoot":"","sources":["../src/errors/controller-already-registered.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAE5C,qBAAa,2BAA4B,SAAQ,KAAK;gBACrC,UAAU,EAAE,UAAU;CAGtC;AAED,eAAe,2BAA2B,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @author: Leonid Vinikov <leonidvinikov@gmail.com>
3
+ */
4
+ import ObjectBase from "../core/object-base";
5
+ export declare class ForceMethodBase extends Error {
6
+ constructor(className: string, methodName: string);
7
+ }
8
+ export declare class ForceMethod extends Error {
9
+ constructor(context: ObjectBase | typeof ObjectBase, methodName: string);
10
+ }
11
+ export default ForceMethod;
12
+ //# sourceMappingURL=force-method.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"force-method.d.ts","sourceRoot":"","sources":["../src/errors/force-method.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAE7C,qBAAa,eAAgB,SAAQ,KAAK;gBACzB,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;CAKrD;AAED,qBAAa,WAAY,SAAQ,KAAK;gBACrB,OAAO,EAAE,UAAU,GAAG,OAAO,UAAU,EAAE,UAAU,EAAE,MAAM;CAK3E;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { CommandAlreadyRegistered } from "./command-already-registered";
2
+ export { CommandNotFound } from "./command-not-found";
3
+ export { ControllerAlreadyRegistered } from "./controller-already-registered";
4
+ export { ForceMethod } from "./force-method";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @author: Leonid Vinikov <leonidvinikov@gmail.com>
3
+ */
4
+ export * as commandBases from "./command-bases";
5
+ export * as core from "./core";
6
+ export * as errors from "./errors";
7
+ export * as managers from "./managers";
8
+ export * as managerBases from "./manager-bases";
9
+ export * as modules from "./modules";
10
+ export * as utils from "./utils";
11
+ //# sourceMappingURL=exports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["src/exports.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @author: Leonid Vinikov <leonidvinikov@gmail.com>
3
+ */
4
+ export { CoreAPI as default } from "./initializer";
5
+ export * from './exports';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAC;AAEnD,cAAc,WAAW,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { IAPIConfig } from "./interfaces/config";
2
+ import * as exported from './exports';
3
+ declare global {
4
+ var ZenCore: any;
5
+ }
6
+ export declare let config: IAPIConfig;
7
+ export declare const CoreAPI: {
8
+ commandBases: typeof exported.commandBases;
9
+ core: typeof exported.core;
10
+ errors: typeof exported.errors;
11
+ managers: typeof exported.managers;
12
+ managerBases: typeof exported.managerBases;
13
+ modules: typeof exported.modules;
14
+ utils: typeof exported.utils;
15
+ initialize: (configuration?: IAPIConfig) => void;
16
+ destroy: () => void;
17
+ onAfterInitialize: (callback: () => void) => void;
18
+ config: IAPIConfig;
19
+ };
20
+ //# sourceMappingURL=initializer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initializer.d.ts","sourceRoot":"","sources":["src/initializer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACX,IAAI,OAAO,EAAE,GAAG,CAAC;CACpB;AAYD,eAAO,IAAI,MAAM,EAAE,UAElB,CAAA;AAGD,eAAO,MAAM,OAAO;;;;;;;;iCACc,UAAU;;kCAiBT,MAAM,IAAI;;CAO5C,CAAA"}
@@ -0,0 +1,14 @@
1
+ export type CommandCallbackType = (args?: any, options?: any) => any;
2
+ export interface ICommandArgsInterface {
3
+ [key: string]: any;
4
+ }
5
+ export interface ICommandOptionsInterface {
6
+ [key: string]: any;
7
+ }
8
+ export interface IOnHookAffectInterface {
9
+ [key: string]: Array<String>;
10
+ }
11
+ export interface IOnHookInterface {
12
+ [key: string]: Array<CommandCallbackType>;
13
+ }
14
+ //# sourceMappingURL=commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../src/interfaces/commands.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,CAAE,IAAI,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,KAAM,GAAG,CAAC;AAEvE,MAAM,WAAW,qBAAqB;IAClC,CAAE,GAAG,EAAE,MAAM,GAAI,GAAG,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACrC,CAAE,GAAG,EAAE,MAAM,GAAI,GAAG,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACnC,CAAE,GAAG,EAAE,MAAM,GAAI,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,gBAAgB;IAC7B,CAAE,GAAG,EAAE,MAAM,GAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;CAC/C"}
@@ -0,0 +1,11 @@
1
+ export interface IAPIConfig {
2
+ /**
3
+ * @description: API version, from `package.json`
4
+ */
5
+ version: string;
6
+ /**
7
+ * @description: API base url for http requests.
8
+ */
9
+ baseURL?: string;
10
+ }
11
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/interfaces/config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,14 @@
1
+ import Commands from "../manager-bases/commands";
2
+ import Controllers from "../manager-bases/controllers";
3
+ import Data from "../manager-bases/data";
4
+ import Internal from "../manager-bases/internal";
5
+ import { IAPIConfig } from "./config";
6
+ export interface IManagers {
7
+ initialize: (config: IAPIConfig) => void;
8
+ destroy: () => void;
9
+ commands: Commands;
10
+ controllers: Controllers;
11
+ data: Data;
12
+ internal: Internal;
13
+ }
14
+ //# sourceMappingURL=managers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managers.d.ts","sourceRoot":"","sources":["../src/interfaces/managers.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,WAAW,SAAS;IACtB,UAAU,EAAE,CAAE,MAAM,EAAE,UAAU,KAAM,IAAI,CAAC;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,QAAQ,CAAC;CACtB"}
@@ -0,0 +1,11 @@
1
+ export interface IObjectBaseInterface {
2
+ /**
3
+ * Virtual id is used for identification of object or for debugging proposes.
4
+ */
5
+ virtualId: number;
6
+ /**
7
+ *
8
+ */
9
+ getName(): string;
10
+ }
11
+ //# sourceMappingURL=object-base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-base.d.ts","sourceRoot":"","sources":["../src/interfaces/object-base.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IAEjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,IAAI,MAAM,CAAC;CACrB"}
@@ -0,0 +1,76 @@
1
+ /**
2
+ * @author: Leonid Vinikov <leonidvinikov@gmail.com>
3
+ * @description: Responsible for manging/running/hooking commands.
4
+ */
5
+ import { Logger } from "../modules/";
6
+ import { CommandBase } from "../command-bases";
7
+ import ObjectBase from "../core/object-base";
8
+ import Controller from "../core/controller";
9
+ import { ICommandArgsInterface, CommandCallbackType, IOnHookAffectInterface, IOnHookInterface } from "../interfaces/commands";
10
+ export declare class Commands extends ObjectBase {
11
+ static readonly trace: string[];
12
+ current: {
13
+ [key: string]: CommandBase;
14
+ };
15
+ currentArgs: {
16
+ [key: string]: ICommandArgsInterface;
17
+ };
18
+ trace: string[];
19
+ commands: {
20
+ [key: string]: typeof CommandBase;
21
+ };
22
+ onBeforeHooks: IOnHookInterface;
23
+ onBeforeUIHooks: IOnHookInterface;
24
+ onAfterHooks: IOnHookInterface;
25
+ onAfterOnceHooks: IOnHookInterface;
26
+ onAfterUIHooks: IOnHookInterface;
27
+ onAfterAffectHooks: IOnHookAffectInterface;
28
+ private readonly logger;
29
+ static getName(): string;
30
+ private static runCallbacks;
31
+ private static hookCommand;
32
+ constructor();
33
+ run(command: string | CommandBase, args?: ICommandArgsInterface, options?: any): Promise<any>;
34
+ register(commands: {
35
+ [key: string]: typeof CommandBase;
36
+ }, controller: Controller): {
37
+ [key: string]: typeof CommandBase;
38
+ };
39
+ getAll(): {
40
+ [key: string]: typeof CommandBase;
41
+ };
42
+ getByName(name: string): typeof CommandBase;
43
+ getLogger(): Logger;
44
+ getCommandInstance(name: string, args?: ICommandArgsInterface, options?: {}): CommandBase;
45
+ /**
46
+ * Function onBefore() : Used to set hooks that effects only data and not UI.
47
+ */
48
+ onBefore(hookCommand: string, callback: CommandCallbackType): void;
49
+ /**
50
+ * Function onBeforeUI() : Used to set hooks that effects only UI.
51
+ */
52
+ onBeforeUI(hookCommand: string, callback: CommandCallbackType): void;
53
+ /**
54
+ * Function onAfter() : Used to set hooks that effects only data and not UI.
55
+ */
56
+ onAfter(hookCommand: string, callback: CommandCallbackType): void;
57
+ /**
58
+ * Function onAfterUI() : Used to set hooks that effects only UI.
59
+ */
60
+ onAfterUI(command: string, callback: CommandCallbackType): void;
61
+ /**
62
+ * Function onAfterOnce() : Used to set hooks that effects only data and not UI.
63
+ */
64
+ onAfterOnce(command: string, callback: CommandCallbackType): void;
65
+ /**
66
+ * Function onAfterAffect() : Used to register a trigger that runs command after `hookCommand` run's.
67
+ */
68
+ onAfterAffect(hookCommand: string, affectCommand: string): void;
69
+ protected onBeforeRun(command: CommandBase, args?: ICommandArgsInterface, options?: {}): void;
70
+ protected runInstance(command: CommandBase, args?: ICommandArgsInterface, options?: {}): Promise<any>;
71
+ protected onAfterRun(command: CommandBase, args: ICommandArgsInterface, options: {}, result: any): Promise<any>;
72
+ protected attachCurrent(command: CommandBase, args?: any): void;
73
+ protected detachCurrent(command: CommandBase): void;
74
+ }
75
+ export default Commands;
76
+ //# sourceMappingURL=commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../src/manager-bases/commands.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAE5C,OAAO,EACH,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EACnB,MAAM,wBAAwB,CAAC;AAEhC,qBAAa,QAAS,SAAQ,UAAU;IACpC,gBAAuB,KAAK,EAAC,MAAM,EAAE,CAAM;IAE3C,OAAO,EAAE;QAAE,CAAE,GAAG,EAAE,MAAM,GAAI,WAAW,CAAA;KAAE,CAAM;IAC/C,WAAW,EAAE;QAAE,CAAE,GAAG,EAAE,MAAM,GAAI,qBAAqB,CAAA;KAAE,CAAM;IAE7D,KAAK,EAAC,MAAM,EAAE,CAAM;IAEpB,QAAQ,EAAE;QAAE,CAAE,GAAG,EAAE,MAAM,GAAI,OAAO,WAAW,CAAA;KAAE,CAAM;IAEvD,aAAa,EAAE,gBAAgB,CAAM;IACrC,eAAe,EAAE,gBAAgB,CAAM;IAEvC,YAAY,EAAE,gBAAgB,CAAM;IACpC,gBAAgB,EAAE,gBAAgB,CAAM;IACxC,cAAc,EAAE,gBAAgB,CAAM;IACtC,kBAAkB,EAAE,sBAAsB,CAAM;IAEhD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAEhC,MAAM,CAAC,OAAO;mBAIO,YAAY;IAcjC,OAAO,CAAC,MAAM,CAAC,WAAW;;IAgBb,GAAG,CAAE,OAAO,EAAE,MAAM,GAAG,WAAW,EAAE,IAAI,GAAE,qBAA0B,EAAE,OAAO,GAAE,GAAQ;IAc7F,QAAQ,CAAE,QAAQ,EAAE;QAAE,CAAE,GAAG,EAAE,MAAM,GAAI,OAAO,WAAW,CAAA;KAAE,EAAE,UAAU,EAAE,UAAU;;;IAkBnF,MAAM;;;IAIN,SAAS,CAAE,IAAI,EAAE,MAAM;IAIvB,SAAS;IAIT,kBAAkB,CAAE,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,qBAA0B,EAAE,OAAO,KAAK,GAAI,WAAW;IAWtG;;OAEG;IACI,QAAQ,CAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB;IAInE;;OAEG;IACI,UAAU,CAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB;IAIrE;;OAEG;IACI,OAAO,CAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB;IAIlE;;OAEG;IACI,SAAS,CAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB;IAIhE;;OAEG;IACI,WAAW,CAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB;IAIlE;;OAEG;IACI,aAAa,CAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM;IAIhE,SAAS,CAAC,WAAW,CAAE,OAAO,EAAE,WAAW,EAAE,IAAI,GAAE,qBAA0B,EAAE,OAAO,KAAK;cAY3E,WAAW,CAAE,OAAO,EAAE,WAAW,EAAE,IAAI,GAAE,qBAA0B,EAAE,OAAO,KAAK;cA+BjF,UAAU,CAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,qBAAqB,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG;IA4CvG,SAAS,CAAC,aAAa,CAAE,OAAO,EAAE,WAAW,EAAE,IAAI,GAAC,GAAQ;IAQ5D,SAAS,CAAC,aAAa,CAAE,OAAO,EAAE,WAAW;CAOhD;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @author: Leonid Vinikov <leonidvinikov@gmail.com>
3
+ * @description: Responsible for manging controllers, each controller is global singleton instance.
4
+ */
5
+ import ObjectBase from "../core/object-base";
6
+ import Controller from "../core/controller";
7
+ export declare class Controllers extends ObjectBase {
8
+ controllers: {
9
+ [key: string]: Controller;
10
+ };
11
+ static getName(): string;
12
+ get(name: string): Controller;
13
+ getAll(): {
14
+ [key: string]: Controller;
15
+ };
16
+ register(controller: Controller): Controller;
17
+ }
18
+ export default Controllers;
19
+ //# sourceMappingURL=controllers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controllers.d.ts","sourceRoot":"","sources":["../src/manager-bases/controllers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAI5C,qBAAa,WAAY,SAAQ,UAAU;IACvC,WAAW,EAAE;QAAE,CAAE,GAAG,EAAE,MAAM,GAAI,UAAU,CAAA;KAAE,CAAM;IAElD,MAAM,CAAC,OAAO;IAId,GAAG,CAAE,IAAI,EAAE,MAAM;IAIjB,MAAM;;;IAIN,QAAQ,CAAE,UAAU,EAAE,UAAU;CAUnC;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @author: Leonid Vinikov <leonidvinikov@gmail.com>
3
+ * @description: Responsible for manging data commands which are wrappers for HTTP requests.
4
+ */
5
+ import Commands from "./commands";
6
+ import { CommandData } from '../command-bases/';
7
+ import Http from '../clients/http';
8
+ import { HTTPMethodEnum } from "../enums/http";
9
+ import { IAPIConfig } from "../interfaces/config";
10
+ import { ICommandArgsInterface, ICommandOptionsInterface } from '../interfaces/commands';
11
+ export declare class Data extends Commands {
12
+ private static client;
13
+ currentHttpMethod: HTTPMethodEnum;
14
+ static getName(): string;
15
+ constructor(Config: IAPIConfig);
16
+ getClient(): Http;
17
+ get(command: string, args?: ICommandArgsInterface, options?: ICommandOptionsInterface): Promise<any>;
18
+ update(command: string, args?: ICommandArgsInterface, options?: {}): Promise<any>;
19
+ delete(command: string, args?: ICommandArgsInterface, options?: {}): Promise<any>;
20
+ create(command: string, args?: ICommandArgsInterface, options?: {}): Promise<any>;
21
+ protected runInstance(command: CommandData, args?: ICommandArgsInterface, options?: {}): Promise<any>;
22
+ }
23
+ export default Data;
24
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../src/manager-bases/data.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,IAAI,MAAM,iBAAiB,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEzF,qBAAa,IAAK,SAAQ,QAAQ;IAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,CAAO;IAErB,iBAAiB,EAAE,cAAc,CAAC;IAEzC,MAAM,CAAC,OAAO;gBAID,MAAM,EAAE,UAAU;IAOxB,SAAS;IAIT,GAAG,CAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,qBAA0B,EAAE,OAAO,GAAE,wBAA6B;IAM9F,MAAM,CAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,qBAA0B,EAAE,OAAO,GAAE,EAAO;IAM3E,MAAM,CAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,qBAA0B,EAAE,OAAO,GAAE,EAAO;IAM3E,MAAM,CAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,qBAA0B,EAAE,OAAO,GAAE,EAAO;cAMlE,WAAW,CAAE,OAAO,EAAE,WAAW,EAAE,IAAI,GAAE,qBAA0B,EAAE,OAAO,GAAE,EAAO;CA2BxG;AAED,eAAe,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @author: Leonid Vinikov <leonidvinikov@gmail.com>
3
+ */
4
+ export { Commands } from './commands';
5
+ export { Controllers } from './controllers';
6
+ export { Data } from './data';
7
+ export { Internal } from './internal';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/manager-bases/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @author: Leonid Vinikov <leonidvinikov@gmail.com>
3
+ * @description: Responsible for manging internal commands, To serve commands that are not triggered by user.
4
+ */
5
+ import { Commands } from "./commands";
6
+ export declare class Internal extends Commands {
7
+ static getName(): string;
8
+ }
9
+ export default Internal;
10
+ //# sourceMappingURL=internal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/manager-bases/internal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,qBAAa,QAAS,SAAQ,QAAQ;IAClC,MAAM,CAAC,OAAO;CAGjB;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @author: Leonid Vinikov <leonidvinikov@gmail.com>
3
+ */
4
+ import Commands from "../manager-bases/commands";
5
+ import Controllers from "../manager-bases/controllers";
6
+ import Data from "../manager-bases/data";
7
+ import Internal from "../manager-bases/internal";
8
+ import { IAPIConfig } from "../interfaces/config";
9
+ export declare const afterInitializeCallbacks: (() => void)[];
10
+ export declare function initialize(config: IAPIConfig): void;
11
+ export declare function destroy(): void;
12
+ export declare var commands: Commands;
13
+ export declare var controllers: Controllers;
14
+ export declare var data: Data;
15
+ export declare var internal: Internal;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/managers/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,wBAAwB,EAAE,CAAE,MAAM,IAAI,CAAE,EAAO,CAAC;AAE7D,wBAAgB,UAAU,CAAE,MAAM,EAAE,UAAU,QAK7C;AAED,wBAAgB,OAAO,SAKtB;AAED,eAAO,IAAI,QAAQ,UAAiB,CAAC;AACrC,eAAO,IAAI,WAAW,aAAoB,CAAC;AAC3C,eAAO,IAAI,IAAI,MAAa,CAAC;AAC7B,eAAO,IAAI,QAAQ,UAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Logger } from "./logger";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/modules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,118 @@
1
+ export declare class Logger {
2
+ static wrappers: {};
3
+ static wrapperDepth: number;
4
+ static sharedData: {
5
+ [key: string]: string;
6
+ };
7
+ static colorsInUse: string[];
8
+ defaultStyle: string[];
9
+ private color;
10
+ private outputHandler;
11
+ private args;
12
+ private readonly name;
13
+ private readonly state;
14
+ static getName(): string;
15
+ /**
16
+ * Function reset() : Reset logger globals.
17
+ */
18
+ static reset(): void;
19
+ /**
20
+ * Function createCustomWrapper() : Creates custom wrapper for log entities.
21
+ */
22
+ static createCustomWrapper(classType: any, callback: Function): void;
23
+ /**
24
+ * Function getCallerName() : Return caller name.
25
+ */
26
+ private static getCallerName;
27
+ /**
28
+ * Function functionView() : Return function preview.
29
+ */
30
+ private static getFunctionView;
31
+ /**
32
+ * Function constructor() : Create logger class.
33
+ */
34
+ constructor(owner: any, isActive?: boolean, args?: {});
35
+ /**
36
+ * Function initialize() : Initialize logger class.
37
+ */
38
+ initialize(): void;
39
+ /**
40
+ * Function setOutputHandler() : Set custom output handler.
41
+ */
42
+ setOutputHandler(outputHandler: Function): void;
43
+ /**
44
+ * Function useWrapper() : Search for customized log view, each instance,
45
+ * that typeof the instance was registered wrapper will have unique output
46
+ * according to the registered callback.
47
+ */
48
+ useWrapper(obj: any, shouldHandleChildren?: boolean): any;
49
+ /**
50
+ * Function startEmpty() : Notify function start without args.
51
+ *
52
+ * @param {string} output
53
+ */
54
+ startEmpty(output?: string): void;
55
+ /**
56
+ * Function startWith() : Notify function start with args.
57
+ *
58
+ * TODO: Rename to startsWith
59
+ */
60
+ startWith(params: any): void;
61
+ /**
62
+ * Function object() : Prints object.
63
+ **/
64
+ object(params?: {
65
+ [key: string]: Object;
66
+ }, notice?: string): void;
67
+ /**
68
+ * Function debug() : Notify debug.
69
+ */
70
+ debug(output: string): void;
71
+ /**
72
+ * Function drop : Preview as continue of log which drop ite.
73
+ */
74
+ drop(according: any, data: any): void;
75
+ /**
76
+ * Function throw() : Throws logged error.
77
+ */
78
+ throw(output: string, name?: string, params?: {}): void;
79
+ /**
80
+ * Function clone() : Create clone instance.
81
+ */
82
+ clone(): any;
83
+ /**
84
+ * Function printFunctionNotify() : Print simple log for notify source (function).
85
+ *
86
+ */
87
+ private printFunctionNotify;
88
+ /**
89
+ * Function printInLineElement() : Print in line element.
90
+ */
91
+ private printInLineElement;
92
+ /**
93
+ * Function printInLineFunction() : Print in line function.
94
+ */
95
+ private printInLineFunction;
96
+ /**
97
+ * Function printInLineString() : Print in line string.
98
+ */
99
+ private printInLineString;
100
+ /**
101
+ * Function printNextLineObject() : Print object in next line.
102
+ */
103
+ private printNextLineObject;
104
+ /**
105
+ * Function printMultiLineObject() : Print object in multiline format.
106
+ */
107
+ private printMultiLineObject;
108
+ /**
109
+ * Function getRandomColor() : Return random color.
110
+ */
111
+ private getRandomColor;
112
+ /**
113
+ * Function out() : Print console log with style
114
+ */
115
+ private out;
116
+ }
117
+ export default Logger;
118
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/modules/logger.ts"],"names":[],"mappings":"AAyBA,qBAAa,MAAM;IACf,MAAM,CAAC,QAAQ,KAAM;IACrB,MAAM,CAAC,YAAY,SAAK;IACxB,MAAM,CAAC,UAAU,EAAE;QAAE,CAAE,GAAG,EAAE,MAAM,GAAI,MAAM,CAAA;KAAE,CAAM;IACpD,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,CAAM;IAE3B,YAAY,EAAE,MAAM,EAAE,CAAC;IAE9B,OAAO,CAAC,KAAK,CAAS;IAEtB,OAAO,CAAC,aAAa,CAAW;IAEhC,OAAO,CAAC,IAAI,CAAM;IAElB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAS;IAE9B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkB;IAExC,MAAM,CAAC,OAAO;IAId;;OAEG;WACW,KAAK;IAOnB;;OAEG;WACW,mBAAmB,CAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ;IAUrE;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,aAAa;IA6C5B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAW9B;;OAEG;gBACU,KAAK,EAAE,GAAG,EAAE,QAAQ,UAAQ,EAAE,IAAI,KAAK;IAoBpD;;OAEG;IACH,UAAU;IA2BV;;OAEG;IACH,gBAAgB,CAAE,aAAa,EAAE,QAAQ;IAIzC;;;;OAIG;IACH,UAAU,CAAE,GAAG,EAAE,GAAG,EAAE,oBAAoB,UAAO;IAiCjD;;;;OAIG;IACH,UAAU,CAAE,MAAM,SAAK;IAMvB;;;;OAIG;IACH,SAAS,CAAE,MAAM,EAAE,GAAG;IA2BtB;;QAEI;IACJ,MAAM,CAAE,MAAM,GAAE;QAAE,CAAE,GAAG,EAAE,MAAM,GAAI,MAAM,CAAA;KAAO,EAAE,MAAM,SAAK;IAqB7D;;OAEG;IACH,KAAK,CAAE,MAAM,EAAE,MAAM;IAMrB;;OAEG;IACH,IAAI,CAAE,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG;IAY/B;;OAEG;IACH,KAAK,CAAE,MAAM,EAAE,MAAM,EAAE,IAAI,GAAE,MAAe,EAAE,MAAM,KAAK;IASzD;;OAEG;IACH,KAAK;IAIL;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAS1B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAM3B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAIzB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAa3B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IA0B5B;;OAEG;IACH,OAAO,CAAC,cAAc;IAqBtB;;OAEG;IACH,OAAO,CAAC,GAAG;CAGd;AAED,eAAe,MAAM,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./object";
2
+ export * from "./rgb";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Function getCircularReplacer() : Reduce circular references.
3
+ *
4
+ * @copyright https://stackoverflow.com/a/53731154
5
+ */
6
+ export declare const getCircularReplacer: () => (key: any, value: any) => any;
7
+ //# sourceMappingURL=object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../src/utils/object.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,cAGd,GAAG,SAAS,GAAG,QAShC,CAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Function hexColorDelta() : Return color difference in ratio decimal point.
3
+ *
4
+ * @copyright http://jsfiddle.net/96sME/
5
+ */
6
+ export declare const hexColorDelta: (hex1: string, hex2: string) => number;
7
+ //# sourceMappingURL=rgb.d.ts.map