@expressots/core 1.5.0 → 1.5.1
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 +209 -202
- package/lib/README.md +61 -61
- package/lib/cjs/application/app-container.js +2 -2
- package/lib/cjs/application/application.js +3 -4
- package/lib/cjs/console/console.js +2 -2
- package/lib/cjs/controller/base-controller.js +2 -2
- package/lib/cjs/environment/env-validator.js +15 -13
- package/lib/cjs/error/report.js +2 -2
- package/lib/cjs/logger/general-logger.js +3 -4
- package/lib/cjs/types/environment/env-validator.d.ts.map +1 -1
- package/lib/esm/environment/env-validator.js +13 -11
- package/lib/esm/error/report.js +2 -1
- package/lib/esm/types/environment/env-validator.d.ts.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
package/LICENSE.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 Richard Zampieri
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Richard Zampieri
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/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)**
|
package/lib/CHANGELOG.md
CHANGED
|
@@ -1,214 +1,221 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
## [1.5.
|
|
3
|
+
## [1.5.1](https://github.com/expressots/expressots/compare/1.5.0...1.5.1) (2023-07-16)
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
###
|
|
6
|
+
### Bug Fixes
|
|
7
7
|
|
|
8
|
+
* add 404 on opinionated template user usecases ([#41](https://github.com/expressots/expressots/issues/41)) ([e2920cc](https://github.com/expressots/expressots/commit/e2920cce79eaad3fc5f031f45375312cba790103))
|
|
9
|
+
|
|
10
|
+
## [1.5.0](https://github.com/expressots/expressots/compare/1.5.0-dev...1.5.0) (2023-07-12)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
8
15
|
* add render engine for handlebars ([1257fe0](https://github.com/expressots/expressots/commit/1257fe08ec0bf9096af1927caddf6fa2a8d481e8))
|
|
9
16
|
|
|
10
|
-
## [1.5.0](https://github.com/expressots/expressots/compare/v1.4.2...v1.5.0) (2023-07-11)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Features
|
|
14
|
-
|
|
15
|
-
* add render engine mechanic and handlebars sup ([#37](https://github.com/expressots/expressots/issues/37)) ([c9f1c61](https://github.com/expressots/expressots/commit/c9f1c616c3480575c013e1e3e6b397e9b6870fb2))
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### Bug Fixes
|
|
19
|
-
|
|
17
|
+
## [1.5.0](https://github.com/expressots/expressots/compare/v1.4.2...v1.5.0) (2023-07-11)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add render engine mechanic and handlebars sup ([#37](https://github.com/expressots/expressots/issues/37)) ([c9f1c61](https://github.com/expressots/expressots/commit/c9f1c616c3480575c013e1e3e6b397e9b6870fb2))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
20
27
|
* remove npm auto publish from ci ([#35](https://github.com/expressots/expressots/issues/35)) ([c7145aa](https://github.com/expressots/expressots/commit/c7145aa5b7e99ee774141824437c30df9e3f4882))
|
|
21
28
|
|
|
22
|
-
## [1.4.2](https://github.com/expressots/expressots/compare/v1.4.1...v1.4.2) (2023-06-19)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Bug Fixes
|
|
26
|
-
|
|
27
|
-
* error handling ([#34](https://github.com/expressots/expressots/issues/34)) ([0c8bdc8](https://github.com/expressots/expressots/commit/0c8bdc8b933f64b76299396429162c0acae24feb))
|
|
28
|
-
* remove exclude pattern ([#33](https://github.com/expressots/expressots/issues/33)) ([9f5461b](https://github.com/expressots/expressots/commit/9f5461be50eaf4c0aa60952eef7e120228740287))
|
|
29
|
-
* update cicd ([#32](https://github.com/expressots/expressots/issues/32)) ([c6e4820](https://github.com/expressots/expressots/commit/c6e4820bd20b8c1fc43cbc80ddb609031d893f36))
|
|
29
|
+
## [1.4.2](https://github.com/expressots/expressots/compare/v1.4.1...v1.4.2) (2023-06-19)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* error handling ([#34](https://github.com/expressots/expressots/issues/34)) ([0c8bdc8](https://github.com/expressots/expressots/commit/0c8bdc8b933f64b76299396429162c0acae24feb))
|
|
35
|
+
* remove exclude pattern ([#33](https://github.com/expressots/expressots/issues/33)) ([9f5461b](https://github.com/expressots/expressots/commit/9f5461be50eaf4c0aa60952eef7e120228740287))
|
|
36
|
+
* update cicd ([#32](https://github.com/expressots/expressots/issues/32)) ([c6e4820](https://github.com/expressots/expressots/commit/c6e4820bd20b8c1fc43cbc80ddb609031d893f36))
|
|
30
37
|
* update usecases to the new error handling ([1471e25](https://github.com/expressots/expressots/commit/1471e252f9e05f4a1f034a95d248c27cdbb306cd))
|
|
31
38
|
|
|
32
|
-
## [1.4.1](https://github.com/expressots/expressots/compare/v1.4.0...v1.4.1) (2023-06-14)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
### Bug Fixes
|
|
36
|
-
|
|
37
|
-
* add user crud, remove ping, app.container ([befb447](https://github.com/expressots/expressots/commit/befb44720185d95fab2d275f79d5d5152cba2836))
|
|
38
|
-
* correct bootstrap function name ([1b99dcc](https://github.com/expressots/expressots/commit/1b99dcc0a3910fcc490a19db169f3799e95ca175))
|
|
39
|
-
* report known error in middleware ([#31](https://github.com/expressots/expressots/issues/31)) ([3790e24](https://github.com/expressots/expressots/commit/3790e24e9c30f3823a5b88eb4525cc892d5866df))
|
|
40
|
-
* update .env.example ([90c0375](https://github.com/expressots/expressots/commit/90c0375763d5d942332a6217fa23c17d4f2d7260))
|
|
41
|
-
* update changelog ([4e117b9](https://github.com/expressots/expressots/commit/4e117b9e4463374705fee83707444e0a112b656b))
|
|
42
|
-
* update core and template readme ([b2cc461](https://github.com/expressots/expressots/commit/b2cc461e730a24e7cadd323266fa1c862af7cf65))
|
|
43
|
-
* update non-op template app.container ([11a3938](https://github.com/expressots/expressots/commit/11a3938a8e1fa24e95da33cad0761967c9d6cd8e))
|
|
44
|
-
* update response type on controllers ([8ca9f5e](https://github.com/expressots/expressots/commit/8ca9f5eac99a3a921c7b6c39fb8129cee4670889))
|
|
45
|
-
* update singleton decorator in dbInmemory ([61bd590](https://github.com/expressots/expressots/commit/61bd590d06b96d297e6da8f92638df1ee8edce6b))
|
|
46
|
-
|
|
47
|
-
## [1.4.0](https://github.com/expressots/expressots/compare/v1.3.0...v1.4.0) (2023-05-14)
|
|
48
|
-
|
|
49
|
-
* add DI (dependency injection) singleton, transient, scope to container, providers, entities, etc
|
|
50
|
-
|
|
51
|
-
### Bug Fixes
|
|
52
|
-
|
|
53
|
-
* update sponsor link on package
|
|
54
|
-
* add example with controller only ([11b4ce3](https://github.com/expressots/expressots/commit/11b4ce3124482122a4f47fb27b7a1b1e02731621))
|
|
55
|
-
* opinionated template ientity id ([dd50ca0](https://github.com/expressots/expressots/commit/dd50ca0926c98890cbe1342f804ca34152c4a9f9))
|
|
56
|
-
|
|
57
|
-
## [1.3.0](https://github.com/expressots/expressots/compare/v1.2.1...v1.3.0) (2023-04-21)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### Features
|
|
61
|
-
|
|
62
|
-
* add user repository as singleton provider in opinionated template ([#24](https://github.com/expressots/expressots/issues/24)) ([3b5bded](https://github.com/expressots/expressots/commit/3b5bded07769d51f69b481e4b5e9b45c27d13a69))
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
### Bug Fixes
|
|
66
|
-
|
|
67
|
-
* add gitignore on opinionated template ([315d355](https://github.com/expressots/expressots/commit/315d355ed87eb6be85daddc250289d5e0d41cd21))
|
|
68
|
-
* findall use case query db in memory ([ff8feea](https://github.com/expressots/expressots/commit/ff8feeaf36d0b74eebd9ab4e22f1910cff0a4df8))
|
|
69
|
-
* the number of constructor arguments ([ccf2a48](https://github.com/expressots/expressots/commit/ccf2a4878e795e0182608546eae8cd83e3bea775))
|
|
70
|
-
* update core pkg templates to always download latest ([ca443eb](https://github.com/expressots/expressots/commit/ca443eb6be103725c73442f49e2fec14d797bba1))
|
|
71
|
-
|
|
72
|
-
## [1.2.1](https://github.com/expressots/expressots/compare/v1.2.0...v1.2.1) (2023-04-18)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
### Features
|
|
76
|
-
|
|
77
|
-
* add bug report template ([8a160c4](https://github.com/expressots/expressots/commit/8a160c4b0b53be39a0fa42315936291be6694c8c))
|
|
78
|
-
* add feature request template ([9d264c6](https://github.com/expressots/expressots/commit/9d264c68e44fee754c906846aaa7a7c89cb6b571))
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
### Bug Fixes
|
|
82
|
-
|
|
83
|
-
* add expresso config ([086ba59](https://github.com/expressots/expressots/commit/086ba59aba1d430877c3807eb77df9460413dbce))
|
|
84
|
-
* add PR template ([1ce4b65](https://github.com/expressots/expressots/commit/1ce4b651a16d602ed459049eeac4200bb80e7651))
|
|
85
|
-
* config-path for build ([72d8086](https://github.com/expressots/expressots/commit/72d8086cc1067add1a3d69c8c13bc5b5d6b7e024))
|
|
86
|
-
* expose express.json() config ([717f677](https://github.com/expressots/expressots/commit/717f6779e033d0e616f7fd464b81edb6bf95c1a9))
|
|
87
|
-
* template import errors from dtos ([#25](https://github.com/expressots/expressots/issues/25)) ([471e311](https://github.com/expressots/expressots/commit/471e3114a4afa9a9dc4af16b872e75f6ef436ae3))
|
|
88
|
-
* update doc contributor ([75cc0cc](https://github.com/expressots/expressots/commit/75cc0cc6f7a0b0527b566c5a4e842c9d13c68ee9))
|
|
89
|
-
* update expressots version ([e170a1f](https://github.com/expressots/expressots/commit/e170a1fd1aab61fd2403707a54c8b027139eb26c))
|
|
90
|
-
* update jest config ([6b33fd6](https://github.com/expressots/expressots/commit/6b33fd6117d32a29d2516831b3a8e7ecd16dfb65))
|
|
91
|
-
* update non-opinionated config ([1b10e0e](https://github.com/expressots/expressots/commit/1b10e0e3ba9f679b2cc59d4c3ec75a8c2e238d43))
|
|
92
|
-
* update opinionated template ([b7bde50](https://github.com/expressots/expressots/commit/b7bde50ec10b9ad9c2d855d1189ad3ccf4e68108))
|
|
93
|
-
* update opinionated template ([cae55a0](https://github.com/expressots/expressots/commit/cae55a04d1282c08668ee5ef12b9976400e2acfd))
|
|
94
|
-
* update templates ([e58af09](https://github.com/expressots/expressots/commit/e58af0995c8f71ad104d1cc4cab79e74ba257bb1))
|
|
95
|
-
* update test coverage path ([0804c5c](https://github.com/expressots/expressots/commit/0804c5c4b6fd4437a69330a40621408273ffdfac))
|
|
96
|
-
|
|
97
|
-
## [1.2.0](https://github.com/expressots/expressots/compare/v1.1.0...v1.2.0) (2023-04-08)
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
### Features
|
|
101
|
-
|
|
102
|
-
* add doc & config types for cli ([a72db25](https://github.com/expressots/expressots/commit/a72db25088a8c2d0a18cd8fc71dde40e01cd4c22))
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
### Bug Fixes
|
|
106
|
-
|
|
107
|
-
* template folder path issue ([babdce9](https://github.com/expressots/expressots/commit/babdce9367f85ddd2075c4bed854ab83ee339add))
|
|
108
|
-
|
|
109
|
-
## [1.1.1](https://github.com/expressots/expressots/compare/v1.1.0...v1.1.1) (2023-04-04)
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
### Bug Fixes
|
|
113
|
-
|
|
114
|
-
* template folder path issue ([babdce9](https://github.com/expressots/expressots/commit/babdce9367f85ddd2075c4bed854ab83ee339add))
|
|
115
|
-
|
|
116
|
-
## [1.1.0](https://github.com/expressots/expressots/compare/v1.1.0-42-gc6f184868daa1b6862337621c69b5370b70a2772...v1.1.0) (2023-03-31)
|
|
117
|
-
|
|
118
|
-
## [1.2.0](https://github.com/expressots/expressots/compare/v1.1.0-41-gf2a0fd59ba849c6ee880121d773da15fe2580cb1...v1.2.0) (2023-03-31)
|
|
119
|
-
|
|
120
|
-
## [1.1.0](https://github.com/expressots/expressots/compare/v1.1.0-39-g71dbe2f089dcef87a2d71c00043eeb7ce4427771...v1.1.0) (2023-03-31)
|
|
121
|
-
|
|
122
|
-
## [1.1.0](https://github.com/expressots/expressots/compare/v1.1.0-37-g3e82d383af42099e2d3b0b347916e21dbbdd93c9...v1.1.0) (2023-03-31)
|
|
123
|
-
|
|
124
|
-
## [1.2.0](https://github.com/expressots/expressots/compare/v1.1.0-35-g27548a8d24a0891d1d04fca1ba131ad585fba5ef...v1.2.0) (2023-03-31)
|
|
125
|
-
|
|
126
|
-
* feat: add cjs/esm (92f858f)
|
|
127
|
-
|
|
128
|
-
## [1.1.0](https://github.com/expressots/expressots/compare/v1.1.0-32-gd0aa36eefab521c3be83d72c873e3d34d4ea88eb...v1.1.0) (2023-03-31)
|
|
129
|
-
|
|
130
|
-
## [1.2.0](https://github.com/expressots/expressots/compare/v1.1.0-27-g56b160429e341c190355e4003901cb8b0ddbe792...v1.2.0) (2023-03-31)
|
|
131
|
-
|
|
132
|
-
## [1.1.0](https://github.com/expressots/expressots/compare/v0.0.2...v1.1.0) (2023-02-19)
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
### Features
|
|
136
|
-
|
|
137
|
-
* add eslint prettier config ([906cdcc](https://github.com/expressots/expressots/commit/906cdcc0ebf00bee55c8cab66e95dd74c9296cb8))
|
|
138
|
-
* add opinionated template ([d1eb222](https://github.com/expressots/expressots/commit/d1eb222016c809a1a4576cce5b51660d55ad7c19))
|
|
139
|
-
* add readme ([557e1ff](https://github.com/expressots/expressots/commit/557e1ffcd41d1e482372183a0ea72820531740d7))
|
|
140
|
-
* update 01_base template ([d289c57](https://github.com/expressots/expressots/commit/d289c5752bb78ad6bce7f35fcdb7019e7cc38b6a))
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
### Bug Fixes
|
|
144
|
-
|
|
145
|
-
* add ping controller ([ca7b005](https://github.com/expressots/expressots/commit/ca7b005be099eadc35b5e6b96aaf82c0e3840c81))
|
|
146
|
-
* fix index.js main on package ([26596b7](https://github.com/expressots/expressots/commit/26596b7982143e63186461bde1324a81a8901446))
|
|
147
|
-
* fix jest compilation error ([9c5be2e](https://github.com/expressots/expressots/commit/9c5be2e8a1dc062618d048183dfeef08d67d8e70))
|
|
148
|
-
* fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
|
|
149
|
-
* logo update on doc ([b2fe55b](https://github.com/expressots/expressots/commit/b2fe55b54fcac09bf261b5ea5cab4ebdbe20dee1))
|
|
150
|
-
* logo update on doc, build update ([b36889d](https://github.com/expressots/expressots/commit/b36889d513ed07678b43f7107ef9cd49ab5f8afa))
|
|
151
|
-
* non opinionated folder and prettier ([61d1e1b](https://github.com/expressots/expressots/commit/61d1e1b45e9bd240d4a6fd12a71f814e0426a436))
|
|
152
|
-
* prettier eslint jest setup ([0f29452](https://github.com/expressots/expressots/commit/0f29452c796abefe205ece8b943efda24b383905))
|
|
153
|
-
* remove test-app ([767c7a5](https://github.com/expressots/expressots/commit/767c7a54ea65c228a94ba3d63e5b6739c474a96e))
|
|
154
|
-
* set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
|
|
155
|
-
* update main remove index.js ([8b40b11](https://github.com/expressots/expressots/commit/8b40b11c51da728db4f8760e75fee1e2724e98e0))
|
|
156
|
-
* update readme ([a2ef784](https://github.com/expressots/expressots/commit/a2ef7849a1c1466f8737f263ad1728f5d30b25ec))
|
|
157
|
-
|
|
158
|
-
## [0.0.7](https://github.com/expressots/expressots/compare/v0.0.2...v0.0.7) (2023-02-18)
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
### Bug Fixes
|
|
162
|
-
|
|
163
|
-
* fix release step ([6e4d7b9](https://github.com/expressots/expressots/commit/6e4d7b956833cf9f956c4dbb0e063d9e50f92e3e))
|
|
164
|
-
* fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
|
|
165
|
-
* set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
|
|
166
|
-
|
|
167
|
-
## [0.0.6](https://github.com/expressots/expressots/compare/v0.0.2...v0.0.6) (2023-02-17)
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
### Bug Fixes
|
|
171
|
-
|
|
172
|
-
* fix pipeline release ([69e3fc4](https://github.com/expressots/expressots/commit/69e3fc497b8b4c79556663a768c1aab417c5bca6))
|
|
173
|
-
* fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
|
|
174
|
-
* set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
|
|
175
|
-
|
|
176
|
-
## [0.0.5](https://github.com/expressots/expressots/compare/v0.0.2...v0.0.5) (2023-02-17)
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
### Bug Fixes
|
|
180
|
-
|
|
181
|
-
* fix pipeline on push ([da20e93](https://github.com/expressots/expressots/commit/da20e93665a7fd51f449f0c6ae71cd485028d1f4))
|
|
182
|
-
* fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
|
|
183
|
-
* set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
|
|
184
|
-
|
|
185
|
-
## [0.0.4](https://github.com/expressots/expressots/compare/v0.0.2...v0.0.4) (2023-02-17)
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
### Bug Fixes
|
|
189
|
-
|
|
190
|
-
* fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
|
|
191
|
-
* set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
|
|
192
|
-
* update pipeline ([27dd961](https://github.com/expressots/expressots/commit/27dd961230f5cd2b1b02937f8c77ead9e983e537))
|
|
193
|
-
|
|
194
|
-
## [0.0.3](https://github.com/expressots/expressots/compare/v0.0.2...v0.0.3) (2023-02-17)
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
### Bug Fixes
|
|
198
|
-
|
|
199
|
-
* fix release tag pipeline ([ed03d24](https://github.com/expressots/expressots/commit/ed03d24e2696279aa04c8988e2c52ba7209a7bbd))
|
|
200
|
-
* set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
|
|
201
|
-
|
|
202
|
-
## [0.0.2](https://github.com/expressots/expressots/compare/v0.1.1...v0.0.2) (2023-02-17)
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
### Bug Fixes
|
|
206
|
-
|
|
207
|
-
* fix pipeline for tag name ([b9ec52d](https://github.com/expressots/expressots/commit/b9ec52dc065763185f69364d8f083b1a95fa37e0))
|
|
208
|
-
|
|
209
|
-
## [0.0.1](https://github.com/expressots/expressots/compare/v0.1.1...v0.0.1) (2023-02-17)
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
### Bug Fixes
|
|
213
|
-
|
|
39
|
+
## [1.4.1](https://github.com/expressots/expressots/compare/v1.4.0...v1.4.1) (2023-06-14)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Bug Fixes
|
|
43
|
+
|
|
44
|
+
* add user crud, remove ping, app.container ([befb447](https://github.com/expressots/expressots/commit/befb44720185d95fab2d275f79d5d5152cba2836))
|
|
45
|
+
* correct bootstrap function name ([1b99dcc](https://github.com/expressots/expressots/commit/1b99dcc0a3910fcc490a19db169f3799e95ca175))
|
|
46
|
+
* report known error in middleware ([#31](https://github.com/expressots/expressots/issues/31)) ([3790e24](https://github.com/expressots/expressots/commit/3790e24e9c30f3823a5b88eb4525cc892d5866df))
|
|
47
|
+
* update .env.example ([90c0375](https://github.com/expressots/expressots/commit/90c0375763d5d942332a6217fa23c17d4f2d7260))
|
|
48
|
+
* update changelog ([4e117b9](https://github.com/expressots/expressots/commit/4e117b9e4463374705fee83707444e0a112b656b))
|
|
49
|
+
* update core and template readme ([b2cc461](https://github.com/expressots/expressots/commit/b2cc461e730a24e7cadd323266fa1c862af7cf65))
|
|
50
|
+
* update non-op template app.container ([11a3938](https://github.com/expressots/expressots/commit/11a3938a8e1fa24e95da33cad0761967c9d6cd8e))
|
|
51
|
+
* update response type on controllers ([8ca9f5e](https://github.com/expressots/expressots/commit/8ca9f5eac99a3a921c7b6c39fb8129cee4670889))
|
|
52
|
+
* update singleton decorator in dbInmemory ([61bd590](https://github.com/expressots/expressots/commit/61bd590d06b96d297e6da8f92638df1ee8edce6b))
|
|
53
|
+
|
|
54
|
+
## [1.4.0](https://github.com/expressots/expressots/compare/v1.3.0...v1.4.0) (2023-05-14)
|
|
55
|
+
|
|
56
|
+
* add DI (dependency injection) singleton, transient, scope to container, providers, entities, etc
|
|
57
|
+
|
|
58
|
+
### Bug Fixes
|
|
59
|
+
|
|
60
|
+
* update sponsor link on package
|
|
61
|
+
* add example with controller only ([11b4ce3](https://github.com/expressots/expressots/commit/11b4ce3124482122a4f47fb27b7a1b1e02731621))
|
|
62
|
+
* opinionated template ientity id ([dd50ca0](https://github.com/expressots/expressots/commit/dd50ca0926c98890cbe1342f804ca34152c4a9f9))
|
|
63
|
+
|
|
64
|
+
## [1.3.0](https://github.com/expressots/expressots/compare/v1.2.1...v1.3.0) (2023-04-21)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### Features
|
|
68
|
+
|
|
69
|
+
* add user repository as singleton provider in opinionated template ([#24](https://github.com/expressots/expressots/issues/24)) ([3b5bded](https://github.com/expressots/expressots/commit/3b5bded07769d51f69b481e4b5e9b45c27d13a69))
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Bug Fixes
|
|
73
|
+
|
|
74
|
+
* add gitignore on opinionated template ([315d355](https://github.com/expressots/expressots/commit/315d355ed87eb6be85daddc250289d5e0d41cd21))
|
|
75
|
+
* findall use case query db in memory ([ff8feea](https://github.com/expressots/expressots/commit/ff8feeaf36d0b74eebd9ab4e22f1910cff0a4df8))
|
|
76
|
+
* the number of constructor arguments ([ccf2a48](https://github.com/expressots/expressots/commit/ccf2a4878e795e0182608546eae8cd83e3bea775))
|
|
77
|
+
* update core pkg templates to always download latest ([ca443eb](https://github.com/expressots/expressots/commit/ca443eb6be103725c73442f49e2fec14d797bba1))
|
|
78
|
+
|
|
79
|
+
## [1.2.1](https://github.com/expressots/expressots/compare/v1.2.0...v1.2.1) (2023-04-18)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### Features
|
|
83
|
+
|
|
84
|
+
* add bug report template ([8a160c4](https://github.com/expressots/expressots/commit/8a160c4b0b53be39a0fa42315936291be6694c8c))
|
|
85
|
+
* add feature request template ([9d264c6](https://github.com/expressots/expressots/commit/9d264c68e44fee754c906846aaa7a7c89cb6b571))
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
### Bug Fixes
|
|
89
|
+
|
|
90
|
+
* add expresso config ([086ba59](https://github.com/expressots/expressots/commit/086ba59aba1d430877c3807eb77df9460413dbce))
|
|
91
|
+
* add PR template ([1ce4b65](https://github.com/expressots/expressots/commit/1ce4b651a16d602ed459049eeac4200bb80e7651))
|
|
92
|
+
* config-path for build ([72d8086](https://github.com/expressots/expressots/commit/72d8086cc1067add1a3d69c8c13bc5b5d6b7e024))
|
|
93
|
+
* expose express.json() config ([717f677](https://github.com/expressots/expressots/commit/717f6779e033d0e616f7fd464b81edb6bf95c1a9))
|
|
94
|
+
* template import errors from dtos ([#25](https://github.com/expressots/expressots/issues/25)) ([471e311](https://github.com/expressots/expressots/commit/471e3114a4afa9a9dc4af16b872e75f6ef436ae3))
|
|
95
|
+
* update doc contributor ([75cc0cc](https://github.com/expressots/expressots/commit/75cc0cc6f7a0b0527b566c5a4e842c9d13c68ee9))
|
|
96
|
+
* update expressots version ([e170a1f](https://github.com/expressots/expressots/commit/e170a1fd1aab61fd2403707a54c8b027139eb26c))
|
|
97
|
+
* update jest config ([6b33fd6](https://github.com/expressots/expressots/commit/6b33fd6117d32a29d2516831b3a8e7ecd16dfb65))
|
|
98
|
+
* update non-opinionated config ([1b10e0e](https://github.com/expressots/expressots/commit/1b10e0e3ba9f679b2cc59d4c3ec75a8c2e238d43))
|
|
99
|
+
* update opinionated template ([b7bde50](https://github.com/expressots/expressots/commit/b7bde50ec10b9ad9c2d855d1189ad3ccf4e68108))
|
|
100
|
+
* update opinionated template ([cae55a0](https://github.com/expressots/expressots/commit/cae55a04d1282c08668ee5ef12b9976400e2acfd))
|
|
101
|
+
* update templates ([e58af09](https://github.com/expressots/expressots/commit/e58af0995c8f71ad104d1cc4cab79e74ba257bb1))
|
|
102
|
+
* update test coverage path ([0804c5c](https://github.com/expressots/expressots/commit/0804c5c4b6fd4437a69330a40621408273ffdfac))
|
|
103
|
+
|
|
104
|
+
## [1.2.0](https://github.com/expressots/expressots/compare/v1.1.0...v1.2.0) (2023-04-08)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### Features
|
|
108
|
+
|
|
109
|
+
* add doc & config types for cli ([a72db25](https://github.com/expressots/expressots/commit/a72db25088a8c2d0a18cd8fc71dde40e01cd4c22))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Bug Fixes
|
|
113
|
+
|
|
114
|
+
* template folder path issue ([babdce9](https://github.com/expressots/expressots/commit/babdce9367f85ddd2075c4bed854ab83ee339add))
|
|
115
|
+
|
|
116
|
+
## [1.1.1](https://github.com/expressots/expressots/compare/v1.1.0...v1.1.1) (2023-04-04)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### Bug Fixes
|
|
120
|
+
|
|
121
|
+
* template folder path issue ([babdce9](https://github.com/expressots/expressots/commit/babdce9367f85ddd2075c4bed854ab83ee339add))
|
|
122
|
+
|
|
123
|
+
## [1.1.0](https://github.com/expressots/expressots/compare/v1.1.0-42-gc6f184868daa1b6862337621c69b5370b70a2772...v1.1.0) (2023-03-31)
|
|
124
|
+
|
|
125
|
+
## [1.2.0](https://github.com/expressots/expressots/compare/v1.1.0-41-gf2a0fd59ba849c6ee880121d773da15fe2580cb1...v1.2.0) (2023-03-31)
|
|
126
|
+
|
|
127
|
+
## [1.1.0](https://github.com/expressots/expressots/compare/v1.1.0-39-g71dbe2f089dcef87a2d71c00043eeb7ce4427771...v1.1.0) (2023-03-31)
|
|
128
|
+
|
|
129
|
+
## [1.1.0](https://github.com/expressots/expressots/compare/v1.1.0-37-g3e82d383af42099e2d3b0b347916e21dbbdd93c9...v1.1.0) (2023-03-31)
|
|
130
|
+
|
|
131
|
+
## [1.2.0](https://github.com/expressots/expressots/compare/v1.1.0-35-g27548a8d24a0891d1d04fca1ba131ad585fba5ef...v1.2.0) (2023-03-31)
|
|
132
|
+
|
|
133
|
+
* feat: add cjs/esm (92f858f)
|
|
134
|
+
|
|
135
|
+
## [1.1.0](https://github.com/expressots/expressots/compare/v1.1.0-32-gd0aa36eefab521c3be83d72c873e3d34d4ea88eb...v1.1.0) (2023-03-31)
|
|
136
|
+
|
|
137
|
+
## [1.2.0](https://github.com/expressots/expressots/compare/v1.1.0-27-g56b160429e341c190355e4003901cb8b0ddbe792...v1.2.0) (2023-03-31)
|
|
138
|
+
|
|
139
|
+
## [1.1.0](https://github.com/expressots/expressots/compare/v0.0.2...v1.1.0) (2023-02-19)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
### Features
|
|
143
|
+
|
|
144
|
+
* add eslint prettier config ([906cdcc](https://github.com/expressots/expressots/commit/906cdcc0ebf00bee55c8cab66e95dd74c9296cb8))
|
|
145
|
+
* add opinionated template ([d1eb222](https://github.com/expressots/expressots/commit/d1eb222016c809a1a4576cce5b51660d55ad7c19))
|
|
146
|
+
* add readme ([557e1ff](https://github.com/expressots/expressots/commit/557e1ffcd41d1e482372183a0ea72820531740d7))
|
|
147
|
+
* update 01_base template ([d289c57](https://github.com/expressots/expressots/commit/d289c5752bb78ad6bce7f35fcdb7019e7cc38b6a))
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
### Bug Fixes
|
|
151
|
+
|
|
152
|
+
* add ping controller ([ca7b005](https://github.com/expressots/expressots/commit/ca7b005be099eadc35b5e6b96aaf82c0e3840c81))
|
|
153
|
+
* fix index.js main on package ([26596b7](https://github.com/expressots/expressots/commit/26596b7982143e63186461bde1324a81a8901446))
|
|
154
|
+
* fix jest compilation error ([9c5be2e](https://github.com/expressots/expressots/commit/9c5be2e8a1dc062618d048183dfeef08d67d8e70))
|
|
155
|
+
* fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
|
|
156
|
+
* logo update on doc ([b2fe55b](https://github.com/expressots/expressots/commit/b2fe55b54fcac09bf261b5ea5cab4ebdbe20dee1))
|
|
157
|
+
* logo update on doc, build update ([b36889d](https://github.com/expressots/expressots/commit/b36889d513ed07678b43f7107ef9cd49ab5f8afa))
|
|
158
|
+
* non opinionated folder and prettier ([61d1e1b](https://github.com/expressots/expressots/commit/61d1e1b45e9bd240d4a6fd12a71f814e0426a436))
|
|
159
|
+
* prettier eslint jest setup ([0f29452](https://github.com/expressots/expressots/commit/0f29452c796abefe205ece8b943efda24b383905))
|
|
160
|
+
* remove test-app ([767c7a5](https://github.com/expressots/expressots/commit/767c7a54ea65c228a94ba3d63e5b6739c474a96e))
|
|
161
|
+
* set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
|
|
162
|
+
* update main remove index.js ([8b40b11](https://github.com/expressots/expressots/commit/8b40b11c51da728db4f8760e75fee1e2724e98e0))
|
|
163
|
+
* update readme ([a2ef784](https://github.com/expressots/expressots/commit/a2ef7849a1c1466f8737f263ad1728f5d30b25ec))
|
|
164
|
+
|
|
165
|
+
## [0.0.7](https://github.com/expressots/expressots/compare/v0.0.2...v0.0.7) (2023-02-18)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
### Bug Fixes
|
|
169
|
+
|
|
170
|
+
* fix release step ([6e4d7b9](https://github.com/expressots/expressots/commit/6e4d7b956833cf9f956c4dbb0e063d9e50f92e3e))
|
|
171
|
+
* fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
|
|
172
|
+
* set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
|
|
173
|
+
|
|
174
|
+
## [0.0.6](https://github.com/expressots/expressots/compare/v0.0.2...v0.0.6) (2023-02-17)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### Bug Fixes
|
|
178
|
+
|
|
179
|
+
* fix pipeline release ([69e3fc4](https://github.com/expressots/expressots/commit/69e3fc497b8b4c79556663a768c1aab417c5bca6))
|
|
180
|
+
* fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
|
|
181
|
+
* set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
|
|
182
|
+
|
|
183
|
+
## [0.0.5](https://github.com/expressots/expressots/compare/v0.0.2...v0.0.5) (2023-02-17)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
### Bug Fixes
|
|
187
|
+
|
|
188
|
+
* fix pipeline on push ([da20e93](https://github.com/expressots/expressots/commit/da20e93665a7fd51f449f0c6ae71cd485028d1f4))
|
|
189
|
+
* fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
|
|
190
|
+
* set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
|
|
191
|
+
|
|
192
|
+
## [0.0.4](https://github.com/expressots/expressots/compare/v0.0.2...v0.0.4) (2023-02-17)
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
### Bug Fixes
|
|
196
|
+
|
|
197
|
+
* fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
|
|
198
|
+
* set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
|
|
199
|
+
* update pipeline ([27dd961](https://github.com/expressots/expressots/commit/27dd961230f5cd2b1b02937f8c77ead9e983e537))
|
|
200
|
+
|
|
201
|
+
## [0.0.3](https://github.com/expressots/expressots/compare/v0.0.2...v0.0.3) (2023-02-17)
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
### Bug Fixes
|
|
205
|
+
|
|
206
|
+
* fix release tag pipeline ([ed03d24](https://github.com/expressots/expressots/commit/ed03d24e2696279aa04c8988e2c52ba7209a7bbd))
|
|
207
|
+
* set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
|
|
208
|
+
|
|
209
|
+
## [0.0.2](https://github.com/expressots/expressots/compare/v0.1.1...v0.0.2) (2023-02-17)
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
### Bug Fixes
|
|
213
|
+
|
|
214
|
+
* fix pipeline for tag name ([b9ec52d](https://github.com/expressots/expressots/commit/b9ec52dc065763185f69364d8f083b1a95fa37e0))
|
|
215
|
+
|
|
216
|
+
## [0.0.1](https://github.com/expressots/expressots/compare/v0.1.1...v0.0.1) (2023-02-17)
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
### Bug Fixes
|
|
220
|
+
|
|
214
221
|
* fix pipeline for tag name ([b9ec52d](https://github.com/expressots/expressots/commit/b9ec52dc065763185f69364d8f083b1a95fa37e0))
|
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;
|
|
@@ -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
|
|
@@ -118,10 +117,10 @@ let Application = Application_1 = class Application {
|
|
|
118
117
|
}
|
|
119
118
|
}
|
|
120
119
|
};
|
|
121
|
-
Application =
|
|
120
|
+
exports.Application = Application;
|
|
121
|
+
exports.Application = Application = Application_1 = __decorate([
|
|
122
122
|
(0, inversify_binding_decorators_1.provide)(Application_1),
|
|
123
123
|
__metadata("design:paramtypes", [])
|
|
124
124
|
], Application);
|
|
125
|
-
exports.Application = Application;
|
|
126
125
|
const appServerInstance = new Application();
|
|
127
126
|
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;
|
|
@@ -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":
|
package/lib/cjs/error/report.js
CHANGED
|
@@ -55,7 +55,7 @@ let Report = Report_1 = class Report {
|
|
|
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;
|
|
@@ -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
|
*/
|
|
@@ -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":"env-validator.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/environment/env-validator.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,cACM,oBAAoB;IAEtB;;;;;OAKG;WACW,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,GAAE,GAAe,GAAG,GAAG;IAIlE;;;OAGG;WACW,QAAQ,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"env-validator.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/environment/env-validator.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,cACM,oBAAoB;IAEtB;;;;;OAKG;WACW,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,GAAE,GAAe,GAAG,GAAG;IAIlE;;;OAGG;WACW,QAAQ,IAAI,IAAI;CA8BjC;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,SAAS,IAAI,OAAO,GAAG,SAAS,CAAC;QACjC,QAAQ,IAAI,MAAM,GAAG,SAAS,CAAC;QAC/B,QAAQ,IAAI,MAAM,GAAG,SAAS,CAAC;KAClC;CACJ;AAyBD,OAAO,EAAE,oBAAoB,IAAI,YAAY,EAAE,CAAA"}
|
|
@@ -30,23 +30,25 @@ let EnvValidatorProvider = EnvValidatorProvider_1 = class EnvValidatorProvider {
|
|
|
30
30
|
* If the .env file does not exist or any environment variables are not set, the process will exit with an error.
|
|
31
31
|
*/
|
|
32
32
|
static checkAll() {
|
|
33
|
-
|
|
34
|
-
dotenv.config();
|
|
35
|
-
/* Verify if .env file exists */
|
|
33
|
+
// Get the full path of the .env file
|
|
36
34
|
const envFilePath = path.join(process.cwd(), ".", ".env");
|
|
35
|
+
// Check if the .env file exists
|
|
37
36
|
if (!fs.existsSync(envFilePath)) {
|
|
38
37
|
log(LogLevel.Info, "Environment file .env is not defined.", "env-validator-provider");
|
|
39
38
|
process.exit(1);
|
|
40
39
|
}
|
|
41
|
-
|
|
40
|
+
// Load the environment variables from the .env file
|
|
41
|
+
const dotenvConfigOutput = dotenv.config({ path: envFilePath });
|
|
42
|
+
const dotEnvParsed = dotenvConfigOutput.parsed;
|
|
43
|
+
/* Verify if all environment variables are defined */
|
|
42
44
|
let hasError = false;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
if (dotEnvParsed) {
|
|
46
|
+
for (const key of Object.keys(dotEnvParsed)) {
|
|
47
|
+
// Check if the environment variable is not defined or is an empty string
|
|
48
|
+
if (!process.env[key] || process.env[key] === "") {
|
|
49
|
+
log(LogLevel.Info, `Environment variable ${key} is not defined.`, "env-validator-provider");
|
|
50
|
+
hasError = true;
|
|
51
|
+
}
|
|
50
52
|
}
|
|
51
53
|
}
|
|
52
54
|
if (hasError) {
|
package/lib/esm/error/report.js
CHANGED
|
@@ -12,7 +12,8 @@ import { LogLevel, log } from '../logger';
|
|
|
12
12
|
* It is responsible for creating a standardized error object, logging it,
|
|
13
13
|
* and then throwing the error for further handling.
|
|
14
14
|
*/
|
|
15
|
-
let Report =
|
|
15
|
+
let Report = class Report {
|
|
16
|
+
static { Report_1 = this; }
|
|
16
17
|
static stack;
|
|
17
18
|
/**
|
|
18
19
|
* The Error method is responsible for generating a standardized error object,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-validator.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/environment/env-validator.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,cACM,oBAAoB;IAEtB;;;;;OAKG;WACW,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,GAAE,GAAe,GAAG,GAAG;IAIlE;;;OAGG;WACW,QAAQ,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"env-validator.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/environment/env-validator.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,cACM,oBAAoB;IAEtB;;;;;OAKG;WACW,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,GAAE,GAAe,GAAG,GAAG;IAIlE;;;OAGG;WACW,QAAQ,IAAI,IAAI;CA8BjC;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,SAAS,IAAI,OAAO,GAAG,SAAS,CAAC;QACjC,QAAQ,IAAI,MAAM,GAAG,SAAS,CAAC;QAC/B,QAAQ,IAAI,MAAM,GAAG,SAAS,CAAC;KAClC;CACJ;AAyBD,OAAO,EAAE,oBAAoB,IAAI,YAAY,EAAE,CAAA"}
|
package/lib/package.json
CHANGED