@tsed/common 8.0.0-alpha.4 → 8.0.0-alpha.6

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 (205) hide show
  1. package/lib/esm/services/PlatformTest.js.map +1 -1
  2. package/lib/types/builder/PlatformBuilder.d.ts +1 -1
  3. package/lib/types/config/services/PlatformConfiguration.d.ts +1 -1
  4. package/lib/types/domain/PlatformContext.d.ts +1 -1
  5. package/lib/types/interfaces/IncomingEvent.d.ts +1 -1
  6. package/lib/types/services/FakeResponse.d.ts +1 -1
  7. package/lib/types/services/PlatformAdapter.d.ts +1 -1
  8. package/lib/types/services/PlatformApplication.d.ts +1 -1
  9. package/lib/types/services/PlatformRequest.d.ts +1 -1
  10. package/lib/types/services/PlatformResponse.d.ts +2 -2
  11. package/lib/types/services/PlatformTest.d.ts +1 -1
  12. package/lib/types/utils/closeServer.d.ts +3 -3
  13. package/lib/types/utils/createHttpServer.d.ts +1 -1
  14. package/lib/types/utils/createHttpsServer.d.ts +1 -1
  15. package/lib/types/utils/createServer.d.ts +3 -3
  16. package/lib/types/utils/listenServer.d.ts +3 -3
  17. package/package.json +19 -20
  18. package/lib/cjs/builder/PlatformBuilder.js +0 -341
  19. package/lib/cjs/builder/PlatformBuilder.js.map +0 -1
  20. package/lib/cjs/config/interfaces/PlatformJsonMapperSettings.js +0 -3
  21. package/lib/cjs/config/interfaces/PlatformJsonMapperSettings.js.map +0 -1
  22. package/lib/cjs/config/interfaces/PlatformMulterSettings.js +0 -3
  23. package/lib/cjs/config/interfaces/PlatformMulterSettings.js.map +0 -1
  24. package/lib/cjs/config/interfaces/PlatformRouterSettings.js +0 -3
  25. package/lib/cjs/config/interfaces/PlatformRouterSettings.js.map +0 -1
  26. package/lib/cjs/config/interfaces/PlatformStaticsSettings.js +0 -3
  27. package/lib/cjs/config/interfaces/PlatformStaticsSettings.js.map +0 -1
  28. package/lib/cjs/config/services/PlatformConfiguration.js +0 -122
  29. package/lib/cjs/config/services/PlatformConfiguration.js.map +0 -1
  30. package/lib/cjs/constants/routerOptions.js +0 -5
  31. package/lib/cjs/constants/routerOptions.js.map +0 -1
  32. package/lib/cjs/decorators/PlatformProvider.js +0 -11
  33. package/lib/cjs/decorators/PlatformProvider.js.map +0 -1
  34. package/lib/cjs/decorators/multer/multerFileSize.js +0 -35
  35. package/lib/cjs/decorators/multer/multerFileSize.js.map +0 -1
  36. package/lib/cjs/decorators/multer/multerOptions.js +0 -52
  37. package/lib/cjs/decorators/multer/multerOptions.js.map +0 -1
  38. package/lib/cjs/decorators/multer/multipartFile.js +0 -78
  39. package/lib/cjs/decorators/multer/multipartFile.js.map +0 -1
  40. package/lib/cjs/decorators/params/error.js +0 -20
  41. package/lib/cjs/decorators/params/error.js.map +0 -1
  42. package/lib/cjs/decorators/params/next.js +0 -21
  43. package/lib/cjs/decorators/params/next.js.map +0 -1
  44. package/lib/cjs/decorators/params/request.js +0 -39
  45. package/lib/cjs/decorators/params/request.js.map +0 -1
  46. package/lib/cjs/decorators/params/response.js +0 -33
  47. package/lib/cjs/decorators/params/response.js.map +0 -1
  48. package/lib/cjs/domain/AnyToPromiseWithCtx.js +0 -25
  49. package/lib/cjs/domain/AnyToPromiseWithCtx.js.map +0 -1
  50. package/lib/cjs/domain/EndpointMetadata.js +0 -6
  51. package/lib/cjs/domain/EndpointMetadata.js.map +0 -1
  52. package/lib/cjs/domain/PlatformContext.js +0 -73
  53. package/lib/cjs/domain/PlatformContext.js.map +0 -1
  54. package/lib/cjs/domain/PlatformRouteDetails.js +0 -3
  55. package/lib/cjs/domain/PlatformRouteDetails.js.map +0 -1
  56. package/lib/cjs/exports.js +0 -30
  57. package/lib/cjs/exports.js.map +0 -1
  58. package/lib/cjs/index.js +0 -67
  59. package/lib/cjs/index.js.map +0 -1
  60. package/lib/cjs/interfaces/AfterInit.js +0 -3
  61. package/lib/cjs/interfaces/AfterInit.js.map +0 -1
  62. package/lib/cjs/interfaces/AfterListen.js +0 -3
  63. package/lib/cjs/interfaces/AfterListen.js.map +0 -1
  64. package/lib/cjs/interfaces/AfterRoutesInit.js +0 -3
  65. package/lib/cjs/interfaces/AfterRoutesInit.js.map +0 -1
  66. package/lib/cjs/interfaces/BeforeInit.js +0 -3
  67. package/lib/cjs/interfaces/BeforeInit.js.map +0 -1
  68. package/lib/cjs/interfaces/BeforeListen.js +0 -3
  69. package/lib/cjs/interfaces/BeforeListen.js.map +0 -1
  70. package/lib/cjs/interfaces/BeforeRoutesInit.js +0 -3
  71. package/lib/cjs/interfaces/BeforeRoutesInit.js.map +0 -1
  72. package/lib/cjs/interfaces/HandlerType.js +0 -17
  73. package/lib/cjs/interfaces/HandlerType.js.map +0 -1
  74. package/lib/cjs/interfaces/IncomingEvent.js +0 -3
  75. package/lib/cjs/interfaces/IncomingEvent.js.map +0 -1
  76. package/lib/cjs/interfaces/OnReady.js +0 -3
  77. package/lib/cjs/interfaces/OnReady.js.map +0 -1
  78. package/lib/cjs/interfaces/OnRequest.js +0 -3
  79. package/lib/cjs/interfaces/OnRequest.js.map +0 -1
  80. package/lib/cjs/interfaces/OnResponse.js +0 -3
  81. package/lib/cjs/interfaces/OnResponse.js.map +0 -1
  82. package/lib/cjs/interfaces/OnRoutesInit.js +0 -3
  83. package/lib/cjs/interfaces/OnRoutesInit.js.map +0 -1
  84. package/lib/cjs/interfaces/PlatformRouteOptions.js +0 -3
  85. package/lib/cjs/interfaces/PlatformRouteOptions.js.map +0 -1
  86. package/lib/cjs/interfaces/ResponseErrorObject.js +0 -3
  87. package/lib/cjs/interfaces/ResponseErrorObject.js.map +0 -1
  88. package/lib/cjs/interfaces/Route.js +0 -3
  89. package/lib/cjs/interfaces/Route.js.map +0 -1
  90. package/lib/cjs/middlewares/PlatformAcceptMimesMiddleware.js +0 -39
  91. package/lib/cjs/middlewares/PlatformAcceptMimesMiddleware.js.map +0 -1
  92. package/lib/cjs/middlewares/PlatformMulterMiddleware.js +0 -70
  93. package/lib/cjs/middlewares/PlatformMulterMiddleware.js.map +0 -1
  94. package/lib/cjs/package.json +0 -3
  95. package/lib/cjs/services/FakeAdapter.js +0 -6
  96. package/lib/cjs/services/FakeAdapter.js.map +0 -1
  97. package/lib/cjs/services/FakeResponse.js +0 -59
  98. package/lib/cjs/services/FakeResponse.js.map +0 -1
  99. package/lib/cjs/services/Platform.js +0 -76
  100. package/lib/cjs/services/Platform.js.map +0 -1
  101. package/lib/cjs/services/PlatformAdapter.js +0 -82
  102. package/lib/cjs/services/PlatformAdapter.js.map +0 -1
  103. package/lib/cjs/services/PlatformApplication.js +0 -44
  104. package/lib/cjs/services/PlatformApplication.js.map +0 -1
  105. package/lib/cjs/services/PlatformHandler.js +0 -133
  106. package/lib/cjs/services/PlatformHandler.js.map +0 -1
  107. package/lib/cjs/services/PlatformMiddlewaresChain.js +0 -60
  108. package/lib/cjs/services/PlatformMiddlewaresChain.js.map +0 -1
  109. package/lib/cjs/services/PlatformRequest.js +0 -144
  110. package/lib/cjs/services/PlatformRequest.js.map +0 -1
  111. package/lib/cjs/services/PlatformResponse.js +0 -309
  112. package/lib/cjs/services/PlatformResponse.js.map +0 -1
  113. package/lib/cjs/services/PlatformTest.js +0 -142
  114. package/lib/cjs/services/PlatformTest.js.map +0 -1
  115. package/lib/cjs/utils/closeServer.js +0 -8
  116. package/lib/cjs/utils/closeServer.js.map +0 -1
  117. package/lib/cjs/utils/createContext.js +0 -49
  118. package/lib/cjs/utils/createContext.js.map +0 -1
  119. package/lib/cjs/utils/createHttpServer.js +0 -18
  120. package/lib/cjs/utils/createHttpServer.js.map +0 -1
  121. package/lib/cjs/utils/createHttpsServer.js +0 -18
  122. package/lib/cjs/utils/createHttpsServer.js.map +0 -1
  123. package/lib/cjs/utils/createInjector.js +0 -45
  124. package/lib/cjs/utils/createInjector.js.map +0 -1
  125. package/lib/cjs/utils/createServer.js +0 -33
  126. package/lib/cjs/utils/createServer.js.map +0 -1
  127. package/lib/cjs/utils/ensureContext.js +0 -16
  128. package/lib/cjs/utils/ensureContext.js.map +0 -1
  129. package/lib/cjs/utils/getConfiguration.js +0 -36
  130. package/lib/cjs/utils/getConfiguration.js.map +0 -1
  131. package/lib/cjs/utils/getStaticsOptions.js +0 -21
  132. package/lib/cjs/utils/getStaticsOptions.js.map +0 -1
  133. package/lib/cjs/utils/listenServer.js +0 -14
  134. package/lib/cjs/utils/listenServer.js.map +0 -1
  135. package/lib/cjs/utils/mapReturnedResponse.js +0 -15
  136. package/lib/cjs/utils/mapReturnedResponse.js.map +0 -1
  137. package/lib/cjs/utils/printRoutes.js +0 -38
  138. package/lib/cjs/utils/printRoutes.js.map +0 -1
  139. package/lib/cjs/utils/registerPlatformAdapter.js +0 -11
  140. package/lib/cjs/utils/registerPlatformAdapter.js.map +0 -1
  141. package/lib/cjs/utils/setResponseHeaders.js +0 -29
  142. package/lib/cjs/utils/setResponseHeaders.js.map +0 -1
  143. package/lib/esm/package.json +0 -3
  144. package/lib/types-esm/builder/PlatformBuilder.d.ts +0 -100
  145. package/lib/types-esm/config/interfaces/PlatformJsonMapperSettings.d.ts +0 -10
  146. package/lib/types-esm/config/interfaces/PlatformMulterSettings.d.ts +0 -14
  147. package/lib/types-esm/config/interfaces/PlatformRouterSettings.d.ts +0 -10
  148. package/lib/types-esm/config/interfaces/PlatformStaticsSettings.d.ts +0 -17
  149. package/lib/types-esm/config/services/PlatformConfiguration.d.ts +0 -67
  150. package/lib/types-esm/constants/routerOptions.d.ts +0 -1
  151. package/lib/types-esm/decorators/PlatformProvider.d.ts +0 -3
  152. package/lib/types-esm/decorators/multer/multerFileSize.d.ts +0 -27
  153. package/lib/types-esm/decorators/multer/multerOptions.d.ts +0 -41
  154. package/lib/types-esm/decorators/multer/multipartFile.d.ts +0 -47
  155. package/lib/types-esm/decorators/params/error.d.ts +0 -7
  156. package/lib/types-esm/decorators/params/next.d.ts +0 -22
  157. package/lib/types-esm/decorators/params/request.d.ts +0 -46
  158. package/lib/types-esm/decorators/params/response.d.ts +0 -40
  159. package/lib/types-esm/domain/AnyToPromiseWithCtx.d.ts +0 -10
  160. package/lib/types-esm/domain/EndpointMetadata.d.ts +0 -1
  161. package/lib/types-esm/domain/PlatformContext.d.ts +0 -80
  162. package/lib/types-esm/domain/PlatformRouteDetails.d.ts +0 -7
  163. package/lib/types-esm/exports.d.ts +0 -11
  164. package/lib/types-esm/index.d.ts +0 -63
  165. package/lib/types-esm/interfaces/AfterInit.d.ts +0 -3
  166. package/lib/types-esm/interfaces/AfterListen.d.ts +0 -3
  167. package/lib/types-esm/interfaces/AfterRoutesInit.d.ts +0 -3
  168. package/lib/types-esm/interfaces/BeforeInit.d.ts +0 -3
  169. package/lib/types-esm/interfaces/BeforeListen.d.ts +0 -3
  170. package/lib/types-esm/interfaces/BeforeRoutesInit.d.ts +0 -3
  171. package/lib/types-esm/interfaces/HandlerType.d.ts +0 -12
  172. package/lib/types-esm/interfaces/IncomingEvent.d.ts +0 -6
  173. package/lib/types-esm/interfaces/OnReady.d.ts +0 -3
  174. package/lib/types-esm/interfaces/OnRequest.d.ts +0 -4
  175. package/lib/types-esm/interfaces/OnResponse.d.ts +0 -4
  176. package/lib/types-esm/interfaces/OnRoutesInit.d.ts +0 -3
  177. package/lib/types-esm/interfaces/PlatformRouteOptions.d.ts +0 -15
  178. package/lib/types-esm/interfaces/ResponseErrorObject.d.ts +0 -8
  179. package/lib/types-esm/interfaces/Route.d.ts +0 -10
  180. package/lib/types-esm/middlewares/PlatformAcceptMimesMiddleware.d.ts +0 -10
  181. package/lib/types-esm/middlewares/PlatformMulterMiddleware.d.ts +0 -24
  182. package/lib/types-esm/services/FakeAdapter.d.ts +0 -1
  183. package/lib/types-esm/services/FakeResponse.d.ts +0 -22
  184. package/lib/types-esm/services/Platform.d.ts +0 -25
  185. package/lib/types-esm/services/PlatformAdapter.d.ts +0 -89
  186. package/lib/types-esm/services/PlatformApplication.d.ts +0 -29
  187. package/lib/types-esm/services/PlatformHandler.d.ts +0 -39
  188. package/lib/types-esm/services/PlatformMiddlewaresChain.d.ts +0 -17
  189. package/lib/types-esm/services/PlatformRequest.d.ts +0 -111
  190. package/lib/types-esm/services/PlatformResponse.d.ts +0 -174
  191. package/lib/types-esm/services/PlatformTest.d.ts +0 -60
  192. package/lib/types-esm/utils/closeServer.d.ts +0 -7
  193. package/lib/types-esm/utils/createContext.d.ts +0 -10
  194. package/lib/types-esm/utils/createHttpServer.d.ts +0 -4
  195. package/lib/types-esm/utils/createHttpsServer.d.ts +0 -4
  196. package/lib/types-esm/utils/createInjector.d.ts +0 -9
  197. package/lib/types-esm/utils/createServer.d.ts +0 -17
  198. package/lib/types-esm/utils/ensureContext.d.ts +0 -2
  199. package/lib/types-esm/utils/getConfiguration.d.ts +0 -2
  200. package/lib/types-esm/utils/getStaticsOptions.d.ts +0 -5
  201. package/lib/types-esm/utils/listenServer.d.ts +0 -8
  202. package/lib/types-esm/utils/mapReturnedResponse.d.ts +0 -4
  203. package/lib/types-esm/utils/printRoutes.d.ts +0 -2
  204. package/lib/types-esm/utils/registerPlatformAdapter.d.ts +0 -3
  205. package/lib/types-esm/utils/setResponseHeaders.d.ts +0 -5
