@nestjs/platform-fastify 9.0.9 → 9.0.10

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.
@@ -44,13 +44,13 @@ export declare class FastifyAdapter<TServer extends RawServerBase = RawServerDef
44
44
  init(): Promise<void>;
45
45
  listen(port: string | number, callback?: () => void): void;
46
46
  listen(port: string | number, hostname: string, callback?: () => void): void;
47
- get(...args: any[]): FastifyInstance<TServer, TRawRequest, TRawResponse, FastifyLoggerInstance, import("fastify").FastifyTypeProviderDefault>;
48
- post(...args: any[]): FastifyInstance<TServer, TRawRequest, TRawResponse, FastifyLoggerInstance, import("fastify").FastifyTypeProviderDefault>;
49
- head(...args: any[]): FastifyInstance<TServer, TRawRequest, TRawResponse, FastifyLoggerInstance, import("fastify").FastifyTypeProviderDefault>;
50
- delete(...args: any[]): FastifyInstance<TServer, TRawRequest, TRawResponse, FastifyLoggerInstance, import("fastify").FastifyTypeProviderDefault>;
51
- put(...args: any[]): FastifyInstance<TServer, TRawRequest, TRawResponse, FastifyLoggerInstance, import("fastify").FastifyTypeProviderDefault>;
52
- patch(...args: any[]): FastifyInstance<TServer, TRawRequest, TRawResponse, FastifyLoggerInstance, import("fastify").FastifyTypeProviderDefault>;
53
- options(...args: any[]): FastifyInstance<TServer, TRawRequest, TRawResponse, FastifyLoggerInstance, import("fastify").FastifyTypeProviderDefault>;
47
+ get(...args: any[]): FastifyInstance<TServer, TRawRequest, TRawResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>;
48
+ post(...args: any[]): FastifyInstance<TServer, TRawRequest, TRawResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>;
49
+ head(...args: any[]): FastifyInstance<TServer, TRawRequest, TRawResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>;
50
+ delete(...args: any[]): FastifyInstance<TServer, TRawRequest, TRawResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>;
51
+ put(...args: any[]): FastifyInstance<TServer, TRawRequest, TRawResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>;
52
+ patch(...args: any[]): FastifyInstance<TServer, TRawRequest, TRawResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>;
53
+ options(...args: any[]): FastifyInstance<TServer, TRawRequest, TRawResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>;
54
54
  applyVersionFilter(handler: Function, version: VersionValue, versioningOptions: VersioningOptions): VersionedRoute<TRequest, TReply>;
55
55
  reply(response: TRawResponse | TReply, body: any, statusCode?: number): FastifyReply<TServer, TRawRequest, TRawResponse, import("fastify/types/route").RouteGenericInterface, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown>;
56
56
  status(response: TRawResponse | TReply, statusCode: number): TRawResponse | FastifyReply<TServer, TRawRequest, TRawResponse, import("fastify/types/route").RouteGenericInterface, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown>;
@@ -59,17 +59,17 @@ export declare class FastifyAdapter<TServer extends RawServerBase = RawServerDef
59
59
  view: Function;
60
60
  }, view: string, options: any): any;
61
61
  redirect(response: TReply, statusCode: number, url: string): FastifyReply<TServer, TRawRequest, TRawResponse, import("fastify/types/route").RouteGenericInterface, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown>;
62
- setErrorHandler(handler: Parameters<TInstance['setErrorHandler']>[0]): FastifyInstance<TServer, TRawRequest, TRawResponse, FastifyLoggerInstance, import("fastify").FastifyTypeProvider>;
63
- setNotFoundHandler(handler: Function): FastifyInstance<TServer, TRawRequest, TRawResponse, FastifyLoggerInstance, import("fastify").FastifyTypeProviderDefault>;
62
+ setErrorHandler(handler: Parameters<TInstance['setErrorHandler']>[0]): FastifyInstance<TServer, TRawRequest, TRawResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProvider>;
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['register']>>(plugin: TRegister['0'], opts?: TRegister['1']): FastifyInstance<TServer, TRawRequest, TRawResponse, FastifyLoggerInstance, import("fastify").FastifyTypeProviderDefault> & PromiseLike<undefined>;
66
+ register<TRegister extends Parameters<TInstance['register']>>(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>;
70
70
  initHttpServer(): void;
71
- useStaticAssets(options: FastifyStaticOptions): FastifyInstance<TServer, TRawRequest, TRawResponse, FastifyLoggerInstance, import("fastify").FastifyTypeProviderDefault> & PromiseLike<undefined>;
72
- setViewEngine(options: PointOfViewOptions | string): FastifyInstance<TServer, TRawRequest, TRawResponse, FastifyLoggerInstance, import("fastify").FastifyTypeProviderDefault> & PromiseLike<undefined>;
71
+ useStaticAssets(options: FastifyStaticOptions): FastifyInstance<TServer, TRawRequest, TRawResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault> & PromiseLike<undefined>;
72
+ setViewEngine(options: PointOfViewOptions | string): FastifyInstance<TServer, TRawRequest, TRawResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault> & PromiseLike<undefined>;
73
73
  isHeadersSent(response: TReply): boolean;
74
74
  setHeader(response: TReply, name: string, value: string): FastifyReply<TServer, TRawRequest, TRawResponse, import("fastify/types/route").RouteGenericInterface, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown>;
75
75
  getRequestHostname(request: TRequest): string;
@@ -84,7 +84,7 @@ export declare class FastifyAdapter<TServer extends RawServerBase = RawServerDef
84
84
  default: FastifyPluginCallback<any>;
85
85
  }> | Promise<{
86
86
  default: FastifyPluginAsync<any>;
87
- }>, prefix?: string): FastifyInstance<TServer, TRawRequest, TRawResponse, FastifyLoggerInstance, import("fastify").FastifyTypeProviderDefault> & PromiseLike<undefined>;
87
+ }>, prefix?: string): FastifyInstance<TServer, TRawRequest, TRawResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault> & PromiseLike<undefined>;
88
88
  private isNativeResponse;
89
89
  private registerJsonContentParser;
90
90
  private registerUrlencodedContentParser;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/platform-fastify",
3
- "version": "9.0.9",
3
+ "version": "9.0.10",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@platform-fastify)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",