@expressots/core 2.3.0 → 2.5.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 (223) hide show
  1. package/lib/CHANGELOG.md +71 -26
  2. package/lib/cjs/application/app-container.js +10 -2
  3. package/lib/cjs/application/application-factory.js +33 -44
  4. package/lib/cjs/console/console.js +26 -39
  5. package/lib/cjs/controller/base-controller.js +2 -13
  6. package/lib/cjs/error/app-error.js +11 -0
  7. package/lib/cjs/error/report.js +4 -1
  8. package/lib/cjs/error/status-code.js +8 -2
  9. package/lib/cjs/middleware/middleware-resolver.js +16 -13
  10. package/lib/cjs/middleware/middleware-service.js +33 -11
  11. package/lib/cjs/provider/dto-validator/dto-validator.provider.js +3 -12
  12. package/lib/cjs/provider/environment/env-validator.provider.js +2 -2
  13. package/lib/cjs/provider/logger/logger-service.js +1 -0
  14. package/lib/cjs/provider/provider-service.js +2 -0
  15. package/lib/cjs/types/application/app-container.d.ts +0 -1
  16. package/lib/cjs/types/application/application-factory.d.ts +0 -1
  17. package/lib/cjs/types/application/index.d.ts +0 -1
  18. package/lib/cjs/types/common/color-service.provider.d.ts +0 -1
  19. package/lib/cjs/types/common/index.d.ts +0 -1
  20. package/lib/cjs/types/common/package-resolver.provider.d.ts +0 -1
  21. package/lib/cjs/types/common/project-config.provider.d.ts +0 -1
  22. package/lib/cjs/types/console/console.d.ts +0 -1
  23. package/lib/cjs/types/console/index.d.ts +0 -1
  24. package/lib/cjs/types/container-module/container-module.d.ts +0 -1
  25. package/lib/cjs/types/container-module/index.d.ts +0 -1
  26. package/lib/cjs/types/controller/base-controller.d.ts +2 -3
  27. package/lib/cjs/types/controller/index.d.ts +0 -1
  28. package/lib/cjs/types/decorator/index.d.ts +0 -1
  29. package/lib/cjs/types/decorator/scope-binding.d.ts +0 -1
  30. package/lib/cjs/types/error/app-error.d.ts +0 -1
  31. package/lib/cjs/types/error/error-handler-middleware.d.ts +0 -1
  32. package/lib/cjs/types/error/index.d.ts +0 -1
  33. package/lib/cjs/types/error/report.d.ts +0 -1
  34. package/lib/cjs/types/error/status-code.d.ts +0 -1
  35. package/lib/cjs/types/index.d.ts +0 -1
  36. package/lib/cjs/types/middleware/index.d.ts +2 -1
  37. package/lib/cjs/types/middleware/interfaces/body-parser.interface.d.ts +0 -1
  38. package/lib/cjs/types/middleware/interfaces/compression.interface.d.ts +0 -1
  39. package/lib/cjs/types/middleware/interfaces/cookie-parser.interface.d.ts +0 -1
  40. package/lib/cjs/types/middleware/interfaces/cookie-session/cookie-session.interface.d.ts +0 -1
  41. package/lib/cjs/types/middleware/interfaces/cookie-session/keygrip.interface.d.ts +0 -1
  42. package/lib/cjs/types/middleware/interfaces/cors.interface.d.ts +0 -1
  43. package/lib/cjs/types/middleware/interfaces/express-rate-limit.interface.d.ts +292 -0
  44. package/lib/cjs/types/middleware/interfaces/helmet.interface.d.ts +210 -0
  45. package/lib/cjs/types/middleware/interfaces/morgan.interface.d.ts +0 -1
  46. package/lib/cjs/types/middleware/interfaces/serve-favicon.interface.d.ts +0 -1
  47. package/lib/cjs/types/middleware/interfaces/serve-static.interface.d.ts +0 -1
  48. package/lib/cjs/types/middleware/middleware-resolver.d.ts +0 -1
  49. package/lib/cjs/types/middleware/middleware-service.d.ts +24 -1
  50. package/lib/cjs/types/provider/dto-validator/dto-validator.provider.d.ts +0 -1
  51. package/lib/cjs/types/provider/environment/env-validator.provider.d.ts +0 -1
  52. package/lib/cjs/types/provider/index.d.ts +0 -1
  53. package/lib/cjs/types/provider/logger/logger-service.d.ts +0 -1
  54. package/lib/cjs/types/provider/provider-service.d.ts +0 -1
  55. package/lib/cjs/types/render/handlebars.interface.d.ts +0 -1
  56. package/lib/cjs/types/render/index.d.ts +0 -1
  57. package/lib/cjs/types/render/render.type.d.ts +0 -1
  58. package/lib/package.json +7 -8
  59. package/package.json +7 -8
  60. package/lib/cjs/types/application/app-container.d.ts.map +0 -1
  61. package/lib/cjs/types/application/application-factory.d.ts.map +0 -1
  62. package/lib/cjs/types/application/index.d.ts.map +0 -1
  63. package/lib/cjs/types/common/color-service.provider.d.ts.map +0 -1
  64. package/lib/cjs/types/common/index.d.ts.map +0 -1
  65. package/lib/cjs/types/common/package-resolver.provider.d.ts.map +0 -1
  66. package/lib/cjs/types/common/project-config.provider.d.ts.map +0 -1
  67. package/lib/cjs/types/console/console.d.ts.map +0 -1
  68. package/lib/cjs/types/console/index.d.ts.map +0 -1
  69. package/lib/cjs/types/container-module/container-module.d.ts.map +0 -1
  70. package/lib/cjs/types/container-module/index.d.ts.map +0 -1
  71. package/lib/cjs/types/controller/base-controller.d.ts.map +0 -1
  72. package/lib/cjs/types/controller/index.d.ts.map +0 -1
  73. package/lib/cjs/types/decorator/index.d.ts.map +0 -1
  74. package/lib/cjs/types/decorator/scope-binding.d.ts.map +0 -1
  75. package/lib/cjs/types/error/app-error.d.ts.map +0 -1
  76. package/lib/cjs/types/error/error-handler-middleware.d.ts.map +0 -1
  77. package/lib/cjs/types/error/index.d.ts.map +0 -1
  78. package/lib/cjs/types/error/report.d.ts.map +0 -1
  79. package/lib/cjs/types/error/status-code.d.ts.map +0 -1
  80. package/lib/cjs/types/index.d.ts.map +0 -1
  81. package/lib/cjs/types/middleware/index.d.ts.map +0 -1
  82. package/lib/cjs/types/middleware/interfaces/body-parser.interface.d.ts.map +0 -1
  83. package/lib/cjs/types/middleware/interfaces/compression.interface.d.ts.map +0 -1
  84. package/lib/cjs/types/middleware/interfaces/cookie-parser.interface.d.ts.map +0 -1
  85. package/lib/cjs/types/middleware/interfaces/cookie-session/cookie-session.interface.d.ts.map +0 -1
  86. package/lib/cjs/types/middleware/interfaces/cookie-session/keygrip.interface.d.ts.map +0 -1
  87. package/lib/cjs/types/middleware/interfaces/cors.interface.d.ts.map +0 -1
  88. package/lib/cjs/types/middleware/interfaces/morgan.interface.d.ts.map +0 -1
  89. package/lib/cjs/types/middleware/interfaces/serve-favicon.interface.d.ts.map +0 -1
  90. package/lib/cjs/types/middleware/interfaces/serve-static.interface.d.ts.map +0 -1
  91. package/lib/cjs/types/middleware/middleware-resolver.d.ts.map +0 -1
  92. package/lib/cjs/types/middleware/middleware-service.d.ts.map +0 -1
  93. package/lib/cjs/types/provider/dto-validator/dto-validator.provider.d.ts.map +0 -1
  94. package/lib/cjs/types/provider/environment/env-validator.provider.d.ts.map +0 -1
  95. package/lib/cjs/types/provider/index.d.ts.map +0 -1
  96. package/lib/cjs/types/provider/logger/logger-service.d.ts.map +0 -1
  97. package/lib/cjs/types/provider/provider-service.d.ts.map +0 -1
  98. package/lib/cjs/types/render/handlebars.interface.d.ts.map +0 -1
  99. package/lib/cjs/types/render/index.d.ts.map +0 -1
  100. package/lib/cjs/types/render/render.type.d.ts.map +0 -1
  101. package/lib/esm/application/app-container.js +0 -82
  102. package/lib/esm/application/application-factory.js +0 -72
  103. package/lib/esm/application/index.js +0 -7
  104. package/lib/esm/common/color-service.provider.js +0 -46
  105. package/lib/esm/common/package-resolver.provider.js +0 -35
  106. package/lib/esm/console/console.js +0 -61
  107. package/lib/esm/console/index.js +0 -5
  108. package/lib/esm/container-module/container-module.js +0 -111
  109. package/lib/esm/container-module/index.js +0 -6
  110. package/lib/esm/controller/base-controller.js +0 -75
  111. package/lib/esm/controller/index.js +0 -5
  112. package/lib/esm/decorator/index.js +0 -17
  113. package/lib/esm/decorator/scope-binding.js +0 -44
  114. package/lib/esm/error/app-error.js +0 -37
  115. package/lib/esm/error/error-handler-middleware.js +0 -28
  116. package/lib/esm/error/index.js +0 -9
  117. package/lib/esm/error/report.js +0 -57
  118. package/lib/esm/error/status-code.js +0 -89
  119. package/lib/esm/index.mjs +0 -26
  120. package/lib/esm/middleware/index.js +0 -29
  121. package/lib/esm/middleware/interfaces/body-parser.interface.js +0 -2
  122. package/lib/esm/middleware/interfaces/compression.interface.js +0 -2
  123. package/lib/esm/middleware/interfaces/cookie-parser.interface.js +0 -2
  124. package/lib/esm/middleware/interfaces/cookie-session/cookie-session.interface.js +0 -2
  125. package/lib/esm/middleware/interfaces/cookie-session/keygrip.interface.js +0 -2
  126. package/lib/esm/middleware/interfaces/cors.interface.js +0 -2
  127. package/lib/esm/middleware/interfaces/morgan.interface.js +0 -2
  128. package/lib/esm/middleware/interfaces/serve-favicon.interface.js +0 -2
  129. package/lib/esm/middleware/interfaces/serve-static.interface.js +0 -2
  130. package/lib/esm/middleware/middleware-resolver.js +0 -69
  131. package/lib/esm/middleware/middleware-service.js +0 -258
  132. package/lib/esm/provider/dto-validator/dto-validator.provider.js +0 -53
  133. package/lib/esm/provider/environment/env-validator.provider.js +0 -96
  134. package/lib/esm/provider/index.js +0 -11
  135. package/lib/esm/provider/logger/logger-service.js +0 -115
  136. package/lib/esm/provider/provider-service.js +0 -38
  137. package/lib/esm/render/handlebars.interface.js +0 -2
  138. package/lib/esm/render/index.js +0 -2
  139. package/lib/esm/render/render.type.js +0 -2
  140. package/lib/esm/types/application/app-container.d.ts +0 -126
  141. package/lib/esm/types/application/app-container.d.ts.map +0 -1
  142. package/lib/esm/types/application/application-factory.d.ts +0 -34
  143. package/lib/esm/types/application/application-factory.d.ts.map +0 -1
  144. package/lib/esm/types/application/index.d.ts +0 -3
  145. package/lib/esm/types/application/index.d.ts.map +0 -1
  146. package/lib/esm/types/common/color-service.provider.d.ts +0 -30
  147. package/lib/esm/types/common/color-service.provider.d.ts.map +0 -1
  148. package/lib/esm/types/common/index.d.ts +0 -2
  149. package/lib/esm/types/common/index.d.ts.map +0 -1
  150. package/lib/esm/types/common/package-resolver.provider.d.ts +0 -9
  151. package/lib/esm/types/common/package-resolver.provider.d.ts.map +0 -1
  152. package/lib/esm/types/common/project-config.provider.d.ts +0 -48
  153. package/lib/esm/types/common/project-config.provider.d.ts.map +0 -1
  154. package/lib/esm/types/console/console.d.ts +0 -28
  155. package/lib/esm/types/console/console.d.ts.map +0 -1
  156. package/lib/esm/types/console/index.d.ts +0 -2
  157. package/lib/esm/types/console/index.d.ts.map +0 -1
  158. package/lib/esm/types/container-module/container-module.d.ts +0 -29
  159. package/lib/esm/types/container-module/container-module.d.ts.map +0 -1
  160. package/lib/esm/types/container-module/index.d.ts +0 -2
  161. package/lib/esm/types/container-module/index.d.ts.map +0 -1
  162. package/lib/esm/types/controller/base-controller.d.ts +0 -49
  163. package/lib/esm/types/controller/base-controller.d.ts.map +0 -1
  164. package/lib/esm/types/controller/index.d.ts +0 -2
  165. package/lib/esm/types/controller/index.d.ts.map +0 -1
  166. package/lib/esm/types/decorator/index.d.ts +0 -2
  167. package/lib/esm/types/decorator/index.d.ts.map +0 -1
  168. package/lib/esm/types/decorator/scope-binding.d.ts +0 -34
  169. package/lib/esm/types/decorator/scope-binding.d.ts.map +0 -1
  170. package/lib/esm/types/error/app-error.d.ts +0 -30
  171. package/lib/esm/types/error/app-error.d.ts.map +0 -1
  172. package/lib/esm/types/error/error-handler-middleware.d.ts +0 -12
  173. package/lib/esm/types/error/error-handler-middleware.d.ts.map +0 -1
  174. package/lib/esm/types/error/index.d.ts +0 -4
  175. package/lib/esm/types/error/index.d.ts.map +0 -1
  176. package/lib/esm/types/error/report.d.ts +0 -26
  177. package/lib/esm/types/error/report.d.ts.map +0 -1
  178. package/lib/esm/types/error/status-code.d.ts +0 -137
  179. package/lib/esm/types/error/status-code.d.ts.map +0 -1
  180. package/lib/esm/types/index.d.ts +0 -11
  181. package/lib/esm/types/index.d.ts.map +0 -1
  182. package/lib/esm/types/middleware/index.d.ts +0 -10
  183. package/lib/esm/types/middleware/index.d.ts.map +0 -1
  184. package/lib/esm/types/middleware/interfaces/body-parser.interface.d.ts +0 -34
  185. package/lib/esm/types/middleware/interfaces/body-parser.interface.d.ts.map +0 -1
  186. package/lib/esm/types/middleware/interfaces/compression.interface.d.ts +0 -99
  187. package/lib/esm/types/middleware/interfaces/compression.interface.d.ts.map +0 -1
  188. package/lib/esm/types/middleware/interfaces/cookie-parser.interface.d.ts +0 -10
  189. package/lib/esm/types/middleware/interfaces/cookie-parser.interface.d.ts.map +0 -1
  190. package/lib/esm/types/middleware/interfaces/cookie-session/cookie-session.interface.d.ts +0 -58
  191. package/lib/esm/types/middleware/interfaces/cookie-session/cookie-session.interface.d.ts.map +0 -1
  192. package/lib/esm/types/middleware/interfaces/cookie-session/keygrip.interface.d.ts +0 -28
  193. package/lib/esm/types/middleware/interfaces/cookie-session/keygrip.interface.d.ts.map +0 -1
  194. package/lib/esm/types/middleware/interfaces/cors.interface.d.ts +0 -58
  195. package/lib/esm/types/middleware/interfaces/cors.interface.d.ts.map +0 -1
  196. package/lib/esm/types/middleware/interfaces/morgan.interface.d.ts +0 -41
  197. package/lib/esm/types/middleware/interfaces/morgan.interface.d.ts.map +0 -1
  198. package/lib/esm/types/middleware/interfaces/serve-favicon.interface.d.ts +0 -12
  199. package/lib/esm/types/middleware/interfaces/serve-favicon.interface.d.ts.map +0 -1
  200. package/lib/esm/types/middleware/interfaces/serve-static.interface.d.ts +0 -71
  201. package/lib/esm/types/middleware/interfaces/serve-static.interface.d.ts.map +0 -1
  202. package/lib/esm/types/middleware/middleware-resolver.d.ts +0 -12
  203. package/lib/esm/types/middleware/middleware-resolver.d.ts.map +0 -1
  204. package/lib/esm/types/middleware/middleware-service.d.ts +0 -237
  205. package/lib/esm/types/middleware/middleware-service.d.ts.map +0 -1
  206. package/lib/esm/types/provider/dto-validator/dto-validator.provider.d.ts +0 -12
  207. package/lib/esm/types/provider/dto-validator/dto-validator.provider.d.ts.map +0 -1
  208. package/lib/esm/types/provider/environment/env-validator.provider.d.ts +0 -31
  209. package/lib/esm/types/provider/environment/env-validator.provider.d.ts.map +0 -1
  210. package/lib/esm/types/provider/index.d.ts +0 -5
  211. package/lib/esm/types/provider/index.d.ts.map +0 -1
  212. package/lib/esm/types/provider/logger/logger-service.d.ts +0 -50
  213. package/lib/esm/types/provider/logger/logger-service.d.ts.map +0 -1
  214. package/lib/esm/types/provider/provider-service.d.ts +0 -31
  215. package/lib/esm/types/provider/provider-service.d.ts.map +0 -1
  216. package/lib/esm/types/render/handlebars.interface.d.ts +0 -47
  217. package/lib/esm/types/render/handlebars.interface.d.ts.map +0 -1
  218. package/lib/esm/types/render/index.d.ts +0 -3
  219. package/lib/esm/types/render/index.d.ts.map +0 -1
  220. package/lib/esm/types/render/render.type.d.ts +0 -13
  221. package/lib/esm/types/render/render.type.d.ts.map +0 -1
  222. /package/lib/{esm/common/index.js → cjs/middleware/interfaces/express-rate-limit.interface.js} +0 -0
  223. /package/lib/{esm/common/project-config.provider.js → cjs/middleware/interfaces/helmet.interface.js} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"middleware-resolver.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/middleware/middleware-resolver.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,SAAS,CAAC;AAuE9B;;;;;;;GAOG;AACH,iBAAS,kBAAkB,CACzB,UAAU,EAAE,MAAM,EAClB,GAAG,OAAO,EAAE,GAAG,GACd,OAAO,CAAC,cAAc,GAAG,IAAI,CAG/B;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1,237 +0,0 @@