@@ -1 +1 @@
1
- {"version":3,"file":"PlatformTest.js","sourceRoot":"","sources":["../../../src/services/PlatformTest.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAkB,MAAM,UAAU,CAAC;AACjD,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,EAAC,eAAe,EAAC,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAyB,MAAM,8BAA8B,CAAC;AACrF,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAC,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AAE7D;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,MAAM;IAGtC,MAA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R,GAAG,OAAO;YACV,KAAK;SACN,CAAC,CAAC;QAEH,IAAI,OAAO,CAAC,QAAQ,EAAE;YACpB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;SAClC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { Type } from "@tsed/core";
3
3
  import { InjectorService, ProviderOpts, TokenProvider } from "@tsed/di";
4
4
  import { PlatformLayer } from "@tsed/platform-router";
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { getHostInfoFromPort } from "@tsed/core";
3
3
  import { DIConfiguration, TokenProvider } from "@tsed/di";
4
4
  import Https from "https";
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { DIContext, DIContextOptions } from "@tsed/di";
3
3
  import { PlatformHandlerMetadata } from "@tsed/platform-router";
4
4
  import { EndpointMetadata } from "@tsed/schema";
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { IncomingMessage, ServerResponse } from "http";
3
3
  export interface IncomingEvent<Req = IncomingMessage, Res = ServerResponse> extends Record<string, unknown> {
4
4
  response: Res;
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { EventEmitter } from "node:events";
3
3
  export declare class FakeResponse extends EventEmitter {
4
4
  headers: Record<string, unknown>;
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { Type } from "@tsed/core";
3
3
  import { InjectorService, ProviderOpts } from "@tsed/di";
4
4
  import { PlatformContextHandler, PlatformHandlerMetadata, PlatformLayer } from "@tsed/platform-router";
@@ -1,5 +1,5 @@
1
1
  /// <reference types="multer" />
2
- /// <reference types="node" />
2
+ /// <reference types="node" resolution-mode="require"/>
3
3
  import { InjectorService } from "@tsed/di";
4
4
  import { PlatformRouter } from "@tsed/platform-router";
5
5
  import { IncomingMessage, ServerResponse } from "http";
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { IncomingHttpHeaders, IncomingMessage } from "http";
3
3
  import type { PlatformContext } from "../domain/PlatformContext.js";
4
4
  import type { PlatformResponse } from "./PlatformResponse.js";
@@ -1,5 +1,5 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ /// <reference types="node" resolution-mode="require"/>
3
3
  import { OutgoingHttpHeaders, ServerResponse } from "http";
4
4
  import type { PlatformContext } from "../domain/PlatformContext.js";
5
5
  import type { PlatformRequest } from "./PlatformRequest.js";
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { Type } from "@tsed/core";
3
3
  import { DITest, InjectorService } from "@tsed/di";
4
4
  import type { IncomingMessage, RequestListener, ServerResponse } from "http";
@@ -1,6 +1,6 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ /// <reference types="node" resolution-mode="require"/>
3
+ /// <reference types="node" resolution-mode="require"/>
4
4
  import type Http from "http";
5
5
  import type Http2 from "http2";
6
6
  import type Https from "https";
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { InjectorService } from "@tsed/di";
3
3
  import Http from "http";
4
4
  export declare function createHttpServer(injector: InjectorService, requestListener: Http.RequestListener): import("./createServer.js").CreateServerReturn | undefined;
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { InjectorService } from "@tsed/di";
3
3
  import Http from "http";
4
4
  export declare function createHttpsServer(injector: InjectorService, requestListener?: Http.RequestListener): import("./createServer.js").CreateServerReturn | undefined;
@@ -1,6 +1,6 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ /// <reference types="node" resolution-mode="require"/>
3
+ /// <reference types="node" resolution-mode="require"/>
4
4
  import { ReturnHostInfoFromPort } from "@tsed/core";
5
5
  import { InjectorService, TokenProvider } from "@tsed/di";
6
6
  import Http from "http";
@@ -1,6 +1,6 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /// <reference types="node" />
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ /// <reference types="node" resolution-mode="require"/>
3
+ /// <reference types="node" resolution-mode="require"/>
4
4
  import { getHostInfoFromPort } from "@tsed/core";
5
5
  import type Http from "http";
6
6
  import type Http2 from "http2";
package/package.json CHANGED
@@ -1,17 +1,16 @@
1
1
  {
2
2
  "name": "@tsed/common",
3
3
  "description": "A TypeScript Framework on top of Express",
4
- "type": "commonjs",
5
- "version": "8.0.0-alpha.4",
4
+ "type": "module",
5
+ "version": "8.0.0-alpha.6",
6
6
  "source": "./src/index.ts",
7
- "main": "./lib/cjs/index.js",
7
+ "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
9
9
  "typings": "./lib/types/index.d.ts",
10
10
  "exports": {
11
11
  ".": {
12
12
  "types": "./lib/types/index.d.ts",
13
13
  "import": "./lib/esm/index.js",
14
- "require": "./lib/cjs/index.js",
15
14
  "default": "./lib/cjs/index.js"
16
15
  }
17
16
  },
@@ -64,30 +63,30 @@
64
63
  }
65
64
  ],
66
65
  "dependencies": {
67
- "@tsed/core": "8.0.0-alpha.4",
68
- "@tsed/di": "8.0.0-alpha.4",
69
- "@tsed/exceptions": "8.0.0-alpha.4",
70
- "@tsed/json-mapper": "8.0.0-alpha.4",
66
+ "@tsed/core": "8.0.0-alpha.6",
67
+ "@tsed/di": "8.0.0-alpha.6",
68
+ "@tsed/exceptions": "8.0.0-alpha.6",
69
+ "@tsed/json-mapper": "8.0.0-alpha.6",
71
70
  "@tsed/logger": ">=6.7.5",
72
71
  "@tsed/logger-file": ">=6.7.5",
73
- "@tsed/platform-exceptions": "8.0.0-alpha.4",
74
- "@tsed/platform-log-middleware": "8.0.0-alpha.4",
75
- "@tsed/platform-middlewares": "8.0.0-alpha.4",
76
- "@tsed/platform-params": "8.0.0-alpha.4",
77
- "@tsed/platform-response-filter": "8.0.0-alpha.4",
78
- "@tsed/platform-router": "8.0.0-alpha.4",
79
- "@tsed/platform-views": "8.0.0-alpha.4",
80
- "@tsed/schema": "8.0.0-alpha.4",
72
+ "@tsed/platform-exceptions": "8.0.0-alpha.6",
73
+ "@tsed/platform-log-middleware": "8.0.0-alpha.6",
74
+ "@tsed/platform-middlewares": "8.0.0-alpha.6",
75
+ "@tsed/platform-params": "8.0.0-alpha.6",
76
+ "@tsed/platform-response-filter": "8.0.0-alpha.6",
77
+ "@tsed/platform-router": "8.0.0-alpha.6",
78
+ "@tsed/platform-views": "8.0.0-alpha.6",
79
+ "@tsed/schema": "8.0.0-alpha.6",
81
80
  "@types/json-schema": "7.0.15",
82
81
  "accepts": "^1.3.8",
83
82
  "tslib": "2.6.1",
84
83
  "uuid": "9.0.1"
85
84
  },
86
85
  "devDependencies": {
87
- "@tsed/barrels": "8.0.0-alpha.4",
88
- "@tsed/components-scan": "8.0.0-alpha.4",
89
- "@tsed/engines": "8.0.0-alpha.4",
90
- "@tsed/typescript": "8.0.0-alpha.4",
86
+ "@tsed/barrels": "8.0.0-alpha.6",
87
+ "@tsed/components-scan": "8.0.0-alpha.6",
88
+ "@tsed/engines": "8.0.0-alpha.6",
89
+ "@tsed/typescript": "8.0.0-alpha.6",
91
90
  "cross-env": "7.0.3",
92
91
  "eslint": "^8.57.0",
93
92
  "typescript": "4.9.5",
@@ -1,341 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.PlatformBuilder = void 0;
27
- const core_1 = require("@tsed/core");
28
- const di_1 = require("@tsed/di");
29
- const platform_middlewares_1 = require("@tsed/platform-middlewares");
30
- const Platform_js_1 = require("../services/Platform.js");
31
- const PlatformAdapter_js_1 = require("../services/PlatformAdapter.js");
32
- const PlatformApplication_js_1 = require("../services/PlatformApplication.js");
33
- const closeServer_js_1 = require("../utils/closeServer.js");
34
- const createInjector_js_1 = require("../utils/createInjector.js");
35
- const getConfiguration_js_1 = require("../utils/getConfiguration.js");
36
- const getStaticsOptions_js_1 = require("../utils/getStaticsOptions.js");
37
- const printRoutes_js_1 = require("../utils/printRoutes.js");
38
- /**
39
- * @platform
40
- */
41
- class PlatformBuilder {
42
- #injector;
43
- #rootModule;
44
- #adapter;
45
- #promise;
46
- #servers;
47
- #listeners;
48
- constructor(adapter, module, settings) {
49
- this.name = "";
50
- this.startedAt = new Date();
51
- this.current = new Date();
52
- this.#listeners = [];
53
- this.#rootModule = module;
54
- const configuration = (0, getConfiguration_js_1.getConfiguration)(settings, module);
55
- const adapterKlass = adapter || PlatformBuilder.adapter;
56
- configuration.PLATFORM_NAME = adapterKlass.NAME;
57
- this.name = adapterKlass.NAME;
58
- this.#injector = (0, createInjector_js_1.createInjector)({
59
- adapter: adapterKlass,
60
- settings: configuration
61
- });
62
- this.log(`Loading ${adapterKlass.NAME.toUpperCase()} platform adapter...`);
63
- this.#adapter = this.#injector.get(PlatformAdapter_js_1.PlatformAdapter);
64
- this.createHttpServers();
65
- this.log("Injector created...");
66
- }
67
- get injector() {
68
- return this.#injector;
69
- }
70
- get rootModule() {
71
- return this.#injector.get(this.#rootModule);
72
- }
73
- get app() {
74
- return this.injector.get(PlatformApplication_js_1.PlatformApplication);
75
- }
76
- get platform() {
77
- return this.injector.get(Platform_js_1.Platform);
78
- }
79
- get adapter() {
80
- return this.#adapter;
81
- }
82
- /**
83
- * Return the settings configured by the decorator @@Configuration@@.
84
- *
85
- * ```typescript
86
- * @Configuration({
87
- * port: 8000,
88
- * httpsPort: 8080,
89
- * mount: {
90
- * "/rest": "${rootDir}/controllers/**\/*.js"
91
- * }
92
- * })
93
- * export class Server {
94
- * $onInit(){
95
- * console.log(this.settings); // {rootDir, port, httpsPort,...}
96
- * }
97
- * }
98
- * ```
99
- *
100
- * @returns {PlatformConfiguration}
101
- */
102
- get settings() {
103
- return this.injector.settings;
104
- }
105
- get logger() {
106
- return this.injector.logger;
107
- }
108
- get disableBootstrapLog() {
109
- return this.settings.get("logger.disableBootstrapLog");
110
- }
111
- static create(module, settings) {
112
- return this.build(module, {
113
- httpsPort: false,
114
- httpPort: false,
115
- ...settings
116
- });
117
- }
118
- static build(module, { adapter, ...settings }) {
119
- return new PlatformBuilder(adapter, module, settings);
120
- }
121
- /**
122
- * Bootstrap a server application
123
- * @param module
124
- * @param settings
125
- */
126
- static bootstrap(module, settings) {
127
- return this.build(module, settings).bootstrap();
128
- }
129
- callback(...args) {
130
- return this.adapter.app.callback(...args);
131
- }
132
- log(...data) {
133
- return !this.disableBootstrapLog && this.logger.info(...data, this.diff());
134
- }
135
- /**
136
- * Add classes decorated by @@Controller@@ to components container.
137
- *
138
- * ### Example
139
- *
140
- * ```typescript
141
- * @Controller('/ctrl')
142
- * class MyController{
143
- * }
144
- *
145
- * platform.addControllers('/rest', [MyController])
146
- * ```
147
- *
148
- * ::: tip
149
- * If the MyController class isn't decorated, the class will be ignored.
150
- * :::
151
- *
152
- * @param {string} endpoint
153
- * @param {any[]} controllers
154
- */
155
- addControllers(endpoint, controllers) {
156
- [].concat(controllers).forEach((token) => {
157
- this.settings.routes.push({ token, route: endpoint });
158
- });
159
- }
160
- async runLifecycle() {
161
- // init adapter (Express, Koa, etc...)
162
- await this.#adapter.onInit();
163
- (0, di_1.setLoggerConfiguration)(this.injector);
164
- // create the middleware mapping to be executed to the expected hook
165
- await this.mapTokenMiddlewares();
166
- await this.loadInjector();
167
- // add the context middleware to the application
168
- this.log("Mount app context");
169
- this.#adapter.useContext();
170
- // init routes (controllers, middlewares, etc...)
171
- this.log("Load routes");
172
- await this.#adapter.beforeLoadRoutes();
173
- // istanbul ignore next
174
- if (this.settings.get("logger.level") !== "off") {
175
- const { PlatformLogMiddleware } = await Promise.resolve().then(() => __importStar(require("@tsed/platform-log-middleware")));
176
- this.app.use(PlatformLogMiddleware);
177
- }
178
- if (this.rootModule.$beforeRoutesInit) {
179
- await this.rootModule.$beforeRoutesInit();
180
- // remove method to avoid multiple call and preserve hook order
181
- this.rootModule.$beforeRoutesInit = () => { };
182
- }
183
- // Hooks execution (adding middlewares, controllers, services, etc...)
184
- await this.loadStatics("$beforeRoutesInit");
185
- await this.callHook("$beforeRoutesInit");
186
- const routes = this.injector.settings.get("routes");
187
- this.platform.addRoutes(routes);
188
- await this.callHook("$onRoutesInit");
189
- await this.loadStatics("$afterRoutesInit");
190
- await this.callHook("$afterRoutesInit");
191
- await this.#adapter.afterLoadRoutes();
192
- // map routers are loaded after all hooks because it contains all added middlewares/controllers in the virtual Ts.ED layers
193
- // This step will convert all Ts.ED layers to the platform layer (Express or Koa)
194
- await this.mapRouters();
195
- // Server is bootstrapped and ready to listen
196
- return this;
197
- }
198
- async loadInjector() {
199
- const { injector } = this;
200
- this.log("Build providers");
201
- await injector.loadModule(this.#rootModule);
202
- this.log("Settings and injector loaded...");
203
- await this.callHook("$afterInit");
204
- }
205
- async listen(network = true) {
206
- if (!this.#promise) {
207
- await this.bootstrap();
208
- }
209
- await this.callHook("$beforeListen");
210
- if (network) {
211
- await this.listenServers();
212
- }
213
- await this.callHook("$afterListen");
214
- await this.ready();
215
- }
216
- async stop() {
217
- await this.callHook("$onDestroy");
218
- await this.injector.destroy();
219
- this.#listeners.map(closeServer_js_1.closeServer);
220
- }
221
- async ready() {
222
- const { startedAt } = this;
223
- await this.callHook("$onReady");
224
- await this.injector.emit("$onServerReady");
225
- this.log(`Started in ${new Date().getTime() - startedAt.getTime()} ms`);
226
- }
227
- async callHook(hook, ...args) {
228
- const { injector } = this;
229
- if (!this.disableBootstrapLog) {
230
- injector.logger.debug(`\x1B[1mCall hook ${hook}\x1B[22m`);
231
- }
232
- // Load middlewares for the given hook
233
- this.loadMiddlewaresFor(hook);
234
- // call hooks added by providers
235
- await injector.emit(hook, ...args);
236
- }
237
- loadStatics(hook) {
238
- const statics = this.settings.get("statics");
239
- (0, getStaticsOptions_js_1.getStaticsOptions)(statics).forEach(({ path, options }) => {
240
- if (options.hook === hook) {
241
- this.platform.app.statics(path, options);
242
- }
243
- });
244
- }
245
- useProvider(token, settings) {
246
- this.injector.addProvider(token, settings);
247
- return this;
248
- }
249
- bootstrap() {
250
- this.#promise = this.#promise || this.runLifecycle();
251
- return this.#promise;
252
- }
253
- mapRouters() {
254
- const layers = this.platform.getLayers();
255
- this.#adapter.mapLayers(layers);
256
- const rawBody = this.settings.get("rawBody") ||
257
- layers.some(({ handlers }) => {
258
- return handlers.some((handler) => handler.opts?.paramsTypes?.RAW_BODY);
259
- });
260
- this.settings.set("rawBody", rawBody);
261
- return this.logRoutes(layers.filter((layer) => layer.isProvider()));
262
- }
263
- diff() {
264
- const ms = di_1.colors.yellow(`+${new Date().getTime() - this.current.getTime()}ms`);
265
- this.current = new Date();
266
- return ms;
267
- }
268
- /**
269
- * Load middlewares from configuration for the given hook
270
- * @param hook
271
- * @protected
272
- */
273
- loadMiddlewaresFor(hook) {
274
- return (0, platform_middlewares_1.getMiddlewaresForHook)(hook, this.settings, "$beforeRoutesInit").forEach(({ use }) => {
275
- this.app.use(use);
276
- });
277
- }
278
- createHttpServers() {
279
- this.#servers = this.#adapter.getServers();
280
- }
281
- async listenServers() {
282
- this.#listeners = await Promise.all(this.#servers.map((cb) => cb && cb()));
283
- }
284
- async logRoutes(layers) {
285
- const { logger } = this;
286
- this.log("Routes mounted...");
287
- if (!this.settings.get("logger.disableRoutesSummary") && !this.disableBootstrapLog) {
288
- const routes = layers.map((layer) => {
289
- return {
290
- url: layer.path,
291
- method: layer.method,
292
- name: layer.opts.name || `${layer.provider.className}.constructor()`,
293
- className: layer.opts.className || layer.provider.className,
294
- methodClassName: layer.opts.methodClassName || ""
295
- };
296
- });
297
- logger.info((0, printRoutes_js_1.printRoutes)(await this.injector.alterAsync("$logRoutes", routes)));
298
- }
299
- }
300
- async mapTokenMiddlewares() {
301
- let middlewares = this.injector.settings.get("middlewares", []);
302
- const { env } = this.injector.settings;
303
- const defaultHook = "$beforeRoutesInit";
304
- const promises = middlewares.map(async (middleware) => {
305
- var _a;
306
- if ((0, core_1.isFunction)(middleware)) {
307
- return {
308
- env,
309
- hook: defaultHook,
310
- use: middleware
311
- };
312
- }
313
- if ((0, core_1.isString)(middleware)) {
314
- middleware = { env, use: middleware, hook: defaultHook };
315
- }
316
- let { use, options } = middleware;
317
- if ((0, core_1.isString)(use)) {
318
- if (["text-parser", "raw-parser", "json-parser", "urlencoded-parser"].includes(use)) {
319
- use = this.adapter.bodyParser(use.replace("-parser", ""), options);
320
- }
321
- else {
322
- const mod = await (_a = use, Promise.resolve().then(() => __importStar(require(_a))));
323
- use = (mod.default || mod)(options);
324
- }
325
- }
326
- if ((0, core_1.isClass)(use) && ["$beforeInit", "$onInit", "$afterInit"].includes(middleware.hook)) {
327
- throw new Error(`Ts.ED Middleware "${(0, core_1.nameOf)(use)}" middleware cannot be added on ${middleware.hook} hook. Use one of this hooks instead: $beforeRoutesInit, $onRoutesInit, $afterRoutesInit, $beforeListen, $afterListen, $onReady`);
328
- }
329
- return {
330
- env,
331
- hook: defaultHook,
332
- ...middleware,
333
- use
334
- };
335
- });
336
- middlewares = await Promise.all(promises);
337
- this.injector.settings.set("middlewares", middlewares.filter((middleware) => middleware.use));
338
- }
339
- }
340
- exports.PlatformBuilder = PlatformBuilder;
341
- //# sourceMappingURL=PlatformBuilder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PlatformBuilder.js","sourceRoot":"","sources":["../../../src/builder/PlatformBuilder.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAuE;AACvE,iCAAsG;AACtG,qEAAmG;AASnG,yDAAiD;AACjD,uEAAwF;AACxF,+EAAuE;AACvE,4DAAoD;AACpD,kEAA0D;AAE1D,sEAA8D;AAC9D,wEAAgE;AAChE,4DAAoD;AAEpD;;GAEG;AACH,MAAa,eAAe;IAMjB,SAAS,CAAkB;IAC3B,WAAW,CAAY;IACvB,QAAQ,CAAuB;IACxC,QAAQ,CAAgB;IACxB,QAAQ,CAAuB;IAC/B,UAAU,CAA0D;IAEpE,YAAsB,OAA+C,EAAE,MAAY,EAAE,QAAqC;QAVjH,SAAI,GAAW,EAAE,CAAC;QACjB,cAAS,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,YAAO,GAAG,IAAI,IAAI,EAAE,CAAC;QAM/B,eAAU,GAAuD,EAAE,CAAC;QAGlE,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;QAE1B,MAAM,aAAa,GAAG,IAAA,sCAAgB,EAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QACzD,MAAM,YAAY,GAAgD,OAAO,IAAK,eAAe,C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AAE;gBACvF,MAAM,IAAI,KAAK,CACb,qBAAqB,IAAA,aAAM,EAAC,GAAG,CAAC,mCAC9B,UAAU,CAAC,IACb,iIAAiI,CAClI,CAAC;aACH;YAED,OAAO;gBACL,GAAG;gBACH,IAAI,EAAE,WAAW;gBACjB,GAAG,UAAU;gBACb,GAAG;aACJ,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,WAAW,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAE1C,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CACxB,aAAa,EACb,WAAW,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CACnD,CAAC;IACJ,CAAC;CACF;AAxYD,0CAwYC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=PlatformJsonMapperSettings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PlatformJsonMapperSettings.js","sourceRoot":"","sources":["../../../../src/config/interfaces/PlatformJsonMapperSettings.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=PlatformMulterSettings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PlatformMulterSettings.js","sourceRoot":"","sources":["../../../../src/config/interfaces/PlatformMulterSettings.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=PlatformRouterSettings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PlatformRouterSettings.js","sourceRoot":"","sources":["../../../../src/config/interfaces/PlatformRouterSettings.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=PlatformStaticsSettings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PlatformStaticsSettings.js","sourceRoot":"","sources":["../../../../src/config/interfaces/PlatformStaticsSettings.ts"],"names":[],"mappings":""}