@nestjs/platform-fastify 9.1.6 → 9.2.1
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.
- package/Readme.md +6 -2
- package/adapters/fastify-adapter.d.ts +2 -2
- package/package.json +4 -4
- package/tsconfig.build.json +22 -0
package/Readme.md
CHANGED
|
@@ -78,7 +78,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
|
|
|
78
78
|
<td>
|
|
79
79
|
<a href="https://jetbrains.com/" target="_blank"><img src="https://nestjs.com/img/jetbrains-logo.svg" width="110" valign="middle" /></a></td><td>
|
|
80
80
|
<a href="https://snyk.co/nestjs" target="_blank"><img src="https://nestjs.com/img/snyk-logo-black.png" width="185" valign="middle" /></a></td><td>
|
|
81
|
-
<a href="https://fuseautotech.com/" target="_blank"><img src="https://nestjs.com/img/fuse-logo.svg" width="105" valign="middle" /></a></td
|
|
81
|
+
<a href="https://fuseautotech.com/" target="_blank"><img src="https://nestjs.com/img/fuse-logo.svg" width="105" valign="middle" /></a></td>
|
|
82
|
+
<td>
|
|
83
|
+
<a href="https://ridicorp.com/career/" target="_blank"><img src="https://nestjs.com/img/ridi-logo.svg" width="105" valign="middle" /></a></td></</tr></table>
|
|
82
84
|
|
|
83
85
|
#### Silver Sponsors
|
|
84
86
|
|
|
@@ -90,7 +92,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
|
|
|
90
92
|
<a href="https://www.castlecraft.in" target="_blank"><img src="https://nestjs.com/img/castlecraft-logo.png" width="150" valign="middle" /></td>
|
|
91
93
|
<td><a href="https://www.tinystacks.com" target="_blank"><img src="https://nestjs.com/img/tinystacks-logo.png#1" width="140" valign="middle" /></td>
|
|
92
94
|
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td></tr><tr>
|
|
93
|
-
<td><a href="https://bilberrry.com/" target="_blank"><img src="https://nestjs.com/img/bilberrry-logo.svg" width="180" valign="middle" /></td
|
|
95
|
+
<td><a href="https://bilberrry.com/" target="_blank"><img src="https://nestjs.com/img/bilberrry-logo.svg" width="180" valign="middle" /></td>
|
|
96
|
+
<td><a href="https://ipinfo.ai/" target="_blank"><img src="https://nestjs.com/img/ipinfo-logo.png" width="130" valign="middle" /></td></tr>
|
|
97
|
+
</table>
|
|
94
98
|
|
|
95
99
|
#### Sponsors
|
|
96
100
|
|
|
@@ -4,7 +4,7 @@ import { RequestMethod, VersioningOptions } from '@nestjs/common';
|
|
|
4
4
|
import { VersionValue } from '@nestjs/common/interfaces';
|
|
5
5
|
import { CorsOptions, CorsOptionsDelegate } from '@nestjs/common/interfaces/external/cors-options.interface';
|
|
6
6
|
import { AbstractHttpAdapter } from '@nestjs/core/adapters/http-adapter';
|
|
7
|
-
import { FastifyInstance, FastifyLoggerInstance, FastifyPluginAsync, FastifyPluginCallback, FastifyReply, FastifyRequest, FastifyServerOptions, RawReplyDefaultExpression, RawRequestDefaultExpression, RawServerBase, RawServerDefault, RequestGenericInterface } from 'fastify';
|
|
7
|
+
import { FastifyInstance, FastifyLoggerInstance, FastifyPluginAsync, FastifyPluginCallback, FastifyRegister, FastifyReply, FastifyRequest, FastifyServerOptions, RawReplyDefaultExpression, RawRequestDefaultExpression, RawServerBase, RawServerDefault, RequestGenericInterface } from 'fastify';
|
|
8
8
|
import * as http2 from 'http2';
|
|
9
9
|
import * as https from 'https';
|
|
10
10
|
import { Chain as LightMyRequestChain, InjectOptions, Response as LightMyRequestResponse } from 'light-my-request';
|
|
@@ -63,7 +63,7 @@ export declare class FastifyAdapter<TServer extends RawServerBase = RawServerDef
|
|
|
63
63
|
setNotFoundHandler(handler: Function): FastifyInstance<TServer, TRawRequest, TRawResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>;
|
|
64
64
|
getHttpServer<T = TServer>(): T;
|
|
65
65
|
getInstance<T = TInstance>(): T;
|
|
66
|
-
register<TRegister extends Parameters<TInstance
|
|
66
|
+
register<TRegister extends Parameters<FastifyRegister<TInstance>>>(plugin: TRegister['0'], opts?: TRegister['1']): FastifyInstance<TServer, TRawRequest, TRawResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault> & PromiseLike<undefined>;
|
|
67
67
|
inject(): LightMyRequestChain;
|
|
68
68
|
inject(opts: InjectOptions | string): Promise<LightMyRequestResponse>;
|
|
69
69
|
close(): Promise<undefined>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/platform-fastify",
|
|
3
|
-
"version": "9.1
|
|
3
|
+
"version": "9.2.1",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@platform-fastify)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@fastify/cors": "8.
|
|
20
|
+
"@fastify/cors": "8.2.0",
|
|
21
21
|
"@fastify/formbody": "7.3.0",
|
|
22
22
|
"@fastify/middie": "8.0.0",
|
|
23
|
-
"fastify": "4.
|
|
23
|
+
"fastify": "4.10.2",
|
|
24
24
|
"light-my-request": "5.6.1",
|
|
25
25
|
"path-to-regexp": "3.2.0",
|
|
26
|
-
"tslib": "2.4.
|
|
26
|
+
"tslib": "2.4.1"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@fastify/static": "^6.0.0",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.build.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": ".",
|
|
5
|
+
"rootDir": ".",
|
|
6
|
+
"paths": {
|
|
7
|
+
"@nestjs/common": ["../common"],
|
|
8
|
+
"@nestjs/common/*": ["../common/*"],
|
|
9
|
+
"@nestjs/core": ["../core"],
|
|
10
|
+
"@nestjs/core/*": ["../core/*"]
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"exclude": ["node_modules", "dist", "test/**/*", "*.spec.ts"],
|
|
14
|
+
"references": [
|
|
15
|
+
{
|
|
16
|
+
"path": "../common/tsconfig.build.json"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"path": "../core/tsconfig.build.json"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|