namirasoft-core 1.3.2 → 1.3.4
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/ConsoleOperation.d.ts +22 -0
- package/dist/{ConsoleColor.js → ConsoleOperation.js} +21 -6
- package/dist/ConsoleOperation.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/{ConsoleColor.ts → ConsoleOperation.ts} +26 -6
- package/src/index.ts +1 -1
- package/dist/ConsoleColor.d.ts +0 -8
- package/dist/ConsoleColor.js.map +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare class ConsoleColor {
|
|
2
|
+
static colors: {
|
|
3
|
+
reset: string;
|
|
4
|
+
red: string;
|
|
5
|
+
green: string;
|
|
6
|
+
yellow: string;
|
|
7
|
+
blue: string;
|
|
8
|
+
magenta: string;
|
|
9
|
+
cyan: string;
|
|
10
|
+
white: string;
|
|
11
|
+
};
|
|
12
|
+
static formatLogColor(message: string): string;
|
|
13
|
+
static formatInfoColor(message: string): string;
|
|
14
|
+
static formatSuccessColor(message: string): string;
|
|
15
|
+
static formatWarningColor(message: string): string;
|
|
16
|
+
static formatErrorColor(message: string): string;
|
|
17
|
+
static log(message: string): void;
|
|
18
|
+
static info(message: string): void;
|
|
19
|
+
static success(message: string): void;
|
|
20
|
+
static warning(message: string): void;
|
|
21
|
+
static error(message: string): void;
|
|
22
|
+
}
|
|
@@ -2,21 +2,36 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConsoleColor = void 0;
|
|
4
4
|
class ConsoleColor {
|
|
5
|
-
static
|
|
5
|
+
static formatLogColor(message) {
|
|
6
6
|
return (this.colors.white + message + this.colors.reset);
|
|
7
7
|
}
|
|
8
|
-
static
|
|
8
|
+
static formatInfoColor(message) {
|
|
9
9
|
return (this.colors.cyan + message + this.colors.reset);
|
|
10
10
|
}
|
|
11
|
-
static
|
|
11
|
+
static formatSuccessColor(message) {
|
|
12
12
|
return (this.colors.green + message + this.colors.reset);
|
|
13
13
|
}
|
|
14
|
-
static
|
|
14
|
+
static formatWarningColor(message) {
|
|
15
15
|
return (this.colors.yellow + message + this.colors.reset);
|
|
16
16
|
}
|
|
17
|
-
static
|
|
17
|
+
static formatErrorColor(message) {
|
|
18
18
|
return (this.colors.red + message + this.colors.reset);
|
|
19
19
|
}
|
|
20
|
+
static log(message) {
|
|
21
|
+
console.log(ConsoleColor.formatLogColor(message));
|
|
22
|
+
}
|
|
23
|
+
static info(message) {
|
|
24
|
+
console.info(ConsoleColor.formatInfoColor(message));
|
|
25
|
+
}
|
|
26
|
+
static success(message) {
|
|
27
|
+
console.info(ConsoleColor.formatSuccessColor(message));
|
|
28
|
+
}
|
|
29
|
+
static warning(message) {
|
|
30
|
+
console.warn(ConsoleColor.formatWarningColor(message));
|
|
31
|
+
}
|
|
32
|
+
static error(message) {
|
|
33
|
+
console.error(ConsoleColor.formatErrorColor(message));
|
|
34
|
+
}
|
|
20
35
|
}
|
|
21
36
|
exports.ConsoleColor = ConsoleColor;
|
|
22
37
|
ConsoleColor.colors = {
|
|
@@ -29,4 +44,4 @@ ConsoleColor.colors = {
|
|
|
29
44
|
cyan: '\x1b[36m',
|
|
30
45
|
white: '\x1b[37m',
|
|
31
46
|
};
|
|
32
|
-
//# sourceMappingURL=
|
|
47
|
+
//# sourceMappingURL=ConsoleOperation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsoleOperation.js","sourceRoot":"","sources":["../src/ConsoleOperation.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;IAYrB,MAAM,CAAC,cAAc,CAAC,OAAe;QAEjC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC;IACD,MAAM,CAAC,e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CAAC,CAAC;IAC1D,CAAC;;AAnDL,oCAoDC;AAlDiB,mBAAM,GAAG;IACnB,KAAK,EAAE,SAAS;IAChB,GAAG,EAAE,UAAU;IACf,KAAK,EAAE,UAAU;IACjB,MAAM,EAAE,UAAU;IAClB,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,UAAU;IACnB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,UAAU;CACpB,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./BaseDatabaseRow"), exports);
|
|
18
18
|
__exportStar(require("./BaseServer"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./ConsoleOperation"), exports);
|
|
20
20
|
__exportStar(require("./Countries"), exports);
|
|
21
21
|
__exportStar(require("./ConvertService"), exports);
|
|
22
22
|
__exportStar(require("./Country"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,+CAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,+CAA6B;AAC7B,qDAAmC;AACnC,8CAA4B;AAC5B,mDAAiC;AACjC,4CAA0B;AAC1B,qDAAmC;AACnC,wDAAsC;AACtC,mDAAiC;AACjC,kDAAgC;AAChC,iDAA+B;AAC/B,kDAAgC;AAChC,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B;AAC3B,kDAAgC;AAChC,mDAAiC;AACjC,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,mDAAiC;AACjC,oDAAkC;AAClC,kDAAgC;AAChC,iDAA+B;AAC/B,qDAAmC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export class ConsoleColor
|
|
2
2
|
{
|
|
3
|
-
|
|
3
|
+
public static colors = {
|
|
4
4
|
reset: '\x1b[0m',
|
|
5
5
|
red: '\x1b[31m',
|
|
6
6
|
green: '\x1b[32m',
|
|
@@ -10,24 +10,44 @@ export class ConsoleColor
|
|
|
10
10
|
cyan: '\x1b[36m',
|
|
11
11
|
white: '\x1b[37m',
|
|
12
12
|
};
|
|
13
|
-
static
|
|
13
|
+
static formatLogColor(message: string)
|
|
14
14
|
{
|
|
15
15
|
return (this.colors.white + message + this.colors.reset);
|
|
16
16
|
}
|
|
17
|
-
static
|
|
17
|
+
static formatInfoColor(message: string)
|
|
18
18
|
{
|
|
19
19
|
return (this.colors.cyan + message + this.colors.reset);
|
|
20
20
|
}
|
|
21
|
-
static
|
|
21
|
+
static formatSuccessColor(message: string)
|
|
22
22
|
{
|
|
23
23
|
return (this.colors.green + message + this.colors.reset);
|
|
24
24
|
}
|
|
25
|
-
static
|
|
25
|
+
static formatWarningColor(message: string)
|
|
26
26
|
{
|
|
27
27
|
return (this.colors.yellow + message + this.colors.reset);
|
|
28
28
|
}
|
|
29
|
-
static
|
|
29
|
+
static formatErrorColor(message: string)
|
|
30
30
|
{
|
|
31
31
|
return (this.colors.red + message + this.colors.reset);
|
|
32
32
|
}
|
|
33
|
+
static log(message: string)
|
|
34
|
+
{
|
|
35
|
+
console.log(ConsoleColor.formatLogColor(message));
|
|
36
|
+
}
|
|
37
|
+
static info(message: string)
|
|
38
|
+
{
|
|
39
|
+
console.info(ConsoleColor.formatInfoColor(message));
|
|
40
|
+
}
|
|
41
|
+
static success(message: string)
|
|
42
|
+
{
|
|
43
|
+
console.info(ConsoleColor.formatSuccessColor(message));
|
|
44
|
+
}
|
|
45
|
+
static warning(message: string)
|
|
46
|
+
{
|
|
47
|
+
console.warn(ConsoleColor.formatWarningColor(message));
|
|
48
|
+
}
|
|
49
|
+
static error(message: string)
|
|
50
|
+
{
|
|
51
|
+
console.error(ConsoleColor.formatErrorColor(message));
|
|
52
|
+
}
|
|
33
53
|
}
|
package/src/index.ts
CHANGED
package/dist/ConsoleColor.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare class ConsoleColor {
|
|
2
|
-
private static colors;
|
|
3
|
-
static log(message: string): string;
|
|
4
|
-
static info(message: string): string;
|
|
5
|
-
static success(message: string): string;
|
|
6
|
-
static warning(message: string): string;
|
|
7
|
-
static error(message: string): string;
|
|
8
|
-
}
|
package/dist/ConsoleColor.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConsoleColor.js","sourceRoot":"","sources":["../src/ConsoleColor.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;IAYrB,MAAM,CAAC,GAAG,CAAC,OAAe;QAEtB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC;IACD,MAAM,CAAC,IAAI,CAAC,OAAe;QAEvB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC5D,CAAC;IACD,MAAM,CAAC,OAAO,CAAC,OAAe;QAE1B,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC;IACD,MAAM,CAAC,OAAO,CAAC,OAAe;QAE1B,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9D,CAAC;IACD,MAAM,CAAC,KAAK,CAAC,OAAe;QAExB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC3D,CAAC;;AA/BL,oCAgCC;AA9BkB,mBAAM,GAAG;IACpB,KAAK,EAAE,SAAS;IAChB,GAAG,EAAE,UAAU;IACf,KAAK,EAAE,UAAU;IACjB,MAAM,EAAE,UAAU;IAClB,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,UAAU;IACnB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,UAAU;CACpB,CAAC"}
|