1
- /// <reference types="node" />
2
- import express from "express";
3
- import { OptionsJson } from "./interfaces/body-parser.interface";
4
- import { CompressionOptions } from "./interfaces/compression.interface";
5
- import { CorsOptions } from "./interfaces/cors.interface";
6
- import { CookieParserOptions } from "./interfaces/cookie-parser.interface";
7
- import { ServeStaticOptions } from "./interfaces/serve-static.interface";
8
- import { CookieSessionOptions } from "./interfaces/cookie-session/cookie-session.interface";
9
- import { ServeFaviconOptions } from "./interfaces/serve-favicon.interface";
10
- import { FormatFn, OptionsMorgan } from "./interfaces/morgan.interface";
11
- /**
12
- * ExpressHandler Type
13
- *
14
- * The ExpressHandler type is a union type that represents various types of Express middleware functions.
15
- * It can be one of the following types:
16
- * - express.ErrorRequestHandler: Handles errors in the middleware pipeline.
17
- * - express.RequestParamHandler: Handles parameters in the middleware pipeline.
18
- * - express.RequestHandler: General request handler.
19
- * - undefined: Represents the absence of a handler.
20
- */
21
- type ExpressHandler = express.ErrorRequestHandler | express.RequestParamHandler | express.RequestHandler | undefined;
22
- /**
23
- * MiddlewareArgs Type
24
- *
25
- * The MiddlewareArgs type represents arguments that can be passed to a middleware function.
26
- * It can either be a string (a route or path) or an instance of ExpressHandler.
27
- */
28
- type MiddlewareArgs = string | ExpressHandler;
29
- /**
30
- * MiddlewareConfig Interface
31
- *
32
- * The MiddlewareConfig interface specifies the structure for middleware configuration objects.
33
- * - path: Optional. The route path for which the middleware is configured.
34
- * - middlewares: An array of ExpressHandler types that make up the middleware pipeline for the route specified by 'path'.
35
- */
36
- type MiddlewareConfig = {
37
- path?: string;
38
- middlewares: Array<ExpressHandler>;
39
- };
40
- /**
41
- * MiddlewarePipeline Interface
42
- *
43
- * The MiddlewarePipeline interface represents the metadata and actual middleware to be executed in a middleware pipeline.
44
- * - timestamp: The date and time at which the middleware was added to the pipeline.
45
- * - middleware: Can be either an ExpressHandler function or a MiddlewareConfig object defining a more complex middleware setup.
46
- */
47
- interface MiddlewarePipeline {
48
- timestamp: Date;
49
- middleware: ExpressHandler | MiddlewareConfig;
50
- }
51
- /**
52
- * Interface for configuring and managing middlewares in the application.
53
- * Provides methods to be added automatically in the application without the need to import packages.
54
- */
55
- interface IMiddleware {
56
- /**
57
- * Adds a Body Parser middleware to the middleware collection.
58
- * The body parser is responsible for parsing the incoming request bodies in a middleware.
59
- *
60
- * @param options - Optional configuration options for the JSON body parser.
61
- */
62
- addBodyParser(options?: OptionsJson): void;
63
- /**
64
- * Adds Cross-Origin Resource Sharing (CORS) middleware to enable or control cross-origin requests.
65
- *
66
- * @param options - Optional configuration options for CORS. Defines the behavior of CORS requests like allowed origins, methods, headers, etc.
67
- */
68
- addCors(options?: CorsOptions): void;
69
- /**
70
- * Adds Compression middleware to reduce the size of the response body and improve the speed of the client-server communication.
71
- *
72
- * @param options - Optional configuration options for Compression. Allows fine-tuning the compression behavior, such as setting the compression level, threshold, and filter functions to determine which requests should be compressed.
73
- */
74
- addCompression(options?: CompressionOptions): void;
75
- /**
76
- * Adds Cookie Parser middleware to parse the cookie header and populate req.cookies with an object keyed by the cookie names.
77
- *
78
- * @param secret - A string or array used for signing cookies. This is optional and if not specified, the cookie-parser will not parse signed cookies.
79
- * @param options - Optional configuration options for Cookie Parser.
80
- */
81
- addCookieParser(secret?: string | Array<string> | undefined, options?: CookieParserOptions): void;
82
- /**
83
- * Adds Cookie Session middleware to enable cookie-based sessions.
84
- *
85
- * @param options - Optional configuration options for Cookie Session. Defines the behavior of cookie sessions like the name of the cookie, keys to sign the cookie, etc.
86
- */
87
- addCookieSession(options: CookieSessionOptions): void;
88
- /**
89
- * Adds Morgan middleware to log HTTP requests.
90
- *
91
- * @param format - The log format. Can be a string or a function.
92
- * @param options - Optional configuration options for Morgan. Defines the behavior of the logger like the output stream, buffer duration, etc.
93
- */
94
- addMorgan(format: string | FormatFn, options?: OptionsMorgan): void;
95
- /**
96
- * Adds a middleware to serve the favicon to the middleware collection.
97
- * The favicon is the icon that is displayed in the browser tab for the application.
98
- *
99
- * @param path - The path to the favicon file.
100
- * @param options - Optional configuration options for serving the favicon. Defines the behavior of the favicon middleware like cache control, custom headers, etc.
101
- */
102
- addServeFavicon(path: string | Buffer, options?: ServeFaviconOptions): void;
103
- /**
104
- * Configures the error handling middleware for the application.
105
- *
106
- * @param errorHandling - The Express error handler function that takes care of processing errors and formulating the response.
107
- */
108
- setErrorHandler(errorHandling?: ExpressHandler): void;
109
- /**
110
- * Adds a middleware to serve static files from the specified root directory.
111
- * Allows the application to serve files like images, CSS, JavaScript, etc.
112
- *
113
- * @param root - The root directory from which the static assets are to be served.
114
- * @param options - Optional configuration options for serving static files. Defines behavior like cache control, custom headers, etc.
115
- */
116
- serveStatic(root: string, options?: ServeStaticOptions): void;
117
- /**
118
- * Adds a middleware to the middleware collection.
119
- *
120
- * @param middleware - The Express request handler function to be added to the middleware collection.
121
- *
122
- */
123
- addMiddleware(...middleware: Array<MiddlewareArgs>): void;
124
- /**
125
- * Retrieves middleware pipeline in the order they were added.
126
- *
127
- * @returns An array of Express request handlers representing the middlewares.
128
- */
129
- getMiddlewarePipeline(): Array<MiddlewarePipeline>;
130
- /**
131
- * Gets the configured error handler middleware.
132
- *
133
- * @returns The error handler middleware.
134
- */
135
- getErrorHandler(): ExpressHandler;
136
- }
137
- /**
138
- * Singleton class that implements the IConfigure interface.
139
- * Manages the middleware configuration for the application,
140
- * including adding Body Parser and retrieving all configured middlewares.
141
- *
142
- * @see IConfigure
143
- */
144
- declare class Middleware implements IMiddleware {
145
- private middlewarePipeline;
146
- private errorHandler;
147
- private logger;
148
- /**
149
- * Checks if a middleware with the given name exists in the middleware collection.
150
- *
151
- * @param middlewareName - The name of the middleware to be checked.
152
- *
153
- * @returns A boolean value indicating whether the middleware exists or not.
154
- */
155
- private middlewareExists;
156
- /**
157
- * Adds a Body Parser middleware to the middleware collection using the given options.
158
- *
159
- * @param options - Optional configuration options for the JSON body parser.
160
- */
161
- addBodyParser(options?: OptionsJson): void;
162
- /**
163
- * Adds Cross-Origin Resource Sharing (CORS) middleware to enable or control cross-origin requests.
164
- *
165
- * @param options - Optional configuration options for CORS. Defines the behavior of CORS requests like allowed origins, methods, headers, etc.
166
- */
167
- addCors(options?: CorsOptions): void;
168
- /**
169
- * Adds Compression middleware to reduce the size of the response body and improve the speed of the client-server communication.
170
- *
171
- * @param options - Optional configuration options for Compression. Allows fine-tuning the compression behavior, such as setting the compression level, threshold, and filter functions to determine which requests should be compressed.
172
- */
173
- addCompression(options?: CompressionOptions): void;
174
- /**
175
- * Adds Morgan middleware to log HTTP requests.
176
- *
177
- * @param format - The log format. Can be a string or a function.
178
- * @param options - Optional configuration options for Morgan. Defines the behavior of the logger like the output stream, buffer duration, etc.
179
- */
180
- addMorgan(format: string | FormatFn, options?: OptionsMorgan | undefined): void;
181
- /**
182
- * Adds Cookie Parser middleware to parse the cookie header and populate req.cookies with an object keyed by the cookie names.
183
- *
184
- * @param secret - A string or array used for signing cookies. This is optional and if not specified, the cookie-parser will not parse signed cookies.
185
- * @param options - Optional configuration options for Cookie Parser.
186
- */
187
- addCookieParser(secret?: string | Array<string> | undefined, options?: CookieParserOptions | undefined): void;
188
- /**
189
- * Adds Cookie Session middleware to enable cookie-based sessions.
190
- *
191
- * @param options - Optional configuration options for Cookie Session. Defines the behavior of cookie sessions like the name of the cookie, keys to sign the cookie, etc.
192
- */
193
- addCookieSession(options: CookieSessionOptions): void;
194
- /**
195
- * Adds a middleware to serve the favicon to the middleware collection.
196
- * The favicon is the icon that is displayed in the browser tab for the application.
197
- *
198
- * @param path - The path to the favicon file.
199
- * @param options - Optional configuration options for serving the favicon. Defines the behavior of the favicon middleware like cache control, custom headers, etc.
200
- */
201
- addServeFavicon(path: string | Buffer, options?: ServeFaviconOptions): void;
202
- /**
203
- * Configures the error handling middleware for the application.
204
- *
205
- * @param errorHandling - The Express error handler function that takes care of processing errors and formulating the response.
206
- */
207
- setErrorHandler(errorHandling?: ExpressHandler): void;
208
- /**
209
- * Adds a middleware to serve static files from the specified root directory.
210
- * Allows the application to serve files like images, CSS, JavaScript, etc.
211
- *
212
- * @param root - The root directory from which the static assets are to be served.
213
- * @param options - Optional configuration options for serving static files. Defines behavior like cache control, custom headers, etc.
214
- */
215
- serveStatic(root: string, options?: ServeStaticOptions): void;
216
- /**
217
- * Adds a middleware to the middleware collection.
218
- *
219
- * @param middleware - The Express request handler function to be added to the middleware collection.
220
- *
221
- */
222
- addMiddleware(...middleware: Array<MiddlewareArgs>): void;
223
- /**
224
- * Retrieves middleware pipeline in the order they were added.
225
- *
226
- * @returns An array of Express request handlers representing the middlewares.
227
- */
228
- getMiddlewarePipeline(): Array<MiddlewarePipeline>;
229
- /**
230
- * Gets the configured error handler middleware.
231
- *
232
- * @returns The error handler middleware.
233
- */
234
- getErrorHandler(): ExpressHandler;
235
- }
236
- export { Middleware, IMiddleware };
237
- //# sourceMappingURL=middleware-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"middleware-service.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/middleware/middleware-service.ts"],"names":[],"mappings":"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"}
@@ -1,12 +0,0 @@
1
- import "reflect-metadata";
2
- import { RequestHandler } from "express";
3
- /**
4
- * Validate the DTO using class-validator and class-transformer.
5
- * @param type - The type of the DTO to validate.
6
- * @returns A RequestHandler function.
7
- * @throws An exception if the DTO is invalid.
8
- *
9
- */
10
- declare function ValidateDTO<T extends object>(type: new () => T): RequestHandler;
11
- export { ValidateDTO };
12
- //# sourceMappingURL=dto-validator.provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dto-validator.provider.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/provider/dto-validator/dto-validator.provider.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAmC,cAAc,EAAE,MAAM,SAAS,CAAC;AAK1E;;;;;;GAMG;AACH,iBAAS,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,GAAG,cAAc,CA8CxE;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1,31 +0,0 @@
1
- type DefaultValueType = string | number | boolean | undefined;
2
- /**
3
- * The EnvValidatorProvider class provides utility methods for working with environment variables.
4
- * It validates, loads, and retrieves environment variables from the .env file.
5
- * @provide EnvValidatorProvider
6
- */
7
- declare class EnvValidatorProvider {
8
- private logger;
9
- constructor();
10
- /**
11
- * Retrieves the value of an environment variable, or a default value if the variable is not set.
12
- * @param key - The key of the environment variable.
13
- * @param defaultValue - The default value to return if the environment variable is not set.
14
- * @returns The value of the environment variable, or the default value if not set.
15
- */
16
- get(key: string, defaultValue?: DefaultValueType): DefaultValueType;
17
- /**
18
- * Validates and loads all environment variables from the .env file.
19
- * If the .env file does not exist or any environment variables are not set, the process will exit with an error.
20
- */
21
- checkAll(): void;
22
- }
23
- declare global {
24
- interface String {
25
- AsBoolean(): boolean | undefined;
26
- AsNumber(): number | undefined;
27
- AsString(): string | undefined;
28
- }
29
- }
30
- export { EnvValidatorProvider };
31
- //# sourceMappingURL=env-validator.provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env-validator.provider.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/provider/environment/env-validator.provider.ts"],"names":[],"mappings":"AAMA,KAAK,gBAAgB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAE9D;;;;GAIG;AACH,cACM,oBAAoB;IACxB,OAAO,CAAC,MAAM,CAAS;;IAMvB;;;;;OAKG;IACI,GAAG,CACR,GAAG,EAAE,MAAM,EACX,YAAY,GAAE,gBAA4B,GACzC,gBAAgB;IAInB;;;OAGG;IACI,QAAQ,IAAI,IAAI;CAoCxB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,SAAS,IAAI,OAAO,GAAG,SAAS,CAAC;QACjC,QAAQ,IAAI,MAAM,GAAG,SAAS,CAAC;QAC/B,QAAQ,IAAI,MAAM,GAAG,SAAS,CAAC;KAChC;CACF;AAyBD,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1,5 +0,0 @@
1
- export { Provider, IProvider } from "./provider-service";
2
- export { Logger } from "./logger/logger-service";
3
- export { EnvValidatorProvider as Env } from "./environment/env-validator.provider";
4
- export { ValidateDTO } from "./dto-validator/dto-validator.provider";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,oBAAoB,IAAI,GAAG,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC"}
@@ -1,50 +0,0 @@
1
- /**
2
- * Represents the different logging levels.
3
- */
4
- type LogLevel = "INFO" | "WARN" | "ERROR" | "NONE";
5
- /**
6
- * Class that provides logging functionality with colorized text.
7
- */
8
- declare class Logger {
9
- private pid;
10
- constructor();
11
- /**
12
- * Formats the log message with color, timestamps, and log levels.
13
- *
14
- * @param logLevel - The level of the log (e.g. INFO, WARN).
15
- * @param message - The main log message.
16
- * @param module - Optional module name.
17
- * @returns The formatted log message.
18
- */
19
- protected formatMessage(logLevel: LogLevel, message: string, module?: string): string;
20
- /**
21
- * Logs a generic message.
22
- *
23
- * @param message - The message to log.
24
- * @param module - Optional module name.
25
- */
26
- msg(message: string, module?: string): void;
27
- /**
28
- * Logs an informational message.
29
- *
30
- * @param message - The message to log.
31
- * @param module - Optional module name.
32
- */
33
- info(message: string, module?: string): void;
34
- /**
35
- * Logs a warning message.
36
- *
37
- * @param message - The message to log.
38
- * @param module - Optional module name.
39
- */
40
- warn(message: string, module?: string): void;
41
- /**
42
- * Logs an error message.
43
- *
44
- * @param message - The message to log.
45
- * @param module - Optional module name.
46
- */
47
- error(message: string, module?: string): void;
48
- }
49
- export { Logger, LogLevel };
50
- //# sourceMappingURL=logger-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger-service.d.ts","sourceRoot":"","sources":["../../../../../packages/core/src/provider/logger/logger-service.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAanD;;GAEG;AACH,cACM,MAAM;IACV,OAAO,CAAC,GAAG,CAAS;;IAMpB;;;;;;;OAOG;IACH,SAAS,CAAC,aAAa,CACrB,QAAQ,EAAE,QAAiB,EAC3B,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,MAAM,GACd,MAAM;IAqDT;;;;;OAKG;IACI,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAIlD;;;;;OAKG;IACI,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAInD;;;;;OAKG;IACI,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAInD;;;;;OAKG;IACI,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;CAGrD;AAED,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,31 +0,0 @@
1
- import { Logger } from "./logger/logger-service";
2
- import { EnvValidatorProvider } from "./environment/env-validator.provider";
3
- /**
4
- * Interface defining the methods for the Provider class.
5
- */
6
- interface IProvider {
7
- /**
8
- * Returns an instance of the `EnvValidatorProvider`.
9
- */
10
- envValidator: EnvValidatorProvider;
11
- /**
12
- * Returns an instance of the `Logger`.
13
- */
14
- logger: Logger;
15
- }
16
- /**
17
- * Class responsible for providing singleton instances of various services.
18
- *
19
- * This class implements the IProvider interface and is decorated with a
20
- * singleton provider to ensure a single instance is reused.
21
- */
22
- declare class Provider implements IProvider {
23
- envValidator: EnvValidatorProvider;
24
- logger: Logger;
25
- /**
26
- * Initializes the instances of the various providers.
27
- */
28
- constructor();
29
- }
30
- export { IProvider, Provider };
31
- //# sourceMappingURL=provider-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider-service.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/provider/provider-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAE5E;;GAEG;AACH,UAAU,SAAS;IACjB;;OAEG;IACH,YAAY,EAAE,oBAAoB,CAAC;IAEnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,cACM,QAAS,YAAW,SAAS;IACjC,YAAY,EAAE,oBAAoB,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;;CAKJ;AAED,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,47 +0,0 @@
1
- /**
2
- * Configuration options for Express Handlebars.
3
- * @interface ConfigOptions
4
- */
5
- interface ConfigOptions {
6
- extname?: string;
7
- layoutDir?: string;
8
- defaultLayout?: string | false;
9
- }
10
- /**
11
- * Callback function for rendering templates.
12
- * @callback RenderCallback
13
- *
14
- * @param {Error | null} err - The error object.
15
- * @param {string} [content] - The rendered content.
16
- */
17
- interface RenderCallback {
18
- (err: Error | null, content?: string): void;
19
- }
20
- /**
21
- * Function for rendering templates.
22
- * @typedef Engine
23
- *
24
- * @param {string} viewPath - The path to the directory containing the templates.
25
- * @param {ConfigOptions} options - The configuration options for the template engine.
26
- * @param {RenderCallback} [callback] - The callback function for rendering templates.
27
- */
28
- type Engine = (viewPath: string, options: ConfigOptions, callback?: RenderCallback) => void;
29
- /**
30
- * Interface representing the configuration options for Handlebars templates.
31
- */
32
- interface IHandlebars {
33
- /**
34
- * Specifies the extension name for the Handlebars templates.
35
- */
36
- extName: string;
37
- /**
38
- * Specifies the path to the directory containing the Handlebars templates.
39
- */
40
- viewPath: string;
41
- /**
42
- * Specifies the function for rendering Handlebars templates.
43
- */
44
- engine: Engine;
45
- }
46
- export { IHandlebars };
47
- //# sourceMappingURL=handlebars.interface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handlebars.interface.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/render/handlebars.interface.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,UAAU,aAAa;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CAChC;AAED;;;;;;GAMG;AACH,UAAU,cAAc;IACtB,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7C;AAED;;;;;;;GAOG;AACH,KAAK,MAAM,GAAG,CACZ,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,aAAa,EACtB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;AAEV;;GAEG;AACH,UAAU,WAAW;IACnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1,3 +0,0 @@
1
- export { IHandlebars } from "./handlebars.interface";
2
- export { RenderTemplateOptions } from "./render.type";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/render/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC"}
@@ -1,13 +0,0 @@
1
- import { IHandlebars } from "./handlebars.interface";
2
- /**
3
- * Type alias for the configuration options for rendering templates.
4
- *
5
- * Currently, this type alias is equivalent to the `IHandlebars` interface,
6
- * and represents the configuration options for Handlebars templates.
7
- *
8
- * In the future, this type could be expanded to include configuration options
9
- * for other template engines.
10
- */
11
- type RenderTemplateOptions = IHandlebars;
12
- export { RenderTemplateOptions };
13
- //# sourceMappingURL=render.type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"render.type.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/render/render.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD;;;;;;;;GAQG;AACH,KAAK,qBAAqB,GAAG,WAAW,CAAC;AAEzC,OAAO,EAAE,qBAAqB,EAAE,CAAC"}