@tsed/platform-http 8.24.0 → 8.24.2
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.
|
@@ -216,9 +216,9 @@ export class PlatformBuilder {
|
|
|
216
216
|
this.#promise = this.#promise || this.runLifecycle();
|
|
217
217
|
return this.#promise;
|
|
218
218
|
}
|
|
219
|
-
mapRouters() {
|
|
219
|
+
async mapRouters() {
|
|
220
220
|
const layers = this.platform.getLayers();
|
|
221
|
-
this.adapter.mapLayers(layers);
|
|
221
|
+
await this.adapter.mapLayers(layers);
|
|
222
222
|
const rawBody = constant("rawBody") ||
|
|
223
223
|
layers.some(({ handlers }) => {
|
|
224
224
|
return handlers.some((handler) => handler.opts?.paramsTypes?.RAW_BODY);
|
|
@@ -20,7 +20,7 @@ export declare abstract class PlatformAdapter<App = TsED.Application> {
|
|
|
20
20
|
/**
|
|
21
21
|
* Map router layer to the targeted framework
|
|
22
22
|
*/
|
|
23
|
-
abstract mapLayers(layer: PlatformLayer[]): void
|
|
23
|
+
abstract mapLayers(layer: PlatformLayer[]): void | Promise<void>;
|
|
24
24
|
/**
|
|
25
25
|
* Map handler to the targeted framework
|
|
26
26
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type Http from "node:http";
|
|
2
2
|
import type Https from "node:https";
|
|
3
3
|
import type Http2 from "http2";
|
|
4
|
-
export declare function closeServer(server: Http.Server | Https.Server | Http2.Http2Server): Promise<unknown
|
|
4
|
+
export declare function closeServer(server: Http.Server | Https.Server | Http2.Http2Server): Promise<unknown> | undefined;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/platform-http",
|
|
3
3
|
"description": "A TypeScript Framework on top of Express",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "8.24.
|
|
5
|
+
"version": "8.24.2",
|
|
6
6
|
"source": "./src/common/index.ts",
|
|
7
7
|
"main": "./lib/esm/common/index.js",
|
|
8
8
|
"module": "./lib/esm/common/index.js",
|
|
@@ -70,31 +70,32 @@
|
|
|
70
70
|
}
|
|
71
71
|
],
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@tsed/core": "8.24.
|
|
74
|
-
"@tsed/di": "8.24.
|
|
75
|
-
"@tsed/exceptions": "8.24.
|
|
76
|
-
"@tsed/hooks": "8.24.
|
|
77
|
-
"@tsed/json-mapper": "8.24.
|
|
73
|
+
"@tsed/core": "8.24.2",
|
|
74
|
+
"@tsed/di": "8.24.2",
|
|
75
|
+
"@tsed/exceptions": "8.24.2",
|
|
76
|
+
"@tsed/hooks": "8.24.2",
|
|
77
|
+
"@tsed/json-mapper": "8.24.2",
|
|
78
78
|
"@tsed/logger": "^8.0.0",
|
|
79
79
|
"@tsed/logger-std": "^8.0.0",
|
|
80
|
-
"@tsed/platform-accept-mimes": "8.24.
|
|
81
|
-
"@tsed/platform-exceptions": "8.24.
|
|
82
|
-
"@tsed/platform-middlewares": "8.24.
|
|
83
|
-
"@tsed/platform-multer": "8.24.
|
|
84
|
-
"@tsed/platform-params": "8.24.
|
|
85
|
-
"@tsed/platform-response-filter": "8.24.
|
|
86
|
-
"@tsed/platform-router": "8.24.
|
|
87
|
-
"@tsed/platform-views": "8.24.
|
|
88
|
-
"@tsed/schema": "8.24.
|
|
80
|
+
"@tsed/platform-accept-mimes": "8.24.2",
|
|
81
|
+
"@tsed/platform-exceptions": "8.24.2",
|
|
82
|
+
"@tsed/platform-middlewares": "8.24.2",
|
|
83
|
+
"@tsed/platform-multer": "8.24.2",
|
|
84
|
+
"@tsed/platform-params": "8.24.2",
|
|
85
|
+
"@tsed/platform-response-filter": "8.24.2",
|
|
86
|
+
"@tsed/platform-router": "8.24.2",
|
|
87
|
+
"@tsed/platform-views": "8.24.2",
|
|
88
|
+
"@tsed/schema": "8.24.2",
|
|
89
89
|
"@types/json-schema": "7.0.15",
|
|
90
90
|
"accepts": "^1.3.8",
|
|
91
|
+
"encodeurl": "^2.0.0",
|
|
91
92
|
"tslib": "2.7.0",
|
|
92
93
|
"uuid": "10.0.0"
|
|
93
94
|
},
|
|
94
95
|
"devDependencies": {
|
|
95
|
-
"@tsed/barrels": "8.24.
|
|
96
|
-
"@tsed/engines": "8.24.
|
|
97
|
-
"@tsed/typescript": "8.24.
|
|
96
|
+
"@tsed/barrels": "8.24.2",
|
|
97
|
+
"@tsed/engines": "8.24.2",
|
|
98
|
+
"@tsed/typescript": "8.24.2",
|
|
98
99
|
"cross-env": "7.0.3",
|
|
99
100
|
"eslint": "9.12.0",
|
|
100
101
|
"typescript": "5.9.3",
|