@expressots/core 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/lib/CHANGELOG.md +141 -134
  2. package/lib/cjs/application/application.js +3 -2
  3. package/lib/cjs/common/color-service.provider.js +46 -0
  4. package/lib/cjs/common/package-resolver.provider.js +35 -0
  5. package/lib/cjs/console/console.js +10 -33
  6. package/lib/cjs/controller/base-controller.js +0 -2
  7. package/lib/cjs/error/app-error.js +26 -0
  8. package/lib/cjs/error/error-handler-middleware.js +16 -5
  9. package/lib/cjs/error/index.js +3 -1
  10. package/lib/cjs/error/report.js +17 -24
  11. package/lib/cjs/index.js +1 -2
  12. package/lib/cjs/provider/dto-validator/dto-validator.provider.js +62 -0
  13. package/lib/cjs/{environment/env-validator.js → provider/environment/env-validator.provider.js} +16 -10
  14. package/lib/cjs/provider/index.js +11 -0
  15. package/lib/cjs/provider/logger/logger-service.js +114 -0
  16. package/lib/cjs/provider/provider-service.js +36 -0
  17. package/lib/cjs/types/application/application.d.ts.map +1 -1
  18. package/lib/cjs/types/common/color-service.provider.d.ts +30 -0
  19. package/lib/cjs/types/common/color-service.provider.d.ts.map +1 -0
  20. package/lib/cjs/types/common/package-resolver.provider.d.ts +9 -0
  21. package/lib/cjs/types/common/package-resolver.provider.d.ts.map +1 -0
  22. package/lib/cjs/types/console/console.d.ts +1 -1
  23. package/lib/cjs/types/console/console.d.ts.map +1 -1
  24. package/lib/cjs/types/controller/base-controller.d.ts.map +1 -1
  25. package/lib/cjs/types/error/app-error.d.ts +30 -0
  26. package/lib/cjs/types/error/app-error.d.ts.map +1 -0
  27. package/lib/cjs/types/error/error-handler-middleware.d.ts +3 -4
  28. package/lib/cjs/types/error/error-handler-middleware.d.ts.map +1 -1
  29. package/lib/cjs/types/error/index.d.ts +1 -0
  30. package/lib/cjs/types/error/index.d.ts.map +1 -1
  31. package/lib/cjs/types/error/report.d.ts +7 -11
  32. package/lib/cjs/types/error/report.d.ts.map +1 -1
  33. package/lib/cjs/types/index.d.ts +1 -2
  34. package/lib/cjs/types/index.d.ts.map +1 -1
  35. package/lib/cjs/types/provider/dto-validator/dto-validator.provider.d.ts +12 -0
  36. package/lib/cjs/types/provider/dto-validator/dto-validator.provider.d.ts.map +1 -0
  37. package/lib/cjs/types/{environment/env-validator.d.ts → provider/environment/env-validator.provider.d.ts} +7 -4
  38. package/lib/cjs/types/provider/environment/env-validator.provider.d.ts.map +1 -0
  39. package/lib/cjs/types/provider/index.d.ts +5 -0
  40. package/lib/cjs/types/provider/index.d.ts.map +1 -0
  41. package/lib/cjs/types/provider/logger/logger-service.d.ts +50 -0
  42. package/lib/cjs/types/provider/logger/logger-service.d.ts.map +1 -0
  43. package/lib/cjs/types/{logger/general-logger.d.ts → provider/logger/winston-logger.d.ts} +1 -1
  44. package/lib/cjs/types/provider/logger/winston-logger.d.ts.map +1 -0
  45. package/lib/cjs/types/provider/provider-service.d.ts +31 -0
  46. package/lib/cjs/types/provider/provider-service.d.ts.map +1 -0
  47. package/lib/esm/application/application.js +3 -2
  48. package/lib/esm/common/color-service.provider.js +46 -0
  49. package/lib/esm/common/package-resolver.provider.js +35 -0
  50. package/lib/esm/console/console.js +10 -33
  51. package/lib/esm/controller/base-controller.js +0 -2
  52. package/lib/esm/error/app-error.js +37 -0
  53. package/lib/esm/error/error-handler-middleware.js +16 -5
  54. package/lib/esm/error/index.js +3 -1
  55. package/lib/esm/error/report.js +18 -23
  56. package/lib/esm/index.mjs +1 -2
  57. package/lib/esm/provider/dto-validator/dto-validator.provider.js +53 -0
  58. package/lib/esm/{environment/env-validator.js → provider/environment/env-validator.provider.js} +17 -10
  59. package/lib/esm/provider/index.js +11 -0
  60. package/lib/esm/provider/logger/logger-service.js +115 -0
  61. package/lib/esm/provider/provider-service.js +38 -0
  62. package/lib/esm/types/application/application.d.ts.map +1 -1
  63. package/lib/esm/types/common/color-service.provider.d.ts +30 -0
  64. package/lib/esm/types/common/color-service.provider.d.ts.map +1 -0
  65. package/lib/esm/types/common/package-resolver.provider.d.ts +9 -0
  66. package/lib/esm/types/common/package-resolver.provider.d.ts.map +1 -0
  67. package/lib/esm/types/console/console.d.ts +1 -1
  68. package/lib/esm/types/console/console.d.ts.map +1 -1
  69. package/lib/esm/types/controller/base-controller.d.ts.map +1 -1
  70. package/lib/esm/types/error/app-error.d.ts +30 -0
  71. package/lib/esm/types/error/app-error.d.ts.map +1 -0
  72. package/lib/esm/types/error/error-handler-middleware.d.ts +3 -4
  73. package/lib/esm/types/error/error-handler-middleware.d.ts.map +1 -1
  74. package/lib/esm/types/error/index.d.ts +1 -0
  75. package/lib/esm/types/error/index.d.ts.map +1 -1
  76. package/lib/esm/types/error/report.d.ts +7 -11
  77. package/lib/esm/types/error/report.d.ts.map +1 -1
  78. package/lib/esm/types/index.d.ts +1 -2
  79. package/lib/esm/types/index.d.ts.map +1 -1
  80. package/lib/esm/types/provider/dto-validator/dto-validator.provider.d.ts +12 -0
  81. package/lib/esm/types/provider/dto-validator/dto-validator.provider.d.ts.map +1 -0
  82. package/lib/esm/types/{environment/env-validator.d.ts → provider/environment/env-validator.provider.d.ts} +7 -4
  83. package/lib/esm/types/provider/environment/env-validator.provider.d.ts.map +1 -0
  84. package/lib/esm/types/provider/index.d.ts +5 -0
  85. package/lib/esm/types/provider/index.d.ts.map +1 -0
  86. package/lib/esm/types/provider/logger/logger-service.d.ts +50 -0
  87. package/lib/esm/types/provider/logger/logger-service.d.ts.map +1 -0
  88. package/lib/esm/types/{logger/general-logger.d.ts → provider/logger/winston-logger.d.ts} +1 -1
  89. package/lib/esm/types/provider/logger/winston-logger.d.ts.map +1 -0
  90. package/lib/esm/types/provider/provider-service.d.ts +31 -0
  91. package/lib/esm/types/provider/provider-service.d.ts.map +1 -0
  92. package/lib/package.json +7 -6
  93. package/package.json +7 -6
  94. package/lib/cjs/environment/index.js +0 -5
  95. package/lib/cjs/logger/index.js +0 -7
  96. package/lib/cjs/types/environment/env-validator.d.ts.map +0 -1
  97. package/lib/cjs/types/environment/index.d.ts +0 -2
  98. package/lib/cjs/types/environment/index.d.ts.map +0 -1
  99. package/lib/cjs/types/logger/general-logger.d.ts.map +0 -1
  100. package/lib/cjs/types/logger/index.d.ts +0 -2
  101. package/lib/cjs/types/logger/index.d.ts.map +0 -1
  102. package/lib/esm/environment/index.js +0 -5
  103. package/lib/esm/logger/index.js +0 -7
  104. package/lib/esm/types/environment/env-validator.d.ts.map +0 -1
  105. package/lib/esm/types/environment/index.d.ts +0 -2
  106. package/lib/esm/types/environment/index.d.ts.map +0 -1
  107. package/lib/esm/types/logger/general-logger.d.ts.map +0 -1
  108. package/lib/esm/types/logger/index.d.ts +0 -2
  109. package/lib/esm/types/logger/index.d.ts.map +0 -1
  110. /package/lib/cjs/{logger/general-logger.js → provider/logger/winston-logger.js} +0 -0
  111. /package/lib/esm/{logger/general-logger.js → provider/logger/winston-logger.js} +0 -0
