@expressots/core 1.8.1 → 1.9.0
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/lib/CHANGELOG.md +26 -3
- package/lib/cjs/common/color-service.provider.js +46 -0
- package/lib/cjs/common/package-resolver.provider.js +35 -0
- package/lib/cjs/console/console.js +10 -33
- package/lib/cjs/controller/base-controller.js +0 -2
- package/lib/cjs/error/report.js +14 -5
- package/lib/cjs/index.js +1 -2
- package/lib/cjs/provider/dto-validator/dto-validator.provider.js +62 -0
- package/lib/cjs/{environment/env-validator.js → provider/environment/env-validator.provider.js} +16 -10
- package/lib/cjs/provider/index.js +11 -0
- package/lib/cjs/provider/logger/logger-service.js +114 -0
- package/lib/cjs/provider/provider-service.js +36 -0
- package/lib/cjs/types/common/color-service.provider.d.ts +30 -0
- package/lib/cjs/types/common/color-service.provider.d.ts.map +1 -0
- package/lib/cjs/types/common/package-resolver.provider.d.ts +9 -0
- package/lib/cjs/types/common/package-resolver.provider.d.ts.map +1 -0
- package/lib/cjs/types/console/console.d.ts +1 -1
- package/lib/cjs/types/console/console.d.ts.map +1 -1
- package/lib/cjs/types/controller/base-controller.d.ts.map +1 -1
- package/lib/cjs/types/error/report.d.ts +5 -3
- package/lib/cjs/types/error/report.d.ts.map +1 -1
- package/lib/cjs/types/index.d.ts +1 -2
- package/lib/cjs/types/index.d.ts.map +1 -1
- package/lib/cjs/types/provider/dto-validator/dto-validator.provider.d.ts +12 -0
- package/lib/cjs/types/provider/dto-validator/dto-validator.provider.d.ts.map +1 -0
- package/lib/cjs/types/{environment/env-validator.d.ts → provider/environment/env-validator.provider.d.ts} +7 -4
- package/lib/cjs/types/provider/environment/env-validator.provider.d.ts.map +1 -0
- package/lib/cjs/types/provider/index.d.ts +5 -0
- package/lib/cjs/types/provider/index.d.ts.map +1 -0
- package/lib/cjs/types/provider/logger/logger-service.d.ts +50 -0
- package/lib/cjs/types/provider/logger/logger-service.d.ts.map +1 -0
- package/lib/cjs/types/{logger/general-logger.d.ts → provider/logger/winston-logger.d.ts} +1 -1
- package/lib/cjs/types/provider/logger/winston-logger.d.ts.map +1 -0
- package/lib/cjs/types/provider/provider-service.d.ts +31 -0
- package/lib/cjs/types/provider/provider-service.d.ts.map +1 -0
- package/lib/esm/common/color-service.provider.js +46 -0
- package/lib/esm/common/package-resolver.provider.js +35 -0
- package/lib/esm/console/console.js +10 -33
- package/lib/esm/controller/base-controller.js +0 -2
- package/lib/esm/error/report.js +15 -5
- package/lib/esm/index.mjs +1 -2
- package/lib/esm/provider/dto-validator/dto-validator.provider.js +53 -0
- package/lib/esm/{environment/env-validator.js → provider/environment/env-validator.provider.js} +17 -10
- package/lib/esm/provider/index.js +11 -0
- package/lib/esm/provider/logger/logger-service.js +115 -0
- package/lib/esm/provider/provider-service.js +38 -0
- package/lib/esm/types/common/color-service.provider.d.ts +30 -0
- package/lib/esm/types/common/color-service.provider.d.ts.map +1 -0
- package/lib/esm/types/common/package-resolver.provider.d.ts +9 -0
- package/lib/esm/types/common/package-resolver.provider.d.ts.map +1 -0
- package/lib/esm/types/console/console.d.ts +1 -1
- package/lib/esm/types/console/console.d.ts.map +1 -1
- package/lib/esm/types/controller/base-controller.d.ts.map +1 -1
- package/lib/esm/types/error/report.d.ts +5 -3
- package/lib/esm/types/error/report.d.ts.map +1 -1
- package/lib/esm/types/index.d.ts +1 -2
- package/lib/esm/types/index.d.ts.map +1 -1
- package/lib/esm/types/provider/dto-validator/dto-validator.provider.d.ts +12 -0
- package/lib/esm/types/provider/dto-validator/dto-validator.provider.d.ts.map +1 -0
- package/lib/esm/types/{environment/env-validator.d.ts → provider/environment/env-validator.provider.d.ts} +7 -4
- package/lib/esm/types/provider/environment/env-validator.provider.d.ts.map +1 -0
- package/lib/esm/types/provider/index.d.ts +5 -0
- package/lib/esm/types/provider/index.d.ts.map +1 -0
- package/lib/esm/types/provider/logger/logger-service.d.ts +50 -0
- package/lib/esm/types/provider/logger/logger-service.d.ts.map +1 -0
- package/lib/esm/types/{logger/general-logger.d.ts → provider/logger/winston-logger.d.ts} +1 -1
- package/lib/esm/types/provider/logger/winston-logger.d.ts.map +1 -0
- package/lib/esm/types/provider/provider-service.d.ts +31 -0
- package/lib/esm/types/provider/provider-service.d.ts.map +1 -0
- package/lib/package.json +2 -3
- package/package.json +2 -3
- package/lib/cjs/environment/index.js +0 -5
- package/lib/cjs/logger/index.js +0 -7
- package/lib/cjs/types/environment/env-validator.d.ts.map +0 -1
- package/lib/cjs/types/environment/index.d.ts +0 -2
- package/lib/cjs/types/environment/index.d.ts.map +0 -1
- package/lib/cjs/types/logger/general-logger.d.ts.map +0 -1
- package/lib/cjs/types/logger/index.d.ts +0 -2
- package/lib/cjs/types/logger/index.d.ts.map +0 -1
- package/lib/esm/environment/index.js +0 -5
- package/lib/esm/logger/index.js +0 -7
- package/lib/esm/types/environment/env-validator.d.ts.map +0 -1
- package/lib/esm/types/environment/index.d.ts +0 -2
- package/lib/esm/types/environment/index.d.ts.map +0 -1
- package/lib/esm/types/logger/general-logger.d.ts.map +0 -1
- package/lib/esm/types/logger/index.d.ts +0 -2
- package/lib/esm/types/logger/index.d.ts.map +0 -1
- /package/lib/cjs/{logger/general-logger.js → provider/logger/winston-logger.js} +0 -0
- /package/lib/esm/{logger/general-logger.js → provider/logger/winston-logger.js} +0 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var Logger_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.Logger = void 0;
|
|
14
|
+
const inversify_binding_decorators_1 = require("inversify-binding-decorators");
|
|
15
|
+
const color_service_provider_1 = require("../../common/color-service.provider");
|
|
16
|
+
/**
|
|
17
|
+
* Applies a specified color to a text string.
|
|
18
|
+
*
|
|
19
|
+
* @param text - The text to be colored.
|
|
20
|
+
* @param color - The color to be applied.
|
|
21
|
+
* @returns The colored text.
|
|
22
|
+
*/
|
|
23
|
+
function colorText(text, color) {
|
|
24
|
+
return `${color_service_provider_1.colorCodes[color]}${text}\x1b[0m`;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Class that provides logging functionality with colorized text.
|
|
28
|
+
*/
|
|
29
|
+
let Logger = Logger_1 = class Logger {
|
|
30
|
+
pid;
|
|
31
|
+
constructor() {
|
|
32
|
+
this.pid = process.pid;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Formats the log message with color, timestamps, and log levels.
|
|
36
|
+
*
|
|
37
|
+
* @param logLevel - The level of the log (e.g. INFO, WARN).
|
|
38
|
+
* @param message - The main log message.
|
|
39
|
+
* @param module - Optional module name.
|
|
40
|
+
* @returns The formatted log message.
|
|
41
|
+
*/
|
|
42
|
+
formatMessage(logLevel = "NONE", message, module) {
|
|
43
|
+
const localDate = new Date();
|
|
44
|
+
const options = {
|
|
45
|
+
year: "numeric",
|
|
46
|
+
month: "2-digit",
|
|
47
|
+
day: "2-digit",
|
|
48
|
+
hour: "2-digit",
|
|
49
|
+
minute: "2-digit",
|
|
50
|
+
second: "2-digit",
|
|
51
|
+
};
|
|
52
|
+
const timestamp = colorText(localDate.toLocaleString(undefined, options).replace(",", ""), "white");
|
|
53
|
+
let logColor;
|
|
54
|
+
switch (logLevel) {
|
|
55
|
+
case "INFO":
|
|
56
|
+
logColor = "blue";
|
|
57
|
+
break;
|
|
58
|
+
case "WARN":
|
|
59
|
+
logColor = "yellow";
|
|
60
|
+
break;
|
|
61
|
+
case "ERROR":
|
|
62
|
+
logColor = "red";
|
|
63
|
+
break;
|
|
64
|
+
default:
|
|
65
|
+
logColor = "none";
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
const formattedLogLevel = colorText(logLevel.padEnd(5, " "), logColor);
|
|
69
|
+
if (logLevel === "NONE") {
|
|
70
|
+
return `${colorText("[ExpressoTS]", "none")} ${timestamp} ${colorText("[PID:" + this.pid + "]", "none")} ${formattedLogLevel} [${colorText(module || "", "none")}] ${colorText(message, logColor)}\n`;
|
|
71
|
+
}
|
|
72
|
+
return `${colorText("[ExpressoTS]", "green")} ${timestamp} ${colorText("[PID:" + this.pid + "]", "green")} ${formattedLogLevel} [${colorText(module || "", "green")}] ${colorText(message, logColor)}\n`;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Logs a generic message.
|
|
76
|
+
*
|
|
77
|
+
* @param message - The message to log.
|
|
78
|
+
* @param module - Optional module name.
|
|
79
|
+
*/
|
|
80
|
+
msg(message, module) {
|
|
81
|
+
process.stdout.write(this.formatMessage("NONE", message, module));
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Logs an informational message.
|
|
85
|
+
*
|
|
86
|
+
* @param message - The message to log.
|
|
87
|
+
* @param module - Optional module name.
|
|
88
|
+
*/
|
|
89
|
+
info(message, module) {
|
|
90
|
+
process.stdout.write(this.formatMessage("INFO", message, module));
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Logs a warning message.
|
|
94
|
+
*
|
|
95
|
+
* @param message - The message to log.
|
|
96
|
+
* @param module - Optional module name.
|
|
97
|
+
*/
|
|
98
|
+
warn(message, module) {
|
|
99
|
+
process.stdout.write(this.formatMessage("WARN", message, module));
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Logs an error message.
|
|
103
|
+
*
|
|
104
|
+
* @param message - The message to log.
|
|
105
|
+
* @param module - Optional module name.
|
|
106
|
+
*/
|
|
107
|
+
error(message, module) {
|
|
108
|
+
process.stderr.write(this.formatMessage("ERROR", message, module));
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
exports.Logger = Logger;
|
|
112
|
+
exports.Logger = Logger = Logger_1 = __decorate([
|
|
113
|
+
(0, inversify_binding_decorators_1.provide)(Logger_1),
|
|
114
|
+
__metadata("design:paramtypes", [])
|
|
115
|
+
], Logger);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var Provider_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.Provider = void 0;
|
|
14
|
+
const decorator_1 = require("../decorator");
|
|
15
|
+
const logger_service_1 = require("./logger/logger-service");
|
|
16
|
+
const env_validator_provider_1 = require("./environment/env-validator.provider");
|
|
17
|
+
/**
|
|
18
|
+
* Class responsible for providing singleton instances of various services.
|
|
19
|
+
*
|
|
20
|
+
* This class implements the IProvider interface and is decorated with a
|
|
21
|
+
* singleton provider to ensure a single instance is reused.
|
|
22
|
+
*/
|
|
23
|
+
let Provider = Provider_1 = class Provider {
|
|
24
|
+
envValidator;
|
|
25
|
+
logger;
|
|
26
|
+
/**
|
|
27
|
+
* Initializes the instances of the various providers.
|
|
28
|
+
*/
|
|
29
|
+
constructor() {
|
|
30
|
+
this.envValidator = new env_validator_provider_1.EnvValidatorProvider();
|
|
31
|
+
this.logger = new logger_service_1.Logger();
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.Provider = Provider;
|
|
35
|
+
exports.Provider = Provider = Provider_1 = __decorate([
|
|
36
|
+
(0, decorator_1.provideSingleton)(Provider_1),
|
|
37
|
+
__metadata("design:paramtypes", [])
|
|
38
|
+
], Provider);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type representing supported text colors.
|
|
3
|
+
*/
|
|
4
|
+
type Color = "red" | "green" | "yellow" | "blue" | "white" | "black" | "none";
|
|
5
|
+
/**
|
|
6
|
+
* Mapping of text color codes.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* Defines the ANSI escape codes for the corresponding colors in the terminal.
|
|
10
|
+
*/
|
|
11
|
+
declare const colorCodes: Record<Color, string>;
|
|
12
|
+
/**
|
|
13
|
+
* ANSI escape color codes mapping for different background colors.
|
|
14
|
+
*/
|
|
15
|
+
declare const bgColorCodes: Record<Color, string>;
|
|
16
|
+
/**
|
|
17
|
+
* Enum representing possible color styles for console output.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Enum values correspond to the string representations of colors.
|
|
21
|
+
*/
|
|
22
|
+
declare enum ColorStyle {
|
|
23
|
+
None = "none",
|
|
24
|
+
Yellow = "yellow",
|
|
25
|
+
Blue = "blue",
|
|
26
|
+
Green = "green",
|
|
27
|
+
Red = "red"
|
|
28
|
+
}
|
|
29
|
+
export { Color, ColorStyle, colorCodes, bgColorCodes };
|
|
30
|
+
//# sourceMappingURL=color-service.provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-service.provider.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/common/color-service.provider.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,KAAK,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;AAE9E;;;;;GAKG;AACH,QAAA,MAAM,UAAU,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAQrC,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,YAAY,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAQvC,CAAC;AAEF;;;;;GAKG;AACH,aAAK,UAAU;IACb,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,GAAG,QAAQ;CACZ;AAED,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve package from the current working directory.
|
|
3
|
+
* @param packageName
|
|
4
|
+
* @param options
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
declare function packageResolver(packageName: string, ...options: Array<any>): any;
|
|
8
|
+
export { packageResolver };
|
|
9
|
+
//# sourceMappingURL=package-resolver.provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-resolver.provider.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/common/package-resolver.provider.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,iBAAS,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,GAAG,CA8BzE;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -22,7 +22,7 @@ declare class Console {
|
|
|
22
22
|
* @param environment - The server environment.
|
|
23
23
|
* @param consoleMessage - Optional application message details for console output.
|
|
24
24
|
*/
|
|
25
|
-
messageServer(port:
|
|
25
|
+
messageServer(port: number, environment: string, consoleMessage?: IApplicationMessageToConsole): Promise<void>;
|
|
26
26
|
}
|
|
27
27
|
export { Console, IApplicationMessageToConsole };
|
|
28
28
|
//# sourceMappingURL=console.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/console/console.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/console/console.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,UAAU,4BAA4B;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,cACM,OAAO;IACX;;;;OAIG;YACW,UAAU;IAWxB;;;;;OAKG;IACU,aAAa,CACxB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,cAAc,CAAC,EAAE,4BAA4B,GAC5C,OAAO,CAAC,IAAI,CAAC;CA6BjB;AAED,OAAO,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-controller.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/controller/base-controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"base-controller.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/controller/base-controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD;;;;GAIG;AACH,uBACe,cAAe,YAAW,UAAU,CAAC,UAAU;IAC5D,OAAO,CAAC,WAAW,CAAS;IAE5B;;;OAGG;gBACS,WAAW,GAAE,MAAW;IAIpC;;;;;OAKG;cACa,gBAAgB,CAC9B,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,EACrB,GAAG,EAAE,GAAG,EACR,iBAAiB,EAAE,MAAM;IAK3B;;;;;OAKG;IACH,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,iBAAiB,EAAE,MAAM;IAIvE;;;;;;;;;;OAUG;IACH,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,KAAK,GAAG,IAAI;IAI5E;;;;;;;;;;OAUG;IACH,SAAS,CAAC,kBAAkB,CAC1B,GAAG,EAAE,QAAQ,EACb,QAAQ,EAAE,MAAM,EAChB,OAAO,KAAK,GACX,OAAO,CAAC,MAAM,CAAC;CAUnB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -6,19 +6,21 @@ import { AppError } from "./app-error";
|
|
|
6
6
|
*/
|
|
7
7
|
declare class Report {
|
|
8
8
|
static stack: string;
|
|
9
|
+
private logger;
|
|
10
|
+
constructor();
|
|
9
11
|
/**
|
|
10
12
|
* The Error method is responsible for generating a standardized error object,
|
|
11
13
|
* logging the error, and then throwing it for further handling.
|
|
12
|
-
* The error thrown is of the custom type
|
|
14
|
+
* The error thrown is of the custom type AppError, which extends the built-in Error class.
|
|
13
15
|
*
|
|
14
16
|
* @param error - An instance of Error or a string that describes the error.
|
|
15
17
|
* @param statusCode - The HTTP status code associated with the error (default is 500).
|
|
16
18
|
* @param service - The service name associated with the error. If not specified,
|
|
17
19
|
* it defaults to the name of the calling function.
|
|
18
20
|
*
|
|
19
|
-
* @throws An object of the custom type
|
|
21
|
+
* @throws An object of the custom type AppError, which includes details about the error.
|
|
20
22
|
*/
|
|
21
|
-
|
|
23
|
+
error(error: Error | string, statusCode?: number, service?: string): AppError;
|
|
22
24
|
}
|
|
23
25
|
export { Report };
|
|
24
26
|
//# sourceMappingURL=report.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/error/report.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/error/report.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC;;;;GAIG;AACH,cACM,MAAM;IACV,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,MAAM,CAAS;;IAMvB;;;;;;;;;;;OAWG;IACI,KAAK,CACV,KAAK,EAAE,KAAK,GAAG,MAAM,EACrB,UAAU,CAAC,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,MAAM,GACf,QAAQ;CAgBZ;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/lib/esm/types/index.d.ts
CHANGED
|
@@ -4,8 +4,7 @@ export * from "./console";
|
|
|
4
4
|
export * from "./container-module";
|
|
5
5
|
export * from "./controller";
|
|
6
6
|
export * from "./decorator";
|
|
7
|
-
export * from "./environment";
|
|
8
7
|
export * from "./error";
|
|
9
|
-
export * from "./
|
|
8
|
+
export * from "./provider";
|
|
10
9
|
export * from "./render";
|
|
11
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/core/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/core/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "reflect-metadata";
|
|
2
|
+
import { RequestHandler } from "express";
|
|
3
|
+
/**
|
|
4
|
+
* Validate the DTO using class-validator and class-transformer.
|
|
5
|
+
* @param type - The type of the DTO to validate.
|
|
6
|
+
* @returns A RequestHandler function.
|
|
7
|
+
* @throws An exception if the DTO is invalid.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
declare function ValidateDTO<T extends object>(type: new () => T): RequestHandler;
|
|
11
|
+
export { ValidateDTO };
|
|
12
|
+
//# sourceMappingURL=dto-validator.provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dto-validator.provider.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/provider/dto-validator/dto-validator.provider.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAmC,cAAc,EAAE,MAAM,SAAS,CAAC;AAK1E;;;;;;GAMG;AACH,iBAAS,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,GAAG,cAAc,CA8CxE;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
+
type DefaultValueType = string | number | boolean | undefined;
|
|
1
2
|
/**
|
|
2
3
|
* The EnvValidatorProvider class provides utility methods for working with environment variables.
|
|
3
4
|
* It validates, loads, and retrieves environment variables from the .env file.
|
|
4
5
|
* @provide EnvValidatorProvider
|
|
5
6
|
*/
|
|
6
7
|
declare class EnvValidatorProvider {
|
|
8
|
+
private logger;
|
|
9
|
+
constructor();
|
|
7
10
|
/**
|
|
8
11
|
* Retrieves the value of an environment variable, or a default value if the variable is not set.
|
|
9
12
|
* @param key - The key of the environment variable.
|
|
10
13
|
* @param defaultValue - The default value to return if the environment variable is not set.
|
|
11
14
|
* @returns The value of the environment variable, or the default value if not set.
|
|
12
15
|
*/
|
|
13
|
-
|
|
16
|
+
get(key: string, defaultValue?: DefaultValueType): DefaultValueType;
|
|
14
17
|
/**
|
|
15
18
|
* Validates and loads all environment variables from the .env file.
|
|
16
19
|
* If the .env file does not exist or any environment variables are not set, the process will exit with an error.
|
|
17
20
|
*/
|
|
18
|
-
|
|
21
|
+
checkAll(): void;
|
|
19
22
|
}
|
|
20
23
|
declare global {
|
|
21
24
|
interface String {
|
|
@@ -24,5 +27,5 @@ declare global {
|
|
|
24
27
|
AsString(): string | undefined;
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
|
-
export { EnvValidatorProvider
|
|
28
|
-
//# sourceMappingURL=env-validator.d.ts.map
|
|
30
|
+
export { EnvValidatorProvider };
|
|
31
|
+
//# sourceMappingURL=env-validator.provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-validator.provider.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/provider/environment/env-validator.provider.ts"],"names":[],"mappings":"AAMA,KAAK,gBAAgB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAE9D;;;;GAIG;AACH,cACM,oBAAoB;IACxB,OAAO,CAAC,MAAM,CAAS;;IAMvB;;;;;OAKG;IACI,GAAG,CACR,GAAG,EAAE,MAAM,EACX,YAAY,GAAE,gBAA4B,GACzC,gBAAgB;IAInB;;;OAGG;IACI,QAAQ,IAAI,IAAI;CAoCxB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,SAAS,IAAI,OAAO,GAAG,SAAS,CAAC;QACjC,QAAQ,IAAI,MAAM,GAAG,SAAS,CAAC;QAC/B,QAAQ,IAAI,MAAM,GAAG,SAAS,CAAC;KAChC;CACF;AAyBD,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Provider, IProvider } from "./provider-service";
|
|
2
|
+
export { Logger } from "./logger/logger-service";
|
|
3
|
+
export { EnvValidatorProvider } from "./environment/env-validator.provider";
|
|
4
|
+
export { ValidateDTO } from "./dto-validator/dto-validator.provider";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the different logging levels.
|
|
3
|
+
*/
|
|
4
|
+
type LogLevel = "INFO" | "WARN" | "ERROR" | "NONE";
|
|
5
|
+
/**
|
|
6
|
+
* Class that provides logging functionality with colorized text.
|
|
7
|
+
*/
|
|
8
|
+
declare class Logger {
|
|
9
|
+
private pid;
|
|
10
|
+
constructor();
|
|
11
|
+
/**
|
|
12
|
+
* Formats the log message with color, timestamps, and log levels.
|
|
13
|
+
*
|
|
14
|
+
* @param logLevel - The level of the log (e.g. INFO, WARN).
|
|
15
|
+
* @param message - The main log message.
|
|
16
|
+
* @param module - Optional module name.
|
|
17
|
+
* @returns The formatted log message.
|
|
18
|
+
*/
|
|
19
|
+
protected formatMessage(logLevel: LogLevel, message: string, module?: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* Logs a generic message.
|
|
22
|
+
*
|
|
23
|
+
* @param message - The message to log.
|
|
24
|
+
* @param module - Optional module name.
|
|
25
|
+
*/
|
|
26
|
+
msg(message: string, module?: string): void;
|
|
27
|
+
/**
|
|
28
|
+
* Logs an informational message.
|
|
29
|
+
*
|
|
30
|
+
* @param message - The message to log.
|
|
31
|
+
* @param module - Optional module name.
|
|
32
|
+
*/
|
|
33
|
+
info(message: string, module?: string): void;
|
|
34
|
+
/**
|
|
35
|
+
* Logs a warning message.
|
|
36
|
+
*
|
|
37
|
+
* @param message - The message to log.
|
|
38
|
+
* @param module - Optional module name.
|
|
39
|
+
*/
|
|
40
|
+
warn(message: string, module?: string): void;
|
|
41
|
+
/**
|
|
42
|
+
* Logs an error message.
|
|
43
|
+
*
|
|
44
|
+
* @param message - The message to log.
|
|
45
|
+
* @param module - Optional module name.
|
|
46
|
+
*/
|
|
47
|
+
error(message: string, module?: string): void;
|
|
48
|
+
}
|
|
49
|
+
export { Logger, LogLevel };
|
|
50
|
+
//# sourceMappingURL=logger-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger-service.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/provider/logger/logger-service.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAanD;;GAEG;AACH,cACM,MAAM;IACV,OAAO,CAAC,GAAG,CAAS;;IAMpB;;;;;;;OAOG;IACH,SAAS,CAAC,aAAa,CACrB,QAAQ,EAAE,QAAiB,EAC3B,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,MAAM,GACd,MAAM;IAqDT;;;;;OAKG;IACI,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAIlD;;;;;OAKG;IACI,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAInD;;;;;OAKG;IACI,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAInD;;;;;OAKG;IACI,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;CAGrD;AAED,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -43,4 +43,4 @@ declare class GeneralLogger {
|
|
|
43
43
|
}
|
|
44
44
|
declare const log: (logLevel: LogLevel, content: Error | string, service?: string) => void;
|
|
45
45
|
export { LogLevel, GeneralLogger, log };
|
|
46
|
-
//# sourceMappingURL=
|
|
46
|
+
//# sourceMappingURL=winston-logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"winston-logger.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/provider/logger/winston-logger.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,aAAK,QAAQ;IACX,KAAK,IAAA;IACL,KAAK,IAAA;IACL,IAAI,IAAA;CACL;AAED;;GAEG;AACH,cACM,aAAa;IACjB,OAAO,CAAC,MAAM,CAAS;;IAMvB;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAY9B;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAcrC;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAoB3B;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAYtB;;;;;OAKG;IACI,GAAG,CACR,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,KAAK,GAAG,MAAM,EACvB,OAAO,CAAC,EAAE,MAAM,GACf,IAAI;CAyBR;AAGD,QAAA,MAAM,GAAG,aA/BK,QAAQ,WACT,KAAK,GAAG,MAAM,YACb,MAAM,KACf,IA4BwB,CAAC;AAE9B,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Logger } from "./logger/logger-service";
|
|
2
|
+
import { EnvValidatorProvider } from "./environment/env-validator.provider";
|
|
3
|
+
/**
|
|
4
|
+
* Interface defining the methods for the Provider class.
|
|
5
|
+
*/
|
|
6
|
+
interface IProvider {
|
|
7
|
+
/**
|
|
8
|
+
* Returns an instance of the `EnvValidatorProvider`.
|
|
9
|
+
*/
|
|
10
|
+
envValidator: EnvValidatorProvider;
|
|
11
|
+
/**
|
|
12
|
+
* Returns an instance of the `Logger`.
|
|
13
|
+
*/
|
|
14
|
+
logger: Logger;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Class responsible for providing singleton instances of various services.
|
|
18
|
+
*
|
|
19
|
+
* This class implements the IProvider interface and is decorated with a
|
|
20
|
+
* singleton provider to ensure a single instance is reused.
|
|
21
|
+
*/
|
|
22
|
+
declare class Provider implements IProvider {
|
|
23
|
+
envValidator: EnvValidatorProvider;
|
|
24
|
+
logger: Logger;
|
|
25
|
+
/**
|
|
26
|
+
* Initializes the instances of the various providers.
|
|
27
|
+
*/
|
|
28
|
+
constructor();
|
|
29
|
+
}
|
|
30
|
+
export { IProvider, Provider };
|
|
31
|
+
//# sourceMappingURL=provider-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-service.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/provider/provider-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAE5E;;GAEG;AACH,UAAU,SAAS;IACjB;;OAEG;IACH,YAAY,EAAE,oBAAoB,CAAC;IAEnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,cACM,QAAS,YAAW,SAAS;IACjC,YAAY,EAAE,oBAAoB,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;;CAKJ;AAED,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC"}
|
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expressots/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Expressots - modern, fast, lightweight nodejs web framework (@core)",
|
|
5
5
|
"author": "Richard Zampieri",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -68,7 +68,6 @@
|
|
|
68
68
|
"lint:fix": "eslint \"packages/**/*.ts\" --fix"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"chalk": "^4.1.2",
|
|
72
71
|
"dotenv": "^16.0.3",
|
|
73
72
|
"express": "^4.18.2",
|
|
74
73
|
"inversify": "^6.0.1",
|
|
@@ -94,7 +93,7 @@
|
|
|
94
93
|
"ts-jest": "^29.0.5",
|
|
95
94
|
"typescript": "^5.0.3",
|
|
96
95
|
"vite": "4.4.9",
|
|
97
|
-
"vitest": "0.34.
|
|
96
|
+
"vitest": "0.34.4"
|
|
98
97
|
},
|
|
99
98
|
"release-it": {
|
|
100
99
|
"git": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expressots/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Expressots - modern, fast, lightweight nodejs web framework (@core)",
|
|
5
5
|
"author": "Richard Zampieri",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -68,7 +68,6 @@
|
|
|
68
68
|
"lint:fix": "eslint \"packages/**/*.ts\" --fix"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"chalk": "^4.1.2",
|
|
72
71
|
"dotenv": "^16.0.3",
|
|
73
72
|
"express": "^4.18.2",
|
|
74
73
|
"inversify": "^6.0.1",
|
|
@@ -94,7 +93,7 @@
|
|
|
94
93
|
"ts-jest": "^29.0.5",
|
|
95
94
|
"typescript": "^5.0.3",
|
|
96
95
|
"vite": "4.4.9",
|
|
97
|
-
"vitest": "0.34.
|
|
96
|
+
"vitest": "0.34.4"
|
|
98
97
|
},
|
|
99
98
|
"release-it": {
|
|
100
99
|
"git": {
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Environments = void 0;
|
|
4
|
-
var env_validator_1 = require("./env-validator");
|
|
5
|
-
Object.defineProperty(exports, "Environments", { enumerable: true, get: function () { return env_validator_1.Environments; } });
|
package/lib/cjs/logger/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.log = exports.LogLevel = exports.GeneralLogger = void 0;
|
|
4
|
-
var general_logger_1 = require("./general-logger");
|
|
5
|
-
Object.defineProperty(exports, "GeneralLogger", { enumerable: true, get: function () { return general_logger_1.GeneralLogger; } });
|
|
6
|
-
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return general_logger_1.LogLevel; } });
|
|
7
|
-
Object.defineProperty(exports, "log", { enumerable: true, get: function () { return general_logger_1.log; } });
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env-validator.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/environment/env-validator.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,cACM,oBAAoB;IACxB;;;;;OAKG;WAEW,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,GAAE,GAAe,GAAG,GAAG;IAIlE;;;OAGG;WACW,QAAQ,IAAI,IAAI;CAsC/B;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,SAAS,IAAI,OAAO,GAAG,SAAS,CAAC;QACjC,QAAQ,IAAI,MAAM,GAAG,SAAS,CAAC;QAC/B,QAAQ,IAAI,MAAM,GAAG,SAAS,CAAC;KAChC;CACF;AAyBD,OAAO,EAAE,oBAAoB,IAAI,YAAY,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/environment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"general-logger.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/logger/general-logger.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,aAAK,QAAQ;IACX,KAAK,IAAA;IACL,KAAK,IAAA;IACL,IAAI,IAAA;CACL;AAED;;GAEG;AACH,cACM,aAAa;IACjB,OAAO,CAAC,MAAM,CAAS;;IAMvB;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAY9B;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAcrC;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAoB3B;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAYtB;;;;;OAKG;IACI,GAAG,CACR,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,KAAK,GAAG,MAAM,EACvB,OAAO,CAAC,EAAE,MAAM,GACf,IAAI;CAyBR;AAGD,QAAA,MAAM,GAAG,aA/BK,QAAQ,WACT,KAAK,GAAG,MAAM,YACb,MAAM,KACf,IA4BwB,CAAC;AAE9B,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/logger/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Environments = void 0;
|
|
4
|
-
var env_validator_1 = require("./env-validator");
|
|
5
|
-
Object.defineProperty(exports, "Environments", { enumerable: true, get: function () { return env_validator_1.Environments; } });
|
package/lib/esm/logger/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.log = exports.LogLevel = exports.GeneralLogger = void 0;
|
|
4
|
-
var general_logger_1 = require("./general-logger");
|
|
5
|
-
Object.defineProperty(exports, "GeneralLogger", { enumerable: true, get: function () { return general_logger_1.GeneralLogger; } });
|
|
6
|
-
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return general_logger_1.LogLevel; } });
|
|
7
|
-
Object.defineProperty(exports, "log", { enumerable: true, get: function () { return general_logger_1.log; } });
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env-validator.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/environment/env-validator.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,cACM,oBAAoB;IACxB;;;;;OAKG;WAEW,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,GAAE,GAAe,GAAG,GAAG;IAIlE;;;OAGG;WACW,QAAQ,IAAI,IAAI;CAsC/B;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,SAAS,IAAI,OAAO,GAAG,SAAS,CAAC;QACjC,QAAQ,IAAI,MAAM,GAAG,SAAS,CAAC;QAC/B,QAAQ,IAAI,MAAM,GAAG,SAAS,CAAC;KAChC;CACF;AAyBD,OAAO,EAAE,oBAAoB,IAAI,YAAY,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/environment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"general-logger.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/logger/general-logger.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,aAAK,QAAQ;IACX,KAAK,IAAA;IACL,KAAK,IAAA;IACL,IAAI,IAAA;CACL;AAED;;GAEG;AACH,cACM,aAAa;IACjB,OAAO,CAAC,MAAM,CAAS;;IAMvB;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAY9B;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAcrC;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAoB3B;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAYtB;;;;;OAKG;IACI,GAAG,CACR,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,KAAK,GAAG,MAAM,EACvB,OAAO,CAAC,EAAE,MAAM,GACf,IAAI;CAyBR;AAGD,QAAA,MAAM,GAAG,aA/BK,QAAQ,WACT,KAAK,GAAG,MAAM,YACb,MAAM,KACf,IA4BwB,CAAC;AAE9B,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/logger/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC"}
|
|
File without changes
|
|
File without changes
|