@expressots/core 1.5.0 → 1.6.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/LICENSE.md +21 -21
- package/README.md +61 -61
- package/lib/CHANGELOG.md +219 -196
- package/lib/README.md +61 -61
- package/lib/cjs/application/app-container.js +2 -2
- package/lib/cjs/application/application.js +9 -9
- package/lib/cjs/console/console.js +2 -2
- package/lib/cjs/controller/base-controller.js +12 -12
- package/lib/cjs/environment/env-validator.js +15 -13
- package/lib/cjs/error/error-handler-middleware.js +3 -1
- package/lib/cjs/error/report.js +4 -4
- package/lib/cjs/logger/general-logger.js +8 -9
- package/lib/cjs/types/application/app-container.d.ts.map +1 -1
- package/lib/cjs/types/application/application.d.ts.map +1 -1
- package/lib/cjs/types/application/index.d.ts +2 -2
- package/lib/cjs/types/common/project-config.provider.d.ts +27 -1
- package/lib/cjs/types/common/project-config.provider.d.ts.map +1 -1
- package/lib/cjs/types/console/console.d.ts.map +1 -1
- package/lib/cjs/types/container-module/container-module.d.ts.map +1 -1
- package/lib/cjs/types/container-module/index.d.ts.map +1 -1
- package/lib/cjs/types/controller/base-controller.d.ts +12 -12
- package/lib/cjs/types/controller/base-controller.d.ts.map +1 -1
- package/lib/cjs/types/controller/index.d.ts +1 -1
- package/lib/cjs/types/environment/env-validator.d.ts.map +1 -1
- package/lib/cjs/types/environment/index.d.ts +1 -1
- package/lib/cjs/types/error/error-handler-middleware.d.ts.map +1 -1
- package/lib/cjs/types/error/index.d.ts +2 -2
- package/lib/cjs/types/error/report.d.ts.map +1 -1
- package/lib/cjs/types/error/status-code.d.ts.map +1 -1
- package/lib/cjs/types/logger/general-logger.d.ts.map +1 -1
- package/lib/cjs/types/logger/index.d.ts +1 -1
- package/lib/cjs/types/render/handlebars.interface.d.ts.map +1 -1
- package/lib/esm/application/app-container.js +1 -1
- package/lib/esm/application/application.js +6 -5
- package/lib/esm/application/index.js +2 -2
- package/lib/esm/controller/base-controller.js +12 -12
- package/lib/esm/controller/index.js +1 -1
- package/lib/esm/environment/env-validator.js +14 -12
- package/lib/esm/environment/index.js +1 -1
- package/lib/esm/error/error-handler-middleware.js +3 -1
- package/lib/esm/error/index.js +2 -2
- package/lib/esm/error/report.js +5 -4
- package/lib/esm/error/status-code.js +7 -1
- package/lib/esm/logger/general-logger.js +6 -6
- package/lib/esm/logger/index.js +1 -1
- package/lib/esm/types/application/app-container.d.ts.map +1 -1
- package/lib/esm/types/application/application.d.ts.map +1 -1
- package/lib/esm/types/application/index.d.ts +2 -2
- package/lib/esm/types/common/project-config.provider.d.ts +27 -1
- package/lib/esm/types/common/project-config.provider.d.ts.map +1 -1
- package/lib/esm/types/console/console.d.ts.map +1 -1
- package/lib/esm/types/container-module/container-module.d.ts.map +1 -1
- package/lib/esm/types/container-module/index.d.ts.map +1 -1
- package/lib/esm/types/controller/base-controller.d.ts +12 -12
- package/lib/esm/types/controller/base-controller.d.ts.map +1 -1
- package/lib/esm/types/controller/index.d.ts +1 -1
- package/lib/esm/types/environment/env-validator.d.ts.map +1 -1
- package/lib/esm/types/environment/index.d.ts +1 -1
- package/lib/esm/types/error/error-handler-middleware.d.ts.map +1 -1
- package/lib/esm/types/error/index.d.ts +2 -2
- package/lib/esm/types/error/report.d.ts.map +1 -1
- package/lib/esm/types/error/status-code.d.ts.map +1 -1
- package/lib/esm/types/logger/general-logger.d.ts.map +1 -1
- package/lib/esm/types/logger/index.d.ts +1 -1
- package/lib/esm/types/render/handlebars.interface.d.ts.map +1 -1
- package/lib/package.json +4 -2
- package/package.json +4 -2
package/lib/README.md
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<a href="https://expresso-ts.com/" target="blank"><img src="https://github.com/expressots/expressots/blob/main/media/expressots.png" width="120" alt="Expresso TS Logo" /></a>
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
# Expresso TS
|
|
6
|
-
|
|
7
|
-
A Typescript + [Node.js]("https://nodejs.org/en/") lightweight framework for quick building scalable, easy to read and maintain, server-side applications 🚀
|
|
8
|
-
|
|
9
|
-
## Philosophy
|
|
10
|
-
|
|
11
|
-
ExpressoTS is a developer-friendly framework designed to streamline the process of building server-side applications. With a focus on readability, maintainability, and scalability, ExpressoTS aims to simplify the development process by providing a clear and concise structure.
|
|
12
|
-
|
|
13
|
-
Gone are the days of tedious setup tasks such as configuring logging systems, handling authentication, and connecting to databases. With ExpressoTS, developers can focus on what really matters - writing code. The framework takes care of the repetitive and time-consuming aspects of development, allowing developers to work more efficiently.
|
|
14
|
-
|
|
15
|
-
One of the key features of Expresso TS is its flexible and extensible architecture. The framework provides a simple but powerful dependency injection system that enables developers to quickly and easily extend its functionality by creating and adding providers. This allows developers to seamlessly integrate new features throughout the entire application without having to worry about the complexities of integration.
|
|
16
|
-
|
|
17
|
-
Whether you're building a simple API or a complex enterprise application, Expresso TS can help you deliver your project on time and on budget. With a comprehensive set of tools and features, Expresso TS makes it easy to build high-quality, scalable, and maintainable server-side applications.
|
|
18
|
-
|
|
19
|
-
## Getting Started
|
|
20
|
-
|
|
21
|
-
- Here is our [Official Documentation](https://expresso-ts.com/)
|
|
22
|
-
- Checkout our [First Steps documentation](https://expresso-ts.com/docs/overview/first-steps)
|
|
23
|
-
- Our [CLI Documentation](https://expresso-ts.com/docs/category/cli)
|
|
24
|
-
|
|
25
|
-
## Questions
|
|
26
|
-
|
|
27
|
-
For questions and support please use the Official [Discord Channel](https://discord.com/invite/PyPJfGK). We have a very active community there, that will be happy to help you. Post your questions in the channel called **HELP EXPRESSO TS** and forum called **help**.
|
|
28
|
-
|
|
29
|
-
## Issues
|
|
30
|
-
|
|
31
|
-
The [Issue Reporting Channel](https://github.com/expressots/expressots/issues) is for bug report and feature request **only**.
|
|
32
|
-
|
|
33
|
-
Before you create an issue, please make sure you read the [Contribution Guidelines](CONTRIBUTING.md).
|
|
34
|
-
|
|
35
|
-
## Support the project
|
|
36
|
-
|
|
37
|
-
Expresso TS is an MIT-licensed open source project. It's an independent project with ongoing development made possible thanks to your support. If you'd like to help, please consider:
|
|
38
|
-
|
|
39
|
-
- Become a sponsor on **[Sponsor no GitHub](https://github.com/sponsors/expressots)**
|
|
40
|
-
- Follow the **[organization](https://github.com/expressots)** on GitHub and Star ⭐ the project
|
|
41
|
-
- Subscribe to the Twitch channel: **[Richard Zampieri](https://www.twitch.tv/richardzampieri)**
|
|
42
|
-
- Join our **[Discord](https://discord.com/invite/PyPJfGK)**
|
|
43
|
-
- Contribute submitting **[issues and pull requests](https://github.com/expressots/expressots/issues/new/choose)**
|
|
44
|
-
- Share the project with your friends and colleagues
|
|
45
|
-
|
|
46
|
-
## Contributors
|
|
47
|
-
|
|
48
|
-
- [Daniel Boll](https://github.com/daniel-boll)
|
|
49
|
-
- [Felipe Fontana](https://github.com/f0ntana)
|
|
50
|
-
- [Juliano Soares](https://github.com/juliano-soares)
|
|
51
|
-
- [Vitor Caminha](https://github.com/VitorCaminha)
|
|
52
|
-
- [Ariel Betti](https://github.com/ArielBetti)
|
|
53
|
-
- [Rodrigo da Hora](https://github.com/dahorarodrigo)
|
|
54
|
-
|
|
55
|
-
## Backers
|
|
56
|
-
|
|
57
|
-
- Work in progress
|
|
58
|
-
|
|
59
|
-
## License
|
|
60
|
-
|
|
61
|
-
ExpressoTS is **[MIT licensed](LICENSE.md)**
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://expresso-ts.com/" target="blank"><img src="https://github.com/expressots/expressots/blob/main/media/expressots.png" width="120" alt="Expresso TS Logo" /></a>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# Expresso TS
|
|
6
|
+
|
|
7
|
+
A Typescript + [Node.js]("https://nodejs.org/en/") lightweight framework for quick building scalable, easy to read and maintain, server-side applications 🚀
|
|
8
|
+
|
|
9
|
+
## Philosophy
|
|
10
|
+
|
|
11
|
+
ExpressoTS is a developer-friendly framework designed to streamline the process of building server-side applications. With a focus on readability, maintainability, and scalability, ExpressoTS aims to simplify the development process by providing a clear and concise structure.
|
|
12
|
+
|
|
13
|
+
Gone are the days of tedious setup tasks such as configuring logging systems, handling authentication, and connecting to databases. With ExpressoTS, developers can focus on what really matters - writing code. The framework takes care of the repetitive and time-consuming aspects of development, allowing developers to work more efficiently.
|
|
14
|
+
|
|
15
|
+
One of the key features of Expresso TS is its flexible and extensible architecture. The framework provides a simple but powerful dependency injection system that enables developers to quickly and easily extend its functionality by creating and adding providers. This allows developers to seamlessly integrate new features throughout the entire application without having to worry about the complexities of integration.
|
|
16
|
+
|
|
17
|
+
Whether you're building a simple API or a complex enterprise application, Expresso TS can help you deliver your project on time and on budget. With a comprehensive set of tools and features, Expresso TS makes it easy to build high-quality, scalable, and maintainable server-side applications.
|
|
18
|
+
|
|
19
|
+
## Getting Started
|
|
20
|
+
|
|
21
|
+
- Here is our [Official Documentation](https://expresso-ts.com/)
|
|
22
|
+
- Checkout our [First Steps documentation](https://doc.expresso-ts.com/docs/overview/first-steps)
|
|
23
|
+
- Our [CLI Documentation](https://doc.expresso-ts.com/docs/category/cli)
|
|
24
|
+
|
|
25
|
+
## Questions
|
|
26
|
+
|
|
27
|
+
For questions and support please use the Official [Discord Channel](https://discord.com/invite/PyPJfGK). We have a very active community there, that will be happy to help you. Post your questions in the channel called **HELP EXPRESSO TS** and forum called **help**.
|
|
28
|
+
|
|
29
|
+
## Issues
|
|
30
|
+
|
|
31
|
+
The [Issue Reporting Channel](https://github.com/expressots/expressots/issues) is for bug report and feature request **only**.
|
|
32
|
+
|
|
33
|
+
Before you create an issue, please make sure you read the [Contribution Guidelines](CONTRIBUTING.md).
|
|
34
|
+
|
|
35
|
+
## Support the project
|
|
36
|
+
|
|
37
|
+
Expresso TS is an MIT-licensed open source project. It's an independent project with ongoing development made possible thanks to your support. If you'd like to help, please consider:
|
|
38
|
+
|
|
39
|
+
- Become a sponsor on **[Sponsor no GitHub](https://github.com/sponsors/expressots)**
|
|
40
|
+
- Follow the **[organization](https://github.com/expressots)** on GitHub and Star ⭐ the project
|
|
41
|
+
- Subscribe to the Twitch channel: **[Richard Zampieri](https://www.twitch.tv/richardzampieri)**
|
|
42
|
+
- Join our **[Discord](https://discord.com/invite/PyPJfGK)**
|
|
43
|
+
- Contribute submitting **[issues and pull requests](https://github.com/expressots/expressots/issues/new/choose)**
|
|
44
|
+
- Share the project with your friends and colleagues
|
|
45
|
+
|
|
46
|
+
## Contributors
|
|
47
|
+
|
|
48
|
+
- [Daniel Boll](https://github.com/daniel-boll)
|
|
49
|
+
- [Felipe Fontana](https://github.com/f0ntana)
|
|
50
|
+
- [Juliano Soares](https://github.com/juliano-soares)
|
|
51
|
+
- [Vitor Caminha](https://github.com/VitorCaminha)
|
|
52
|
+
- [Ariel Betti](https://github.com/ArielBetti)
|
|
53
|
+
- [Rodrigo da Hora](https://github.com/dahorarodrigo)
|
|
54
|
+
|
|
55
|
+
## Backers
|
|
56
|
+
|
|
57
|
+
- Work in progress
|
|
58
|
+
|
|
59
|
+
## License
|
|
60
|
+
|
|
61
|
+
ExpressoTS is **[MIT licensed](LICENSE.md)**
|
|
@@ -51,7 +51,7 @@ let AppContainer = AppContainer_1 = class AppContainer {
|
|
|
51
51
|
return this.container;
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
AppContainer =
|
|
54
|
+
exports.AppContainer = AppContainer;
|
|
55
|
+
exports.AppContainer = AppContainer = AppContainer_1 = __decorate([
|
|
55
56
|
(0, inversify_binding_decorators_1.provide)(AppContainer_1)
|
|
56
57
|
], AppContainer);
|
|
57
|
-
exports.AppContainer = AppContainer;
|
|
@@ -14,12 +14,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
var Application_1;
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ServerEnvironment = exports.Application = exports.AppInstance = void 0;
|
|
17
|
-
const express_1 = __importDefault(require("express"));
|
|
18
17
|
const process_1 = __importDefault(require("process"));
|
|
19
|
-
const
|
|
18
|
+
const express_1 = __importDefault(require("express"));
|
|
20
19
|
const inversify_binding_decorators_1 = require("inversify-binding-decorators");
|
|
21
20
|
const inversify_express_utils_1 = require("inversify-express-utils");
|
|
22
21
|
const console_1 = require("../console/console");
|
|
22
|
+
const error_handler_middleware_1 = __importDefault(require("../error/error-handler-middleware"));
|
|
23
23
|
/**
|
|
24
24
|
* Enum representing possible server environments.
|
|
25
25
|
*/
|
|
@@ -28,8 +28,7 @@ var ServerEnvironment;
|
|
|
28
28
|
ServerEnvironment["Development"] = "development";
|
|
29
29
|
ServerEnvironment["Staging"] = "staging";
|
|
30
30
|
ServerEnvironment["Production"] = "production";
|
|
31
|
-
})(ServerEnvironment || (ServerEnvironment = {}));
|
|
32
|
-
exports.ServerEnvironment = ServerEnvironment;
|
|
31
|
+
})(ServerEnvironment || (exports.ServerEnvironment = ServerEnvironment = {}));
|
|
33
32
|
/**
|
|
34
33
|
* The Application class provides a way to configure and manage an Express application.
|
|
35
34
|
* @provide Application
|
|
@@ -64,9 +63,10 @@ let Application = Application_1 = class Application {
|
|
|
64
63
|
const expressServer = new inversify_express_utils_1.InversifyExpressServer(container);
|
|
65
64
|
expressServer.setConfig((app) => {
|
|
66
65
|
// Detect if a middleware in the array has a body parser. If so, replace the default body parser.
|
|
67
|
-
const hasCustomBodyParser = middlewares.some(middleware => {
|
|
66
|
+
const hasCustomBodyParser = middlewares.some((middleware) => {
|
|
68
67
|
const middlewareName = middleware.name.toLowerCase();
|
|
69
|
-
return middlewareName.includes("json") ||
|
|
68
|
+
return (middlewareName.includes("json") ||
|
|
69
|
+
middlewareName.includes("urlencoded"));
|
|
70
70
|
});
|
|
71
71
|
if (!hasCustomBodyParser) {
|
|
72
72
|
/* Default body parser application/json */
|
|
@@ -74,7 +74,7 @@ let Application = Application_1 = class Application {
|
|
|
74
74
|
/* Default body parser application/x-www-form-urlencoded */
|
|
75
75
|
app.use(express_1.default.urlencoded({ extended: true }));
|
|
76
76
|
}
|
|
77
|
-
middlewares.forEach(middleware => {
|
|
77
|
+
middlewares.forEach((middleware) => {
|
|
78
78
|
app.use(middleware);
|
|
79
79
|
});
|
|
80
80
|
});
|
|
@@ -118,10 +118,10 @@ let Application = Application_1 = class Application {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
|
-
Application =
|
|
121
|
+
exports.Application = Application;
|
|
122
|
+
exports.Application = Application = Application_1 = __decorate([
|
|
122
123
|
(0, inversify_binding_decorators_1.provide)(Application_1),
|
|
123
124
|
__metadata("design:paramtypes", [])
|
|
124
125
|
], Application);
|
|
125
|
-
exports.Application = Application;
|
|
126
126
|
const appServerInstance = new Application();
|
|
127
127
|
exports.AppInstance = appServerInstance;
|
|
@@ -89,7 +89,7 @@ let Console = Console_1 = class Console {
|
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
|
-
Console =
|
|
92
|
+
exports.Console = Console;
|
|
93
|
+
exports.Console = Console = Console_1 = __decorate([
|
|
93
94
|
(0, inversify_binding_decorators_1.provide)(Console_1)
|
|
94
95
|
], Console);
|
|
95
|
-
exports.Console = Console;
|
|
@@ -56,16 +56,16 @@ let BaseController = BaseController_1 = class BaseController {
|
|
|
56
56
|
return res.status(successStatusCode).json(useCase);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
59
|
+
* Synchronously renders a template with the given options using the Express `Response` object's render method.
|
|
60
|
+
*
|
|
61
|
+
* @protected
|
|
62
|
+
* @method callUseRender
|
|
63
|
+
*
|
|
64
|
+
* @param {Response} res - The Express `Response` object.
|
|
65
|
+
* @param {string} template - The name of the template to render.
|
|
66
|
+
* @param {Object} [options={}] - An optional object containing data to be passed to the template.
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
69
|
callUseRender(res, template, options = {}) {
|
|
70
70
|
return res.render(template, options);
|
|
71
71
|
}
|
|
@@ -92,8 +92,8 @@ let BaseController = BaseController_1 = class BaseController {
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
|
-
BaseController =
|
|
95
|
+
exports.BaseController = BaseController;
|
|
96
|
+
exports.BaseController = BaseController = BaseController_1 = __decorate([
|
|
96
97
|
(0, inversify_binding_decorators_1.provide)(BaseController_1),
|
|
97
98
|
__metadata("design:paramtypes", [String])
|
|
98
99
|
], BaseController);
|
|
99
|
-
exports.BaseController = BaseController;
|
|
@@ -37,23 +37,25 @@ let EnvValidatorProvider = EnvValidatorProvider_1 = class EnvValidatorProvider {
|
|
|
37
37
|
* If the .env file does not exist or any environment variables are not set, the process will exit with an error.
|
|
38
38
|
*/
|
|
39
39
|
static checkAll() {
|
|
40
|
-
|
|
41
|
-
dotenv_1.default.config();
|
|
42
|
-
/* Verify if .env file exists */
|
|
40
|
+
// Get the full path of the .env file
|
|
43
41
|
const envFilePath = path_1.default.join(process.cwd(), ".", ".env");
|
|
42
|
+
// Check if the .env file exists
|
|
44
43
|
if (!fs_1.default.existsSync(envFilePath)) {
|
|
45
44
|
(0, logger_1.log)(logger_1.LogLevel.Info, "Environment file .env is not defined.", "env-validator-provider");
|
|
46
45
|
process.exit(1);
|
|
47
46
|
}
|
|
48
|
-
|
|
47
|
+
// Load the environment variables from the .env file
|
|
48
|
+
const dotenvConfigOutput = dotenv_1.default.config({ path: envFilePath });
|
|
49
|
+
const dotEnvParsed = dotenvConfigOutput.parsed;
|
|
50
|
+
/* Verify if all environment variables are defined */
|
|
49
51
|
let hasError = false;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
if (dotEnvParsed) {
|
|
53
|
+
for (const key of Object.keys(dotEnvParsed)) {
|
|
54
|
+
// Check if the environment variable is not defined or is an empty string
|
|
55
|
+
if (!process.env[key] || process.env[key] === "") {
|
|
56
|
+
(0, logger_1.log)(logger_1.LogLevel.Info, `Environment variable ${key} is not defined.`, "env-validator-provider");
|
|
57
|
+
hasError = true;
|
|
58
|
+
}
|
|
57
59
|
}
|
|
58
60
|
}
|
|
59
61
|
if (hasError) {
|
|
@@ -61,10 +63,10 @@ let EnvValidatorProvider = EnvValidatorProvider_1 = class EnvValidatorProvider {
|
|
|
61
63
|
}
|
|
62
64
|
}
|
|
63
65
|
};
|
|
64
|
-
|
|
66
|
+
exports.Environments = EnvValidatorProvider;
|
|
67
|
+
exports.Environments = EnvValidatorProvider = EnvValidatorProvider_1 = __decorate([
|
|
65
68
|
(0, inversify_binding_decorators_1.provide)(EnvValidatorProvider_1)
|
|
66
69
|
], EnvValidatorProvider);
|
|
67
|
-
exports.Environments = EnvValidatorProvider;
|
|
68
70
|
String.prototype.AsBoolean = function () {
|
|
69
71
|
switch (this.toLowerCase().trim()) {
|
|
70
72
|
case "true":
|
|
@@ -10,6 +10,8 @@ const status_code_1 = require("./status-code");
|
|
|
10
10
|
* @param next - The Express next function for passing control to the next middleware function.
|
|
11
11
|
*/
|
|
12
12
|
function errorHandler(error, req, res, next) {
|
|
13
|
-
res
|
|
13
|
+
res
|
|
14
|
+
.status(error.statusCode || status_code_1.StatusCode.InternalServerError)
|
|
15
|
+
.json({ statusCode: error.statusCode, error: error.message });
|
|
14
16
|
}
|
|
15
17
|
exports.default = errorHandler;
|
package/lib/cjs/error/report.js
CHANGED
|
@@ -39,7 +39,7 @@ let Report = Report_1 = class Report {
|
|
|
39
39
|
message: error.message,
|
|
40
40
|
service: service !== null && service !== void 0 ? service : callerName,
|
|
41
41
|
name: error.name,
|
|
42
|
-
stack: error.stack
|
|
42
|
+
stack: error.stack,
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
@@ -48,14 +48,14 @@ let Report = Report_1 = class Report {
|
|
|
48
48
|
message: error,
|
|
49
49
|
service: service !== null && service !== void 0 ? service : callerName,
|
|
50
50
|
name: this.Error.name,
|
|
51
|
-
stack: this.stack
|
|
51
|
+
stack: this.stack,
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
(0, logger_1.log)(logger_1.LogLevel.Error, appError, appError.service || "service-undefined");
|
|
55
55
|
throw appError;
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
Report =
|
|
58
|
+
exports.Report = Report;
|
|
59
|
+
exports.Report = Report = Report_1 = __decorate([
|
|
59
60
|
(0, inversify_binding_decorators_1.provide)(Report_1)
|
|
60
61
|
], Report);
|
|
61
|
-
exports.Report = Report;
|
|
@@ -14,9 +14,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
var GeneralLogger_1;
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.log = exports.GeneralLogger = exports.LogLevel = void 0;
|
|
17
|
+
const inversify_binding_decorators_1 = require("inversify-binding-decorators");
|
|
17
18
|
const winston_1 = require("winston");
|
|
18
19
|
const winston_daily_rotate_file_1 = __importDefault(require("winston-daily-rotate-file"));
|
|
19
|
-
const inversify_binding_decorators_1 = require("inversify-binding-decorators");
|
|
20
20
|
/**
|
|
21
21
|
* LogLevel enumeration defines the available log levels.
|
|
22
22
|
*/
|
|
@@ -25,8 +25,7 @@ var LogLevel;
|
|
|
25
25
|
LogLevel[LogLevel["Debug"] = 0] = "Debug";
|
|
26
26
|
LogLevel[LogLevel["Error"] = 1] = "Error";
|
|
27
27
|
LogLevel[LogLevel["Info"] = 2] = "Info";
|
|
28
|
-
})(LogLevel || (LogLevel = {}));
|
|
29
|
-
exports.LogLevel = LogLevel;
|
|
28
|
+
})(LogLevel || (exports.LogLevel = LogLevel = {}));
|
|
30
29
|
/**
|
|
31
30
|
* GeneralLogger class is a utility class to manage logging within the application.
|
|
32
31
|
*/
|
|
@@ -42,7 +41,7 @@ let GeneralLogger = GeneralLogger_1 = class GeneralLogger {
|
|
|
42
41
|
const consoleTransport = new winston_1.transports.Console({
|
|
43
42
|
level: (process.env.ENVIRONMENT !== "Development" && "debug") || "debug",
|
|
44
43
|
handleExceptions: false,
|
|
45
|
-
handleRejections: true
|
|
44
|
+
handleRejections: true,
|
|
46
45
|
});
|
|
47
46
|
return consoleTransport;
|
|
48
47
|
}
|
|
@@ -58,7 +57,7 @@ let GeneralLogger = GeneralLogger_1 = class GeneralLogger {
|
|
|
58
57
|
zippedArchive: true,
|
|
59
58
|
maxSize: "20m",
|
|
60
59
|
maxFiles: "7d",
|
|
61
|
-
silent: false
|
|
60
|
+
silent: false,
|
|
62
61
|
});
|
|
63
62
|
return rotationalFileTransport;
|
|
64
63
|
}
|
|
@@ -70,12 +69,12 @@ let GeneralLogger = GeneralLogger_1 = class GeneralLogger {
|
|
|
70
69
|
const loggerOptions = {
|
|
71
70
|
transports: [
|
|
72
71
|
this.createConsoleTransport(),
|
|
73
|
-
this.createRotationalFileTransport()
|
|
72
|
+
this.createRotationalFileTransport(),
|
|
74
73
|
],
|
|
75
74
|
defaultMeta: { service: "service-unknown" },
|
|
76
75
|
format: winston_1.format.combine(winston_1.format.splat(), winston_1.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss" }), winston_1.format.label({ label: "core-api" }), winston_1.format.printf(({ timestamp, level, message, service, label }) => {
|
|
77
76
|
return `[${timestamp}] [${label}] [${service}] ${level}: ${message}`;
|
|
78
|
-
}))
|
|
77
|
+
})),
|
|
79
78
|
};
|
|
80
79
|
return loggerOptions;
|
|
81
80
|
}
|
|
@@ -122,11 +121,11 @@ let GeneralLogger = GeneralLogger_1 = class GeneralLogger {
|
|
|
122
121
|
}
|
|
123
122
|
}
|
|
124
123
|
};
|
|
125
|
-
GeneralLogger =
|
|
124
|
+
exports.GeneralLogger = GeneralLogger;
|
|
125
|
+
exports.GeneralLogger = GeneralLogger = GeneralLogger_1 = __decorate([
|
|
126
126
|
(0, inversify_binding_decorators_1.provide)(GeneralLogger_1),
|
|
127
127
|
__metadata("design:paramtypes", [])
|
|
128
128
|
], GeneralLogger);
|
|
129
|
-
exports.GeneralLogger = GeneralLogger;
|
|
130
129
|
const Log = new GeneralLogger();
|
|
131
130
|
const log = Log.log.bind(Log);
|
|
132
131
|
exports.log = log;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-container.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/application/app-container.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"app-container.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/application/app-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EACT,eAAe,EACf,UAAU,EACX,MAAM,WAAW,CAAC;AAGnB;;;GAGG;AACH,cACM,YAAY;IAChB,OAAO,CAAC,SAAS,CAAa;IAC9B;;;;;OAKG;IACI,MAAM,CACX,OAAO,EAAE,eAAe,EAAE,EAC1B,YAAY,GAAE,UAAU,CAAC,YAAuC,GAC/D,SAAS;IAWZ;;;OAGG;IACI,oBAAoB,IAAI,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC;IAI5C;;;OAGG;IACI,mBAAmB,IAAI,UAAU,CAAC,gBAAgB;IAIzD;;;OAGG;IACH,IAAW,SAAS,IAAI,SAAS,CAEhC;CACF;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/application/application.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/application/application.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAGtC,OAAO,EAAW,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAE3E,OAAO,EAAe,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAE/D;;GAEG;AACH,aAAK,iBAAiB;IACpB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,UAAU,eAAe;CAC1B;AAED;;;GAGG;AACH,cACM,WAAW;IACf,OAAO,CAAC,GAAG,CAAsB;IACjC,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,WAAW,CAAoB;IAEvC;;OAEG;;IAGH;;OAEG;IACH,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAEnC;;OAEG;IACH,SAAS,CAAC,wBAAwB,IAAI,IAAI;IAE1C;;OAEG;IACH,SAAS,CAAC,cAAc,IAAI,IAAI;IAIhC;;;;;OAKG;IACI,MAAM,CACX,SAAS,EAAE,SAAS,EACpB,WAAW,GAAE,OAAO,CAAC,cAAc,EAAO,GACzC,WAAW;IAoCd;;;;;OAKG;IACI,MAAM,CACX,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,iBAAiB,EAC9B,cAAc,CAAC,EAAE,4BAA4B,GAC5C,IAAI;IAaP;;;;;;;;;;OAUG;IACI,SAAS,CAAC,CAAC,SAAS,qBAAqB,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI;CAQpE;AAED,QAAA,MAAM,iBAAiB,EAAE,WAA+B,CAAC;AAEzD,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AppInstance, Application, ServerEnvironment } from
|
|
2
|
-
export { AppContainer } from
|
|
1
|
+
export { AppInstance, Application, ServerEnvironment } from "./application";
|
|
2
|
+
export { AppContainer } from "./app-container";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,22 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum representing different string patterns.
|
|
3
|
+
*
|
|
4
|
+
* - LOWER_CASE: Represents strings in all lowercase letters. E.g. "hello"
|
|
5
|
+
* - KEBAB_CASE: Represents strings separated by hyphens. E.g. "hello-world"
|
|
6
|
+
* - PASCAL_CASE: Represents strings where the first letter of each word is capitalized. E.g. "HelloWorld"
|
|
7
|
+
* - CAMEL_CASE: Represents strings where the first letter of the first word is lowercase and the first letter of subsequent words are capitalized. E.g. "helloWorld"
|
|
8
|
+
*/
|
|
1
9
|
declare const enum Pattern {
|
|
2
10
|
LOWER_CASE = "lowercase",
|
|
3
11
|
KEBAB_CASE = "kebab-case",
|
|
4
12
|
PASCAL_CASE = "PascalCase",
|
|
5
13
|
CAMEL_CASE = "camelCase"
|
|
6
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Interface describing configuration specific to Prisma provider.
|
|
17
|
+
*
|
|
18
|
+
* @property {string} schemaName - The name of the Prisma schema.
|
|
19
|
+
* @property {string} schemaPath - The path to the Prisma schema file.
|
|
20
|
+
* @property {string} entitiesPath - The path to the directory containing entities.
|
|
21
|
+
* @property {string} entityNamePattern - The naming convention to use for entity names.
|
|
22
|
+
*/
|
|
23
|
+
interface IProviders {
|
|
24
|
+
prisma?: {
|
|
25
|
+
schemaName: string;
|
|
26
|
+
schemaPath: string;
|
|
27
|
+
entitiesPath: string;
|
|
28
|
+
entityNamePattern: string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
7
31
|
/**
|
|
8
32
|
* The configuration object for the Expresso CLI.
|
|
9
33
|
*
|
|
10
34
|
* @property {Pattern} scaffoldPattern - The pattern to use when scaffolding files.
|
|
11
35
|
* @property {string} sourceRoot - The root directory for the source files.
|
|
12
36
|
* @property {boolean} opinionated - Whether or not to use the opinionated configuration.
|
|
37
|
+
* @property {IProviders} providers - Specific configuration for each provider added.
|
|
13
38
|
*
|
|
14
|
-
* @see [
|
|
39
|
+
* @see [Doc](https://doc.expresso-ts.com/)
|
|
15
40
|
*/
|
|
16
41
|
interface ExpressoConfig {
|
|
17
42
|
scaffoldPattern: Pattern;
|
|
18
43
|
sourceRoot: string;
|
|
19
44
|
opinionated: boolean;
|
|
45
|
+
providers?: IProviders;
|
|
20
46
|
}
|
|
21
47
|
export { ExpressoConfig, Pattern };
|
|
22
48
|
//# sourceMappingURL=project-config.provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-config.provider.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/common/project-config.provider.ts"],"names":[],"mappings":"AAAA,mBAAW,OAAO;
|
|
1
|
+
{"version":3,"file":"project-config.provider.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/common/project-config.provider.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,mBAAW,OAAO;IAChB,UAAU,cAAc;IACxB,UAAU,eAAe;IACzB,WAAW,eAAe;IAC1B,UAAU,cAAc;CACzB;AAED;;;;;;;GAOG;AACH,UAAU,UAAU;IACnB,MAAM,CAAC,EAAE;QACR,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;QACrB,iBAAiB,EAAE,MAAM,CAAC;KAC1B,CAAA;CACD;AAED;;;;;;;;;GASG;AACH,UAAU,cAAc;IACtB,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/console/console.ts"],"names":[],"mappings":"AAcA;;GAEG;AACH,UAAU,4BAA4B;
|
|
1
|
+
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/console/console.ts"],"names":[],"mappings":"AAcA;;GAEG;AACH,UAAU,4BAA4B;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,cACM,OAAO;IACX;;;;OAIG;YACW,UAAU;IAgBxB;;;;;OAKG;IACU,aAAa,CACxB,IAAI,EAAE,GAAG,EACT,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":"container-module.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/container-module/container-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,eAAe,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAS1E;;;;GAIG;AACH,QAAA,MAAM,KAAK,YAAa,WAAW,YAAY,
|
|
1
|
+
{"version":3,"file":"container-module.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/container-module/container-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,eAAe,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAS1E;;;;GAIG;AACH,QAAA,MAAM,KAAK,YAAa,WAAW,YAAY,cACpB,GAAG,SAiB7B,CAAC;AAOF;;;GAGG;AACH,cACM,UAAU;IACd;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,aAAa;IAY5B;;;;;OAKG;WACW,qBAAqB,CACjC,WAAW,EAAE,GAAG,EAAE,EAClB,KAAK,CAAC,EAAE,UAAU,CAAC,YAAY,GAC9B,eAAe;CAyCnB;AAED,QAAA,MAAM,YAAY,yCAAmC,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/container-module/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/container-module/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Response } from
|
|
2
|
-
import { interfaces } from
|
|
1
|
+
import { Response } from "express";
|
|
2
|
+
import { interfaces } from "inversify-express-utils";
|
|
3
3
|
/**
|
|
4
4
|
* The BaseController class is an abstract base class for controllers.
|
|
5
5
|
* It provides methods for handling use case calls and sending appropriate responses.
|
|
@@ -27,16 +27,16 @@ declare abstract class BaseController implements interfaces.Controller {
|
|
|
27
27
|
*/
|
|
28
28
|
protected callUseCase(useCase: any, res: any, successStatusCode: number): any;
|
|
29
29
|
/**
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
* Synchronously renders a template with the given options using the Express `Response` object's render method.
|
|
31
|
+
*
|
|
32
|
+
* @protected
|
|
33
|
+
* @method callUseRender
|
|
34
|
+
*
|
|
35
|
+
* @param {Response} res - The Express `Response` object.
|
|
36
|
+
* @param {string} template - The name of the template to render.
|
|
37
|
+
* @param {Object} [options={}] - An optional object containing data to be passed to the template.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
40
|
protected callUseRender(res: Response, template: string, options?: {}): void;
|
|
41
41
|
/**
|
|
42
42
|
* Asynchronously renders a template with the given options using the Express `Response` object's render method.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-controller.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/controller/base-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD;;;;GAIG;AACH,uBACe,cAAe,YAAW,UAAU,CAAC,UAAU;
|
|
1
|
+
{"version":3,"file":"base-controller.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/controller/base-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD;;;;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;CAWnB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { BaseController } from
|
|
1
|
+
export { BaseController } from "./base-controller";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-validator.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/environment/env-validator.ts"],"names":[],"mappings":"
|
|
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;WACW,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,2 +1,2 @@
|
|
|
1
|
-
export { Environments } from
|
|
1
|
+
export { Environments } from "./env-validator";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-handler-middleware.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/error/error-handler-middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGrC;;;;;;;GAOG;AACH,iBAAS,YAAY,
|
|
1
|
+
{"version":3,"file":"error-handler-middleware.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/error/error-handler-middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGrC;;;;;;;GAOG;AACH,iBAAS,YAAY,CACnB,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,YAAY,GACjB,IAAI,CAIN;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { StatusCode } from
|
|
2
|
-
export { Report } from
|
|
1
|
+
export { StatusCode } from "./status-code";
|
|
2
|
+
export { Report } from "./report";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/error/report.ts"],"names":[],"mappings":"AAGA,UAAU,SAAS;
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/error/report.ts"],"names":[],"mappings":"AAGA,UAAU,SAAS;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,cACM,MAAM;IACV,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;;OAWG;WACW,KAAK,CACjB,KAAK,EAAE,KAAK,GAAG,MAAM,EACrB,UAAU,CAAC,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,MAAM,GACf,IAAI;CA6BR;AAED,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status-code.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/error/status-code.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"status-code.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/error/status-code.ts"],"names":[],"mappings":"AAQA,aAAK,mBAAmB;IACtB,QAAQ,MAAM;IACd,kBAAkB,MAAM;IACxB,UAAU,MAAM;IAChB,WAAW,MAAM;CAClB;AAED,aAAK,kBAAkB;IACrB,EAAE,MAAM;IACR,OAAO,MAAM;IACb,QAAQ,MAAM;IACd,2BAA2B,MAAM;IACjC,SAAS,MAAM;IACf,YAAY,MAAM;IAClB,cAAc,MAAM;IACpB,WAAW,MAAM;IACjB,eAAe,MAAM;IACrB,MAAM,MAAM;CACb;AAED,aAAK,kBAAkB;IACrB,eAAe,MAAM;IACrB,gBAAgB,MAAM;IACtB,KAAK,MAAM;IACX,QAAQ,MAAM;IACd,WAAW,MAAM;IACjB,iBAAiB,MAAM;IACvB,iBAAiB,MAAM;CACxB;AAED,aAAK,mBAAmB;IACtB,UAAU,MAAM;IAChB,YAAY,MAAM;IAClB,eAAe,MAAM;IACrB,SAAS,MAAM;IACf,QAAQ,MAAM;IACd,gBAAgB,MAAM;IACtB,aAAa,MAAM;IACnB,2BAA2B,MAAM;IACjC,cAAc,MAAM;IACpB,QAAQ,MAAM;IACd,IAAI,MAAM;IACV,cAAc,MAAM;IACpB,kBAAkB,MAAM;IACxB,eAAe,MAAM;IACrB,UAAU,MAAM;IAChB,oBAAoB,MAAM;IAC1B,mBAAmB,MAAM;IACzB,iBAAiB,MAAM;IACvB,SAAS,MAAM;IACf,kBAAkB,MAAM;IACxB,mBAAmB,MAAM;IACzB,MAAM,MAAM;IACZ,gBAAgB,MAAM;IACtB,QAAQ,MAAM;IACd,eAAe,MAAM;IACrB,oBAAoB,MAAM;IAC1B,eAAe,MAAM;IACrB,2BAA2B,MAAM;IACjC,0BAA0B,MAAM;CACjC;AAED,aAAK,mBAAmB;IACtB,mBAAmB,MAAM;IACzB,cAAc,MAAM;IACpB,UAAU,MAAM;IAChB,kBAAkB,MAAM;IACxB,cAAc,MAAM;IACpB,uBAAuB,MAAM;IAC7B,qBAAqB,MAAM;IAC3B,mBAAmB,MAAM;IACzB,YAAY,MAAM;IAClB,WAAW,MAAM;IACjB,6BAA6B,MAAM;CACpC;AASD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA6B,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general-logger.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/logger/general-logger.ts"],"names":[],"mappings":"
|
|
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,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,GAAG,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAyBzE;AAGD,QAAA,MAAM,GAAG,aA5Bc,QAAQ,WAAW,KAAK,GAAG,MAAM,YAAY,MAAM,SA4B7C,CAAC;AAE9B,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { GeneralLogger, LogLevel, log } from
|
|
1
|
+
export { GeneralLogger, LogLevel, log } from "./general-logger";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlebars.interface.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/render/handlebars.interface.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,UAAU,aAAa;
|
|
1
|
+
{"version":3,"file":"handlebars.interface.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/render/handlebars.interface.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,UAAU,aAAa;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CAChC;AAED;;;;;;GAMG;AACH,UAAU,cAAc;IACtB,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7C;AAED;;;;;;;GAOG;AACH,KAAK,MAAM,GAAG,CACZ,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,aAAa,EACtB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;AAEV;;GAEG;AACH,UAAU,WAAW;IACnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|