package/lib/CHANGELOG.md CHANGED
@@ -1,169 +1,185 @@
1
1
 
2
2
 
3
- ## [1.8.0](https://github.com/expressots/expressots/compare/1.7.0...1.8.0) (2023-09-05)
3
+ ## [1.9.0](https://github.com/expressots/expressots/compare/1.8.1...1.9.0) (2023-09-12)
4
4
 
5
5
 
6
6
  ### Features
7
7
 
8
- * add benchmark folder ([#83](https://github.com/expressots/expressots/issues/83)) ([30cb1f9](https://github.com/expressots/expressots/commit/30cb1f922f980de23b0e8e896b552a0708075201))
9
- * bump prettier from 3.0.1 to 3.0.2 ([#74](https://github.com/expressots/expressots/issues/74)) ([a66f80d](https://github.com/expressots/expressots/commit/a66f80d36967cc6112a30f422ec34a8dcb3efd66))
10
- * bump prettier from 3.0.2 to 3.0.3 ([#80](https://github.com/expressots/expressots/issues/80)) ([59af991](https://github.com/expressots/expressots/commit/59af99177edc371c5608761c6b3f438806aba898))
8
+ * add pck resolver & remove chalk dependency ([6bbd415](https://github.com/expressots/expressots/commit/6bbd415937159e419116b6ade8f9852c3251fbf4))
9
+ * bump vitest from 0.34.3 to 0.34.4 ([#92](https://github.com/expressots/expressots/issues/92)) ([89dc682](https://github.com/expressots/expressots/commit/89dc682c7047897f01fd7770591b6ffea689d137))
11
10
 
12
11
 
13
12
  ### Bug Fixes
14
13
 
15
- * increase the event range for graceful shutdown ([#76](https://github.com/expressots/expressots/issues/76)) ([8e88c7e](https://github.com/expressots/expressots/commit/8e88c7e2f1f0b2091c013885a823bbda533de62b))
16
- * remove verb should from unit tests labels ([#78](https://github.com/expressots/expressots/issues/78)) ([f37d028](https://github.com/expressots/expressots/commit/f37d02878cbf2587028d7c61ecc35c4981721eab))
17
- * update readme ([c1f0bcd](https://github.com/expressots/expressots/commit/c1f0bcd341284b4259454b579ccaf35091b1e2e1))
18
-
19
- ## [1.7.0](https://github.com/expressots/expressots/compare/1.6.0...1.7.0) (2023-08-14)
20
-
14
+ * disable console.spec to be refactored ([22a54bd](https://github.com/expressots/expressots/commit/22a54bdb7f0c2032d3b0e0f935ce48d73e665e84))
15
+ * dto validator json structure per property ([a8fbe40](https://github.com/expressots/expressots/commit/a8fbe409647140e867f930a882fd395df45d6de7))
16
+ * export console for testing ([d3f2c07](https://github.com/expressots/expressots/commit/d3f2c07ca2df0176fabed04172ce4ff684c91c9c))
17
+ * opinionated template logger.error function ([073f4e1](https://github.com/expressots/expressots/commit/073f4e154732fa3fed9492ec772c36894bc3cf48))
18
+ * replace dto interface for class opinionated template ([3e99d7c](https://github.com/expressots/expressots/commit/3e99d7c5492ff64701e754ec845a0410da442296))
19
+ * use new report utility in usecases ([#91](https://github.com/expressots/expressots/issues/91)) ([d1477b2](https://github.com/expressots/expressots/commit/d1477b24f932e354fb55373e8e73fe9155289486))
21
20
 
22
- ### Features
23
21
 
24
- * bump @release-it/conventional-changelog from 5.1.1 to 6.0.0 ([#61](https://github.com/expressots/expressots/issues/61)) ([634304b](https://github.com/expressots/expressots/commit/634304b8228a0c6f4a4e8298961f46e4bd5c9b7c))
25
- * bump @types/node from 18.17.4 to 20.4.9 ([#72](https://github.com/expressots/expressots/issues/72)) ([31a887d](https://github.com/expressots/expressots/commit/31a887d3a33923dba4c8d952ec60046e21f08361))
22
+ ### Code Refactoring
26
23
 
27
-
28
- ### Bug Fixes
29
-
30
- * add `options` parameter to `AppContainer` ([#73](https://github.com/expressots/expressots/issues/73)) ([804d5cd](https://github.com/expressots/expressots/commit/804d5cd568830584322d877b91dffaed8c952e56))
24
+ * update type from any to number ([#90](https://github.com/expressots/expressots/issues/90)) ([5e34a44](https://github.com/expressots/expressots/commit/5e34a44d8bd353b8d3834f198f36bf73aa521845))
31
25
 
32
- ## [1.6.0](https://github.com/expressots/expressots/compare/1.5.1...1.6.0) (2023-08-07)
33
-
34
-
35
- ### Features
36
-
37
- * add community ideas form ([#43](https://github.com/expressots/expressots/issues/43)) ([e23c936](https://github.com/expressots/expressots/commit/e23c9360cec22f21a8f44e04b290cf6aa23aef17))
38
- * add dependabot for fetch new version of dependencies ([#60](https://github.com/expressots/expressots/issues/60)) ([9ea1033](https://github.com/expressots/expressots/commit/9ea1033809eb19f50ae779824e5e428710c4480d))
39
- * add prisma provider configuration types in ExpressoConfig ([#71](https://github.com/expressots/expressots/issues/71)) ([4a189a2](https://github.com/expressots/expressots/commit/4a189a2d85aed320d97fff4aebc48dcb0e125adf))
40
- * bump prettier from 3.0.0 to 3.0.1 ([#68](https://github.com/expressots/expressots/issues/68)) ([b555e19](https://github.com/expressots/expressots/commit/b555e19698fd102c681b50a96e99ad37b399bae7))
41
- * **prettier:** add a prettier config and run it in the core package ([#58](https://github.com/expressots/expressots/issues/58)) ([2ac367b](https://github.com/expressots/expressots/commit/2ac367b3c5911216a1ffb9b542ae4bb418227eba))
42
-
43
-
44
- ### Bug Fixes
45
-
46
- * add workflow for auto project and label ([#44](https://github.com/expressots/expressots/issues/44)) ([1306d18](https://github.com/expressots/expressots/commit/1306d181bc904384a3edea0be219bba891b865cf))
26
+ ## [1.8.1](https://github.com/expressots/expressots/compare/1.8.0...1.8.1) (2023-09-10)
47
27
 
48
- ## [1.5.1](https://github.com/expressots/expressots/compare/1.5.0...1.5.1) (2023-07-16)
49
-
50
-
51
- ### Bug Fixes
52
-
53
- * add 404 on opinionated template user usecases ([#41](https://github.com/expressots/expressots/issues/41)) ([e2920cc](https://github.com/expressots/expressots/commit/e2920cce79eaad3fc5f031f45375312cba790103))
54
28
 
55
- ## [1.5.0](https://github.com/expressots/expressots/compare/1.5.0-dev...1.5.0) (2023-07-12)
29
+ ### Bug Fixes
30
+
31
+ * add generic in memory db and virtual table analysis ([#86](https://github.com/expressots/expressots/issues/86)) ([29541f9](https://github.com/expressots/expressots/commit/29541f997e47c8ac5f8cafbb0195c34c904454f4))
32
+
56
33
 
34
+ ### Continuous Integrations
35
+
36
+ * config test workflow and setup vitest ([#88](https://github.com/expressots/expressots/issues/88)) ([67316ce](https://github.com/expressots/expressots/commit/67316cece977f04f9750a5a5af6cd88dfc695e0d))
37
+
38
+ ## [1.8.0](https://github.com/expressots/expressots/compare/1.7.0...1.8.0) (2023-09-05)
57
39
 
58
40
  ### Features
59
41
 
60
- * add render engine for handlebars ([1257fe0](https://github.com/expressots/expressots/commit/1257fe08ec0bf9096af1927caddf6fa2a8d481e8))
42
+ - add benchmark folder ([#83](https://github.com/expressots/expressots/issues/83)) ([30cb1f9](https://github.com/expressots/expressots/commit/30cb1f922f980de23b0e8e896b552a0708075201))
43
+ - bump prettier from 3.0.1 to 3.0.2 ([#74](https://github.com/expressots/expressots/issues/74)) ([a66f80d](https://github.com/expressots/expressots/commit/a66f80d36967cc6112a30f422ec34a8dcb3efd66))
44
+ - bump prettier from 3.0.2 to 3.0.3 ([#80](https://github.com/expressots/expressots/issues/80)) ([59af991](https://github.com/expressots/expressots/commit/59af99177edc371c5608761c6b3f438806aba898))
61
45
 
62
- ## [1.5.0](https://github.com/expressots/expressots/compare/v1.4.2...v1.5.0) (2023-07-11)
46
+ ### Bug Fixes
63
47
 
48
+ - increase the event range for graceful shutdown ([#76](https://github.com/expressots/expressots/issues/76)) ([8e88c7e](https://github.com/expressots/expressots/commit/8e88c7e2f1f0b2091c013885a823bbda533de62b))
49
+ - remove verb should from unit tests labels ([#78](https://github.com/expressots/expressots/issues/78)) ([f37d028](https://github.com/expressots/expressots/commit/f37d02878cbf2587028d7c61ecc35c4981721eab))
50
+ - update readme ([c1f0bcd](https://github.com/expressots/expressots/commit/c1f0bcd341284b4259454b579ccaf35091b1e2e1))
51
+
52
+ ## [1.7.0](https://github.com/expressots/expressots/compare/1.6.0...1.7.0) (2023-08-14)
64
53
 
65
54
  ### Features
66
55
 
67
- * add render engine mechanic and handlebars sup ([#37](https://github.com/expressots/expressots/issues/37)) ([c9f1c61](https://github.com/expressots/expressots/commit/c9f1c616c3480575c013e1e3e6b397e9b6870fb2))
56
+ - bump @release-it/conventional-changelog from 5.1.1 to 6.0.0 ([#61](https://github.com/expressots/expressots/issues/61)) ([634304b](https://github.com/expressots/expressots/commit/634304b8228a0c6f4a4e8298961f46e4bd5c9b7c))
57
+ - bump @types/node from 18.17.4 to 20.4.9 ([#72](https://github.com/expressots/expressots/issues/72)) ([31a887d](https://github.com/expressots/expressots/commit/31a887d3a33923dba4c8d952ec60046e21f08361))
58
+
59
+ ### Bug Fixes
60
+
61
+ - add `options` parameter to `AppContainer` ([#73](https://github.com/expressots/expressots/issues/73)) ([804d5cd](https://github.com/expressots/expressots/commit/804d5cd568830584322d877b91dffaed8c952e56))
68
62
 
63
+ ## [1.6.0](https://github.com/expressots/expressots/compare/1.5.1...1.6.0) (2023-08-07)
64
+
65
+ ### Features
66
+
67
+ - add community ideas form ([#43](https://github.com/expressots/expressots/issues/43)) ([e23c936](https://github.com/expressots/expressots/commit/e23c9360cec22f21a8f44e04b290cf6aa23aef17))
68
+ - add dependabot for fetch new version of dependencies ([#60](https://github.com/expressots/expressots/issues/60)) ([9ea1033](https://github.com/expressots/expressots/commit/9ea1033809eb19f50ae779824e5e428710c4480d))
69
+ - add prisma provider configuration types in ExpressoConfig ([#71](https://github.com/expressots/expressots/issues/71)) ([4a189a2](https://github.com/expressots/expressots/commit/4a189a2d85aed320d97fff4aebc48dcb0e125adf))
70
+ - bump prettier from 3.0.0 to 3.0.1 ([#68](https://github.com/expressots/expressots/issues/68)) ([b555e19](https://github.com/expressots/expressots/commit/b555e19698fd102c681b50a96e99ad37b399bae7))
71
+ - **prettier:** add a prettier config and run it in the core package ([#58](https://github.com/expressots/expressots/issues/58)) ([2ac367b](https://github.com/expressots/expressots/commit/2ac367b3c5911216a1ffb9b542ae4bb418227eba))
69
72
 
70
73
  ### Bug Fixes
71
74
 
72
- * remove npm auto publish from ci ([#35](https://github.com/expressots/expressots/issues/35)) ([c7145aa](https://github.com/expressots/expressots/commit/c7145aa5b7e99ee774141824437c30df9e3f4882))
75
+ - add workflow for auto project and label ([#44](https://github.com/expressots/expressots/issues/44)) ([1306d18](https://github.com/expressots/expressots/commit/1306d181bc904384a3edea0be219bba891b865cf))
73
76
 
74
- ## [1.4.2](https://github.com/expressots/expressots/compare/v1.4.1...v1.4.2) (2023-06-19)
77
+ ## [1.5.1](https://github.com/expressots/expressots/compare/1.5.0...1.5.1) (2023-07-16)
75
78
 
79
+ ### Bug Fixes
80
+
81
+ - add 404 on opinionated template user usecases ([#41](https://github.com/expressots/expressots/issues/41)) ([e2920cc](https://github.com/expressots/expressots/commit/e2920cce79eaad3fc5f031f45375312cba790103))
82
+
83
+ ## [1.5.0](https://github.com/expressots/expressots/compare/1.5.0-dev...1.5.0) (2023-07-12)
84
+
85
+ ### Features
86
+
87
+ - add render engine for handlebars ([1257fe0](https://github.com/expressots/expressots/commit/1257fe08ec0bf9096af1927caddf6fa2a8d481e8))
88
+
89
+ ## [1.5.0](https://github.com/expressots/expressots/compare/v1.4.2...v1.5.0) (2023-07-11)
90
+
91
+ ### Features
92
+
93
+ - add render engine mechanic and handlebars sup ([#37](https://github.com/expressots/expressots/issues/37)) ([c9f1c61](https://github.com/expressots/expressots/commit/c9f1c616c3480575c013e1e3e6b397e9b6870fb2))
76
94
 
77
95
  ### Bug Fixes
78
96
 
79
- * error handling ([#34](https://github.com/expressots/expressots/issues/34)) ([0c8bdc8](https://github.com/expressots/expressots/commit/0c8bdc8b933f64b76299396429162c0acae24feb))
80
- * remove exclude pattern ([#33](https://github.com/expressots/expressots/issues/33)) ([9f5461b](https://github.com/expressots/expressots/commit/9f5461be50eaf4c0aa60952eef7e120228740287))
81
- * update cicd ([#32](https://github.com/expressots/expressots/issues/32)) ([c6e4820](https://github.com/expressots/expressots/commit/c6e4820bd20b8c1fc43cbc80ddb609031d893f36))
82
- * update usecases to the new error handling ([1471e25](https://github.com/expressots/expressots/commit/1471e252f9e05f4a1f034a95d248c27cdbb306cd))
97
+ - remove npm auto publish from ci ([#35](https://github.com/expressots/expressots/issues/35)) ([c7145aa](https://github.com/expressots/expressots/commit/c7145aa5b7e99ee774141824437c30df9e3f4882))
83
98
 
84
- ## [1.4.1](https://github.com/expressots/expressots/compare/v1.4.0...v1.4.1) (2023-06-14)
99
+ ## [1.4.2](https://github.com/expressots/expressots/compare/v1.4.1...v1.4.2) (2023-06-19)
100
+
101
+ ### Bug Fixes
102
+
103
+ - error handling ([#34](https://github.com/expressots/expressots/issues/34)) ([0c8bdc8](https://github.com/expressots/expressots/commit/0c8bdc8b933f64b76299396429162c0acae24feb))
104
+ - remove exclude pattern ([#33](https://github.com/expressots/expressots/issues/33)) ([9f5461b](https://github.com/expressots/expressots/commit/9f5461be50eaf4c0aa60952eef7e120228740287))
105
+ - update cicd ([#32](https://github.com/expressots/expressots/issues/32)) ([c6e4820](https://github.com/expressots/expressots/commit/c6e4820bd20b8c1fc43cbc80ddb609031d893f36))
106
+ - update usecases to the new error handling ([1471e25](https://github.com/expressots/expressots/commit/1471e252f9e05f4a1f034a95d248c27cdbb306cd))
85
107
 
108
+ ## [1.4.1](https://github.com/expressots/expressots/compare/v1.4.0...v1.4.1) (2023-06-14)
86
109
 
87
110
  ### Bug Fixes
88
111
 
89
- * add user crud, remove ping, app.container ([befb447](https://github.com/expressots/expressots/commit/befb44720185d95fab2d275f79d5d5152cba2836))
90
- * correct bootstrap function name ([1b99dcc](https://github.com/expressots/expressots/commit/1b99dcc0a3910fcc490a19db169f3799e95ca175))
91
- * report known error in middleware ([#31](https://github.com/expressots/expressots/issues/31)) ([3790e24](https://github.com/expressots/expressots/commit/3790e24e9c30f3823a5b88eb4525cc892d5866df))
92
- * update .env.example ([90c0375](https://github.com/expressots/expressots/commit/90c0375763d5d942332a6217fa23c17d4f2d7260))
93
- * update changelog ([4e117b9](https://github.com/expressots/expressots/commit/4e117b9e4463374705fee83707444e0a112b656b))
94
- * update core and template readme ([b2cc461](https://github.com/expressots/expressots/commit/b2cc461e730a24e7cadd323266fa1c862af7cf65))
95
- * update non-op template app.container ([11a3938](https://github.com/expressots/expressots/commit/11a3938a8e1fa24e95da33cad0761967c9d6cd8e))
96
- * update response type on controllers ([8ca9f5e](https://github.com/expressots/expressots/commit/8ca9f5eac99a3a921c7b6c39fb8129cee4670889))
97
- * update singleton decorator in dbInmemory ([61bd590](https://github.com/expressots/expressots/commit/61bd590d06b96d297e6da8f92638df1ee8edce6b))
112
+ - add user crud, remove ping, app.container ([befb447](https://github.com/expressots/expressots/commit/befb44720185d95fab2d275f79d5d5152cba2836))
113
+ - correct bootstrap function name ([1b99dcc](https://github.com/expressots/expressots/commit/1b99dcc0a3910fcc490a19db169f3799e95ca175))
114
+ - report known error in middleware ([#31](https://github.com/expressots/expressots/issues/31)) ([3790e24](https://github.com/expressots/expressots/commit/3790e24e9c30f3823a5b88eb4525cc892d5866df))
115
+ - update .env.example ([90c0375](https://github.com/expressots/expressots/commit/90c0375763d5d942332a6217fa23c17d4f2d7260))
116
+ - update changelog ([4e117b9](https://github.com/expressots/expressots/commit/4e117b9e4463374705fee83707444e0a112b656b))
117
+ - update core and template readme ([b2cc461](https://github.com/expressots/expressots/commit/b2cc461e730a24e7cadd323266fa1c862af7cf65))
118
+ - update non-op template app.container ([11a3938](https://github.com/expressots/expressots/commit/11a3938a8e1fa24e95da33cad0761967c9d6cd8e))
119
+ - update response type on controllers ([8ca9f5e](https://github.com/expressots/expressots/commit/8ca9f5eac99a3a921c7b6c39fb8129cee4670889))
120
+ - update singleton decorator in dbInmemory ([61bd590](https://github.com/expressots/expressots/commit/61bd590d06b96d297e6da8f92638df1ee8edce6b))
98
121
 
99
122
  ## [1.4.0](https://github.com/expressots/expressots/compare/v1.3.0...v1.4.0) (2023-05-14)
100
123
 
101
- * add DI (dependency injection) singleton, transient, scope to container, providers, entities, etc
124
+ - add DI (dependency injection) singleton, transient, scope to container, providers, entities, etc
102
125
 
103
126
  ### Bug Fixes
104
127
 
105
- * update sponsor link on package
106
- * add example with controller only ([11b4ce3](https://github.com/expressots/expressots/commit/11b4ce3124482122a4f47fb27b7a1b1e02731621))
107
- * opinionated template ientity id ([dd50ca0](https://github.com/expressots/expressots/commit/dd50ca0926c98890cbe1342f804ca34152c4a9f9))
128
+ - update sponsor link on package
129
+ - add example with controller only ([11b4ce3](https://github.com/expressots/expressots/commit/11b4ce3124482122a4f47fb27b7a1b1e02731621))
130
+ - opinionated template ientity id ([dd50ca0](https://github.com/expressots/expressots/commit/dd50ca0926c98890cbe1342f804ca34152c4a9f9))
108
131
 
109
132
  ## [1.3.0](https://github.com/expressots/expressots/compare/v1.2.1...v1.3.0) (2023-04-21)
110
133
 
111
-
112
134
  ### Features
113
135
 
114
- * 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))
115
-
136
+ - 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))
116
137
 
117
138
  ### Bug Fixes
118
139
 
119
- * add gitignore on opinionated template ([315d355](https://github.com/expressots/expressots/commit/315d355ed87eb6be85daddc250289d5e0d41cd21))
120
- * findall use case query db in memory ([ff8feea](https://github.com/expressots/expressots/commit/ff8feeaf36d0b74eebd9ab4e22f1910cff0a4df8))
121
- * the number of constructor arguments ([ccf2a48](https://github.com/expressots/expressots/commit/ccf2a4878e795e0182608546eae8cd83e3bea775))
122
- * update core pkg templates to always download latest ([ca443eb](https://github.com/expressots/expressots/commit/ca443eb6be103725c73442f49e2fec14d797bba1))
140
+ - add gitignore on opinionated template ([315d355](https://github.com/expressots/expressots/commit/315d355ed87eb6be85daddc250289d5e0d41cd21))
141
+ - findall use case query db in memory ([ff8feea](https://github.com/expressots/expressots/commit/ff8feeaf36d0b74eebd9ab4e22f1910cff0a4df8))
142
+ - the number of constructor arguments ([ccf2a48](https://github.com/expressots/expressots/commit/ccf2a4878e795e0182608546eae8cd83e3bea775))
143
+ - update core pkg templates to always download latest ([ca443eb](https://github.com/expressots/expressots/commit/ca443eb6be103725c73442f49e2fec14d797bba1))
123
144
 
124
145
  ## [1.2.1](https://github.com/expressots/expressots/compare/v1.2.0...v1.2.1) (2023-04-18)
125
146
 
126
-
127
147
  ### Features
128
148
 
129
- * add bug report template ([8a160c4](https://github.com/expressots/expressots/commit/8a160c4b0b53be39a0fa42315936291be6694c8c))
130
- * add feature request template ([9d264c6](https://github.com/expressots/expressots/commit/9d264c68e44fee754c906846aaa7a7c89cb6b571))
131
-
149
+ - add bug report template ([8a160c4](https://github.com/expressots/expressots/commit/8a160c4b0b53be39a0fa42315936291be6694c8c))
150
+ - add feature request template ([9d264c6](https://github.com/expressots/expressots/commit/9d264c68e44fee754c906846aaa7a7c89cb6b571))
132
151
 
133
152
  ### Bug Fixes
134
153
 
135
- * add expresso config ([086ba59](https://github.com/expressots/expressots/commit/086ba59aba1d430877c3807eb77df9460413dbce))
136
- * add PR template ([1ce4b65](https://github.com/expressots/expressots/commit/1ce4b651a16d602ed459049eeac4200bb80e7651))
137
- * config-path for build ([72d8086](https://github.com/expressots/expressots/commit/72d8086cc1067add1a3d69c8c13bc5b5d6b7e024))
138
- * expose express.json() config ([717f677](https://github.com/expressots/expressots/commit/717f6779e033d0e616f7fd464b81edb6bf95c1a9))
139
- * template import errors from dtos ([#25](https://github.com/expressots/expressots/issues/25)) ([471e311](https://github.com/expressots/expressots/commit/471e3114a4afa9a9dc4af16b872e75f6ef436ae3))
140
- * update doc contributor ([75cc0cc](https://github.com/expressots/expressots/commit/75cc0cc6f7a0b0527b566c5a4e842c9d13c68ee9))
141
- * update expressots version ([e170a1f](https://github.com/expressots/expressots/commit/e170a1fd1aab61fd2403707a54c8b027139eb26c))
142
- * update jest config ([6b33fd6](https://github.com/expressots/expressots/commit/6b33fd6117d32a29d2516831b3a8e7ecd16dfb65))
143
- * update non-opinionated config ([1b10e0e](https://github.com/expressots/expressots/commit/1b10e0e3ba9f679b2cc59d4c3ec75a8c2e238d43))
144
- * update opinionated template ([b7bde50](https://github.com/expressots/expressots/commit/b7bde50ec10b9ad9c2d855d1189ad3ccf4e68108))
145
- * update opinionated template ([cae55a0](https://github.com/expressots/expressots/commit/cae55a04d1282c08668ee5ef12b9976400e2acfd))
146
- * update templates ([e58af09](https://github.com/expressots/expressots/commit/e58af0995c8f71ad104d1cc4cab79e74ba257bb1))
147
- * update test coverage path ([0804c5c](https://github.com/expressots/expressots/commit/0804c5c4b6fd4437a69330a40621408273ffdfac))
154
+ - add expresso config ([086ba59](https://github.com/expressots/expressots/commit/086ba59aba1d430877c3807eb77df9460413dbce))
155
+ - add PR template ([1ce4b65](https://github.com/expressots/expressots/commit/1ce4b651a16d602ed459049eeac4200bb80e7651))
156
+ - config-path for build ([72d8086](https://github.com/expressots/expressots/commit/72d8086cc1067add1a3d69c8c13bc5b5d6b7e024))
157
+ - expose express.json() config ([717f677](https://github.com/expressots/expressots/commit/717f6779e033d0e616f7fd464b81edb6bf95c1a9))
158
+ - template import errors from dtos ([#25](https://github.com/expressots/expressots/issues/25)) ([471e311](https://github.com/expressots/expressots/commit/471e3114a4afa9a9dc4af16b872e75f6ef436ae3))
159
+ - update doc contributor ([75cc0cc](https://github.com/expressots/expressots/commit/75cc0cc6f7a0b0527b566c5a4e842c9d13c68ee9))
160
+ - update expressots version ([e170a1f](https://github.com/expressots/expressots/commit/e170a1fd1aab61fd2403707a54c8b027139eb26c))
161
+ - update jest config ([6b33fd6](https://github.com/expressots/expressots/commit/6b33fd6117d32a29d2516831b3a8e7ecd16dfb65))
162
+ - update non-opinionated config ([1b10e0e](https://github.com/expressots/expressots/commit/1b10e0e3ba9f679b2cc59d4c3ec75a8c2e238d43))
163
+ - update opinionated template ([b7bde50](https://github.com/expressots/expressots/commit/b7bde50ec10b9ad9c2d855d1189ad3ccf4e68108))
164
+ - update opinionated template ([cae55a0](https://github.com/expressots/expressots/commit/cae55a04d1282c08668ee5ef12b9976400e2acfd))
165
+ - update templates ([e58af09](https://github.com/expressots/expressots/commit/e58af0995c8f71ad104d1cc4cab79e74ba257bb1))
166
+ - update test coverage path ([0804c5c](https://github.com/expressots/expressots/commit/0804c5c4b6fd4437a69330a40621408273ffdfac))
148
167
 
149
168
  ## [1.2.0](https://github.com/expressots/expressots/compare/v1.1.0...v1.2.0) (2023-04-08)
150
169
 
151
-
152
170
  ### Features
153
171
 
154
- * add doc & config types for cli ([a72db25](https://github.com/expressots/expressots/commit/a72db25088a8c2d0a18cd8fc71dde40e01cd4c22))
155
-
172
+ - add doc & config types for cli ([a72db25](https://github.com/expressots/expressots/commit/a72db25088a8c2d0a18cd8fc71dde40e01cd4c22))
156
173
 
157
174
  ### Bug Fixes
158
175
 
159
- * template folder path issue ([babdce9](https://github.com/expressots/expressots/commit/babdce9367f85ddd2075c4bed854ab83ee339add))
176
+ - template folder path issue ([babdce9](https://github.com/expressots/expressots/commit/babdce9367f85ddd2075c4bed854ab83ee339add))
160
177
 
161
178
  ## [1.1.1](https://github.com/expressots/expressots/compare/v1.1.0...v1.1.1) (2023-04-04)
162
179
 
163
-
164
180
  ### Bug Fixes
165
181
 
166
- * template folder path issue ([babdce9](https://github.com/expressots/expressots/commit/babdce9367f85ddd2075c4bed854ab83ee339add))
182
+ - template folder path issue ([babdce9](https://github.com/expressots/expressots/commit/babdce9367f85ddd2075c4bed854ab83ee339add))
167
183
 
168
184
  ## [1.1.0](https://github.com/expressots/expressots/compare/v1.1.0-42-gc6f184868daa1b6862337621c69b5370b70a2772...v1.1.0) (2023-03-31)
169
185
 
@@ -175,7 +191,7 @@
175
191
 
176
192
  ## [1.2.0](https://github.com/expressots/expressots/compare/v1.1.0-35-g27548a8d24a0891d1d04fca1ba131ad585fba5ef...v1.2.0) (2023-03-31)
177
193
 
178
- * feat: add cjs/esm (92f858f)
194
+ - feat: add cjs/esm (92f858f)
179
195
 
180
196
  ## [1.1.0](https://github.com/expressots/expressots/compare/v1.1.0-32-gd0aa36eefab521c3be83d72c873e3d34d4ea88eb...v1.1.0) (2023-03-31)
181
197
 
@@ -183,84 +199,75 @@
183
199
 
184
200
  ## [1.1.0](https://github.com/expressots/expressots/compare/v0.0.2...v1.1.0) (2023-02-19)
185
201
 
186
-
187
202
  ### Features
188
203
 
189
- * add eslint prettier config ([906cdcc](https://github.com/expressots/expressots/commit/906cdcc0ebf00bee55c8cab66e95dd74c9296cb8))
190
- * add opinionated template ([d1eb222](https://github.com/expressots/expressots/commit/d1eb222016c809a1a4576cce5b51660d55ad7c19))
191
- * add readme ([557e1ff](https://github.com/expressots/expressots/commit/557e1ffcd41d1e482372183a0ea72820531740d7))
192
- * update 01_base template ([d289c57](https://github.com/expressots/expressots/commit/d289c5752bb78ad6bce7f35fcdb7019e7cc38b6a))
193
-
204
+ - add eslint prettier config ([906cdcc](https://github.com/expressots/expressots/commit/906cdcc0ebf00bee55c8cab66e95dd74c9296cb8))
205
+ - add opinionated template ([d1eb222](https://github.com/expressots/expressots/commit/d1eb222016c809a1a4576cce5b51660d55ad7c19))
206
+ - add readme ([557e1ff](https://github.com/expressots/expressots/commit/557e1ffcd41d1e482372183a0ea72820531740d7))
207
+ - update 01_base template ([d289c57](https://github.com/expressots/expressots/commit/d289c5752bb78ad6bce7f35fcdb7019e7cc38b6a))
194
208
 
195
209
  ### Bug Fixes
196
210
 
197
- * add ping controller ([ca7b005](https://github.com/expressots/expressots/commit/ca7b005be099eadc35b5e6b96aaf82c0e3840c81))
198
- * fix index.js main on package ([26596b7](https://github.com/expressots/expressots/commit/26596b7982143e63186461bde1324a81a8901446))
199
- * fix jest compilation error ([9c5be2e](https://github.com/expressots/expressots/commit/9c5be2e8a1dc062618d048183dfeef08d67d8e70))
200
- * fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
201
- * logo update on doc ([b2fe55b](https://github.com/expressots/expressots/commit/b2fe55b54fcac09bf261b5ea5cab4ebdbe20dee1))
202
- * logo update on doc, build update ([b36889d](https://github.com/expressots/expressots/commit/b36889d513ed07678b43f7107ef9cd49ab5f8afa))
203
- * non opinionated folder and prettier ([61d1e1b](https://github.com/expressots/expressots/commit/61d1e1b45e9bd240d4a6fd12a71f814e0426a436))
204
- * prettier eslint jest setup ([0f29452](https://github.com/expressots/expressots/commit/0f29452c796abefe205ece8b943efda24b383905))
205
- * remove test-app ([767c7a5](https://github.com/expressots/expressots/commit/767c7a54ea65c228a94ba3d63e5b6739c474a96e))
206
- * set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
207
- * update main remove index.js ([8b40b11](https://github.com/expressots/expressots/commit/8b40b11c51da728db4f8760e75fee1e2724e98e0))
208
- * update readme ([a2ef784](https://github.com/expressots/expressots/commit/a2ef7849a1c1466f8737f263ad1728f5d30b25ec))
211
+ - add ping controller ([ca7b005](https://github.com/expressots/expressots/commit/ca7b005be099eadc35b5e6b96aaf82c0e3840c81))
212
+ - fix index.js main on package ([26596b7](https://github.com/expressots/expressots/commit/26596b7982143e63186461bde1324a81a8901446))
213
+ - fix jest compilation error ([9c5be2e](https://github.com/expressots/expressots/commit/9c5be2e8a1dc062618d048183dfeef08d67d8e70))
214
+ - fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
215
+ - logo update on doc ([b2fe55b](https://github.com/expressots/expressots/commit/b2fe55b54fcac09bf261b5ea5cab4ebdbe20dee1))
216
+ - logo update on doc, build update ([b36889d](https://github.com/expressots/expressots/commit/b36889d513ed07678b43f7107ef9cd49ab5f8afa))
217
+ - non opinionated folder and prettier ([61d1e1b](https://github.com/expressots/expressots/commit/61d1e1b45e9bd240d4a6fd12a71f814e0426a436))
218
+ - prettier eslint jest setup ([0f29452](https://github.com/expressots/expressots/commit/0f29452c796abefe205ece8b943efda24b383905))
219
+ - remove test-app ([767c7a5](https://github.com/expressots/expressots/commit/767c7a54ea65c228a94ba3d63e5b6739c474a96e))
220
+ - set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
221
+ - update main remove index.js ([8b40b11](https://github.com/expressots/expressots/commit/8b40b11c51da728db4f8760e75fee1e2724e98e0))
222
+ - update readme ([a2ef784](https://github.com/expressots/expressots/commit/a2ef7849a1c1466f8737f263ad1728f5d30b25ec))
209
223
 
210
224
  ## [0.0.7](https://github.com/expressots/expressots/compare/v0.0.2...v0.0.7) (2023-02-18)
211
225
 
212
-
213
226
  ### Bug Fixes
214
227
 
215
- * fix release step ([6e4d7b9](https://github.com/expressots/expressots/commit/6e4d7b956833cf9f956c4dbb0e063d9e50f92e3e))
216
- * fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
217
- * set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
228
+ - fix release step ([6e4d7b9](https://github.com/expressots/expressots/commit/6e4d7b956833cf9f956c4dbb0e063d9e50f92e3e))
229
+ - fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
230
+ - set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
218
231
 
219
232
  ## [0.0.6](https://github.com/expressots/expressots/compare/v0.0.2...v0.0.6) (2023-02-17)
220
233
 
221
-
222
234
  ### Bug Fixes
223
235
 
224
- * fix pipeline release ([69e3fc4](https://github.com/expressots/expressots/commit/69e3fc497b8b4c79556663a768c1aab417c5bca6))
225
- * fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
226
- * set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
236
+ - fix pipeline release ([69e3fc4](https://github.com/expressots/expressots/commit/69e3fc497b8b4c79556663a768c1aab417c5bca6))
237
+ - fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
238
+ - set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
227
239
 
228
240
  ## [0.0.5](https://github.com/expressots/expressots/compare/v0.0.2...v0.0.5) (2023-02-17)
229
241
 
230
-
231
242
  ### Bug Fixes
232
243
 
233
- * fix pipeline on push ([da20e93](https://github.com/expressots/expressots/commit/da20e93665a7fd51f449f0c6ae71cd485028d1f4))
234
- * fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
235
- * set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
244
+ - fix pipeline on push ([da20e93](https://github.com/expressots/expressots/commit/da20e93665a7fd51f449f0c6ae71cd485028d1f4))
245
+ - fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
246
+ - set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
236
247
 
237
248
  ## [0.0.4](https://github.com/expressots/expressots/compare/v0.0.2...v0.0.4) (2023-02-17)
238
249
 
239
-
240
250
  ### Bug Fixes
241
251
 
242
- * fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
243
- * set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
244
- * update pipeline ([27dd961](https://github.com/expressots/expressots/commit/27dd961230f5cd2b1b02937f8c77ead9e983e537))
252
+ - fix release tag pipeline ([#12](https://github.com/expressots/expressots/issues/12)) ([d2a5491](https://github.com/expressots/expressots/commit/d2a5491dce149feb2a7b143d57ba1e08d8a2d68b))
253
+ - set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
254
+ - update pipeline ([27dd961](https://github.com/expressots/expressots/commit/27dd961230f5cd2b1b02937f8c77ead9e983e537))
245
255
 
246
256
  ## [0.0.3](https://github.com/expressots/expressots/compare/v0.0.2...v0.0.3) (2023-02-17)
247
257
 
248
-
249
258
  ### Bug Fixes
250
259
 
251
- * fix release tag pipeline ([ed03d24](https://github.com/expressots/expressots/commit/ed03d24e2696279aa04c8988e2c52ba7209a7bbd))
252
- * set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
260
+ - fix release tag pipeline ([ed03d24](https://github.com/expressots/expressots/commit/ed03d24e2696279aa04c8988e2c52ba7209a7bbd))
261
+ - set pipeline only pr merge ([2936442](https://github.com/expressots/expressots/commit/293644285f4dd611ab6b600c462a6559f9625605))
253
262
 
254
263
  ## [0.0.2](https://github.com/expressots/expressots/compare/v0.1.1...v0.0.2) (2023-02-17)
255
264
 
256
-
257
265
  ### Bug Fixes
258
266
 
259
- * fix pipeline for tag name ([b9ec52d](https://github.com/expressots/expressots/commit/b9ec52dc065763185f69364d8f083b1a95fa37e0))
267
+ - fix pipeline for tag name ([b9ec52d](https://github.com/expressots/expressots/commit/b9ec52dc065763185f69364d8f083b1a95fa37e0))
260
268
 
261
269
  ## [0.0.1](https://github.com/expressots/expressots/compare/v0.1.1...v0.0.1) (2023-02-17)
262
270
 
263
-
264
271
  ### Bug Fixes
265
272
 
266
- * fix pipeline for tag name ([b9ec52d](https://github.com/expressots/expressots/commit/b9ec52dc065763185f69364d8f083b1a95fa37e0))
273
+ - fix pipeline for tag name ([b9ec52d](https://github.com/expressots/expressots/commit/b9ec52dc065763185f69364d8f083b1a95fa37e0))
@@ -83,9 +83,10 @@ let Application = Application_1 = class Application {
83
83
  app.use(middleware);
84
84
  });
85
85
  });
86
+ expressServer.setErrorConfig((app) => {
87
+ app.use(error_handler_middleware_1.default);
88
+ });
86
89
  this.app = expressServer.build();
87
- /* Add the error handler middleware */
88
- this.app.use(error_handler_middleware_1.default);
89
90
  return this;
90
91
  }
91
92
  /**
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bgColorCodes = exports.colorCodes = exports.ColorStyle = void 0;
4
+ /**
5
+ * Mapping of text color codes.
6
+ *
7
+ * @remarks
8
+ * Defines the ANSI escape codes for the corresponding colors in the terminal.
9
+ */
10
+ const colorCodes = {
11
+ red: "\x1b[31m",
12
+ green: "\x1b[32m",
13
+ yellow: "\x1b[33m",
14
+ blue: "\x1b[34m",
15
+ white: "\x1b[37m",
16
+ black: "\x1b[30m",
17
+ none: "\x1b[0m",
18
+ };
19
+ exports.colorCodes = colorCodes;
20
+ /**
21
+ * ANSI escape color codes mapping for different background colors.
22
+ */
23
+ const bgColorCodes = {
24
+ red: "\x1b[41m",
25
+ green: "\x1b[42m",
26
+ yellow: "\x1b[43m",
27
+ blue: "\x1b[44m",
28
+ white: "\x1b[47m",
29
+ black: "\x1b[40m",
30
+ none: "\x1b[0m",
31
+ };
32
+ exports.bgColorCodes = bgColorCodes;
33
+ /**
34
+ * Enum representing possible color styles for console output.
35
+ *
36
+ * @remarks
37
+ * Enum values correspond to the string representations of colors.
38
+ */
39
+ var ColorStyle;
40
+ (function (ColorStyle) {
41
+ ColorStyle["None"] = "none";
42
+ ColorStyle["Yellow"] = "yellow";
43
+ ColorStyle["Blue"] = "blue";
44
+ ColorStyle["Green"] = "green";
45
+ ColorStyle["Red"] = "red";
46
+ })(ColorStyle || (exports.ColorStyle = ColorStyle = {}));
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.packageResolver = void 0;
4
+ /* eslint-disable @typescript-eslint/no-explicit-any */
5
+ const logger_service_1 = require("../provider/logger/logger-service");
6
+ /**
7
+ * Resolve package from the current working directory.
8
+ * @param packageName
9
+ * @param options
10
+ * @returns
11
+ */
12
+ function packageResolver(packageName, ...options) {
13
+ const logger = new logger_service_1.Logger();
14
+ try {
15
+ const hasPackage = require.resolve(packageName, {
16
+ paths: [process.cwd()],
17
+ });
18
+ if (hasPackage) {
19
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
20
+ const packageResolved = require(hasPackage);
21
+ if (typeof packageResolved === "function") {
22
+ return packageResolved(...options);
23
+ }
24
+ if (packageResolved.default &&
25
+ typeof packageResolved.default === "function") {
26
+ return packageResolved.default(...options);
27
+ }
28
+ return packageResolved;
29
+ }
30
+ }
31
+ catch (error) {
32
+ logger.warn(`Package [${packageName}] not installed. Please install it using your package manager.`, "package-resolver");
33
+ }
34
+ }
35
+ exports.packageResolver = packageResolver;
@@ -14,25 +14,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
14
14
  step((generator = generator.apply(thisArg, _arguments || [])).next());
15
15
  });
16
16
  };
17
- var __importDefault = (this && this.__importDefault) || function (mod) {
18
- return (mod && mod.__esModule) ? mod : { "default": mod };
19
- };
20
17
  var Console_1;
21
18
  Object.defineProperty(exports, "__esModule", { value: true });
22
19
  exports.Console = void 0;
23
- const chalk_1 = __importDefault(require("chalk"));
24
20
  const inversify_binding_decorators_1 = require("inversify-binding-decorators");
25
- /**
26
- * Enum representing possible color styles for console output.
27
- */
28
- var ColorStyle;
29
- (function (ColorStyle) {
30
- ColorStyle[ColorStyle["None"] = 0] = "None";
31
- ColorStyle[ColorStyle["Yellow"] = 1] = "Yellow";
32
- ColorStyle[ColorStyle["Blue"] = 2] = "Blue";
33
- ColorStyle[ColorStyle["Green"] = 3] = "Green";
34
- ColorStyle[ColorStyle["Red"] = 4] = "Red";
35
- })(ColorStyle || (ColorStyle = {}));
21
+ const color_service_provider_1 = require("../common/color-service.provider");
36
22
  /**
37
23
  * The Console class provides methods for displaying styled messages in the console.
38
24
  * @provide Console
@@ -45,16 +31,9 @@ let Console = Console_1 = class Console {
45
31
  */
46
32
  printColor(message, colorStyle) {
47
33
  return __awaiter(this, void 0, void 0, function* () {
48
- switch (colorStyle) {
49
- case ColorStyle.Yellow:
50
- return console.log(chalk_1.default.bgYellow.black(message));
51
- case ColorStyle.Blue:
52
- return console.log(chalk_1.default.bgBlue.black(message));
53
- case ColorStyle.Green:
54
- return console.log(chalk_1.default.bgGreen.black(message));
55
- case ColorStyle.Red:
56
- return console.log(chalk_1.default.bgRed.black(message));
57
- }
34
+ const textColor = "black";
35
+ const bgColor = colorStyle;
36
+ console.log(`${color_service_provider_1.bgColorCodes[bgColor]}${color_service_provider_1.colorCodes[textColor]}${message}\x1b[0m`);
58
37
  });
59
38
  }
60
39
  /**
@@ -63,27 +42,25 @@ let Console = Console_1 = class Console {
63
42
  * @param environment - The server environment.
64
43
  * @param consoleMessage - Optional application message details for console output.
65
44
  */
66
- messageServer(
67
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
68
- port, environment, consoleMessage) {
45
+ messageServer(port, environment, consoleMessage) {
69
46
  return __awaiter(this, void 0, void 0, function* () {
70
47
  const appConsoleMessage = {
71
48
  appName: (consoleMessage === null || consoleMessage === void 0 ? void 0 : consoleMessage.appName) || "Application",
72
49
  appVersion: (consoleMessage === null || consoleMessage === void 0 ? void 0 : consoleMessage.appVersion) || "not provided",
73
50
  };
74
- let terminalColor = ColorStyle.None;
51
+ let terminalColor = color_service_provider_1.ColorStyle.None;
75
52
  switch (environment.toLowerCase()) {
76
53
  case "development":
77
- terminalColor = ColorStyle.Yellow;
54
+ terminalColor = color_service_provider_1.ColorStyle.Yellow;
78
55
  break;
79
56
  case "staging":
80
- terminalColor = ColorStyle.Blue;
57
+ terminalColor = color_service_provider_1.ColorStyle.Blue;
81
58
  break;
82
59
  case "production":
83
- terminalColor = ColorStyle.Green;
60
+ terminalColor = color_service_provider_1.ColorStyle.Green;
84
61
  break;
85
62
  default:
86
- terminalColor = ColorStyle.Red;
63
+ terminalColor = color_service_provider_1.ColorStyle.Red;
87
64
  break;
88
65
  }
89
66
  this.printColor(`${appConsoleMessage.appName} version ${appConsoleMessage.appVersion} is running on ` +
@@ -21,7 +21,6 @@ var BaseController_1;
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.BaseController = void 0;
23
23
  const inversify_binding_decorators_1 = require("inversify-binding-decorators");
24
- const logger_1 = require("../logger");
25
24
  /**
26
25
  * The BaseController class is an abstract base class for controllers.
27
26
  * It provides methods for handling use case calls and sending appropriate responses.
@@ -84,7 +83,6 @@ let BaseController = BaseController_1 = class BaseController {
84
83
  return new Promise((resolve, reject) => {
85
84
  res.render(template, options, (err, compiled) => {
86
85
  if (err) {
87
- (0, logger_1.log)(logger_1.LogLevel.Error, err.message, "base-controller");
88
86
  reject(err);
89
87
  }
90
88
  resolve(compiled);