@zenflux/core 0.0.0-alpha.4 → 0.0.0-alpha.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.
Files changed (41) hide show
  1. package/dist/cjs/zenflux-core.js +44 -6
  2. package/dist/es/zenflux-core.js +44 -6
  3. package/dist/es/zenflux-core.mjs +1 -1
  4. package/dist/umd/zenflux-core.js +2227 -1
  5. package/package.json +2 -2
  6. package/src/modules/logger.ts +53 -7
  7. package/dist/es/rollup.config.d.ts +0 -23
  8. package/dist/es/src/clients/http.d.ts +0 -20
  9. package/dist/es/src/command-bases/command-base.d.ts +0 -22
  10. package/dist/es/src/command-bases/command-data.d.ts +0 -17
  11. package/dist/es/src/command-bases/command-internal.d.ts +0 -9
  12. package/dist/es/src/command-bases/command-public.d.ts +0 -9
  13. package/dist/es/src/command-bases/index.d.ts +0 -7
  14. package/dist/es/src/core/controller.d.ts +0 -35
  15. package/dist/es/src/core/index.d.ts +0 -2
  16. package/dist/es/src/core/object-base.d.ts +0 -14
  17. package/dist/es/src/enums/http.d.ts +0 -12
  18. package/dist/es/src/errors/command-already-registered.d.ts +0 -8
  19. package/dist/es/src/errors/command-not-found.d.ts +0 -7
  20. package/dist/es/src/errors/controller-already-registered.d.ts +0 -8
  21. package/dist/es/src/errors/force-method.d.ts +0 -11
  22. package/dist/es/src/errors/index.d.ts +0 -4
  23. package/dist/es/src/exports.d.ts +0 -10
  24. package/dist/es/src/globals.d.ts +0 -3
  25. package/dist/es/src/index.d.ts +0 -5
  26. package/dist/es/src/initializer.d.ts +0 -19
  27. package/dist/es/src/interfaces/commands.d.ts +0 -13
  28. package/dist/es/src/interfaces/config.d.ts +0 -10
  29. package/dist/es/src/interfaces/managers.d.ts +0 -13
  30. package/dist/es/src/interfaces/object-base.d.ts +0 -10
  31. package/dist/es/src/manager-bases/commands.d.ts +0 -75
  32. package/dist/es/src/manager-bases/controllers.d.ts +0 -18
  33. package/dist/es/src/manager-bases/data.d.ts +0 -23
  34. package/dist/es/src/manager-bases/index.d.ts +0 -7
  35. package/dist/es/src/manager-bases/internal.d.ts +0 -9
  36. package/dist/es/src/managers/index.d.ts +0 -15
  37. package/dist/es/src/modules/index.d.ts +0 -1
  38. package/dist/es/src/modules/logger.d.ts +0 -117
  39. package/dist/es/src/utils/index.d.ts +0 -2
  40. package/dist/es/src/utils/object.d.ts +0 -6
  41. package/dist/es/src/utils/rgb.d.ts +0 -6
@@ -1,117 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- export * from "./object";
2
- export * from "./rgb";
@@ -1,6 +0,0 @@
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;
@@ -1,6 +0,0 @@
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;