@tsed/platform-fastify 8.38.0-beta.3 → 8.38.0-beta.5
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.
|
@@ -26,27 +26,21 @@ export class PlatformFastify extends PlatformAdapter {
|
|
|
26
26
|
this.NAME = "fastify";
|
|
27
27
|
this.staticsDecorated = false;
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return PlatformBuilder.create(module, {
|
|
36
|
-
...settings,
|
|
29
|
+
static create(module, settings) {
|
|
30
|
+
return new PlatformBuilder({
|
|
31
|
+
rootModule: settings ? module : undefined,
|
|
32
|
+
httpsPort: false,
|
|
33
|
+
httpPort: false,
|
|
34
|
+
...(settings || module),
|
|
37
35
|
adapter: PlatformFastify
|
|
38
36
|
});
|
|
39
37
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
*/
|
|
45
|
-
static bootstrap(module, settings = {}) {
|
|
46
|
-
return PlatformBuilder.bootstrap(module, {
|
|
47
|
-
...settings,
|
|
38
|
+
static bootstrap(module, settings) {
|
|
39
|
+
return new PlatformBuilder({
|
|
40
|
+
rootModule: settings ? module : undefined,
|
|
41
|
+
...(settings || module),
|
|
48
42
|
adapter: PlatformFastify
|
|
49
|
-
});
|
|
43
|
+
}).bootstrap();
|
|
50
44
|
}
|
|
51
45
|
async mapLayers(layers) {
|
|
52
46
|
const { app } = this;
|
|
@@ -22,13 +22,15 @@ export declare class PlatformFastify extends PlatformAdapter<FastifyInstance> {
|
|
|
22
22
|
* @param module
|
|
23
23
|
* @param settings
|
|
24
24
|
*/
|
|
25
|
-
static create(
|
|
25
|
+
static create(settings: Partial<TsED.Configuration>): PlatformBuilder<FastifyInstance>;
|
|
26
|
+
static create(module: Type<any>, settings?: Partial<TsED.Configuration>): PlatformBuilder<FastifyInstance>;
|
|
26
27
|
/**
|
|
27
28
|
* Bootstrap a server application
|
|
28
29
|
* @param module
|
|
29
30
|
* @param settings
|
|
30
31
|
*/
|
|
31
|
-
static bootstrap(
|
|
32
|
+
static bootstrap(settings: Partial<TsED.Configuration>): Promise<PlatformBuilder<FastifyInstance>>;
|
|
33
|
+
static bootstrap(module: Type<any>, settings: Partial<TsED.Configuration>): Promise<PlatformBuilder<FastifyInstance>>;
|
|
32
34
|
mapLayers(layers: PlatformLayer[]): Promise<void>;
|
|
33
35
|
mapHandler(handler: (...args: any[]) => any, metadata: PlatformHandlerMetadata): (...args: any[]) => any;
|
|
34
36
|
useContext(): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/platform-fastify",
|
|
3
|
-
"version": "8.38.0-beta.
|
|
3
|
+
"version": "8.38.0-beta.5",
|
|
4
4
|
"description": "Fastify package for Ts.ED framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Controller",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"@fastify/cookie": "11.0.1",
|
|
62
62
|
"@fastify/formbody": "8.0.1",
|
|
63
63
|
"@fastify/session": "11.0.1",
|
|
64
|
-
"@tsed/barrels": "8.38.0-beta.
|
|
65
|
-
"@tsed/core": "8.38.0-beta.
|
|
66
|
-
"@tsed/di": "8.38.0-beta.
|
|
67
|
-
"@tsed/platform-http": "8.38.0-beta.
|
|
68
|
-
"@tsed/platform-test-sdk": "8.38.0-beta.
|
|
64
|
+
"@tsed/barrels": "8.38.0-beta.5",
|
|
65
|
+
"@tsed/core": "8.38.0-beta.5",
|
|
66
|
+
"@tsed/di": "8.38.0-beta.5",
|
|
67
|
+
"@tsed/platform-http": "8.38.0-beta.5",
|
|
68
|
+
"@tsed/platform-test-sdk": "8.38.0-beta.5",
|
|
69
69
|
"@types/content-disposition": "^0.5.4",
|
|
70
70
|
"cross-env": "7.0.3",
|
|
71
71
|
"fastify": "5.8.3",
|