forked from nestjs/nest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(@nestjs/core) add async lifecycle hooks support
- Loading branch information
1 parent
52acfe4
commit 5d28b98
Showing
61 changed files
with
2,448 additions
and
3,622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
export declare const metadata: { | ||
MODULES: string; | ||
IMPORTS: string; | ||
COMPONENTS: string; | ||
PROVIDERS: string; | ||
CONTROLLERS: string; | ||
EXPORTS: string; | ||
MODULES: string; | ||
IMPORTS: string; | ||
COMPONENTS: string; | ||
PROVIDERS: string; | ||
CONTROLLERS: string; | ||
EXPORTS: string; | ||
}; | ||
export declare const SHARED_MODULE_METADATA = "__sharedModule__"; | ||
export declare const GLOBAL_MODULE_METADATA = "__globalModule__"; | ||
export declare const PATH_METADATA = "path"; | ||
export declare const PARAMTYPES_METADATA = "design:paramtypes"; | ||
export declare const SELF_DECLARED_DEPS_METADATA = "self:paramtypes"; | ||
export declare const METHOD_METADATA = "method"; | ||
export declare const ROUTE_ARGS_METADATA = "__routeArguments__"; | ||
export declare const CUSTOM_ROUTE_AGRS_METADATA = "__customRouteArgs__"; | ||
export declare const EXCEPTION_FILTERS_METADATA = "__exceptionFilters__"; | ||
export declare const FILTER_CATCH_EXCEPTIONS = "__filterCatchExceptions__"; | ||
export declare const PIPES_METADATA = "__pipes__"; | ||
export declare const GUARDS_METADATA = "__guards__"; | ||
export declare const RENDER_METADATA = "__renderTemplate__"; | ||
export declare const INTERCEPTORS_METADATA = "__interceptors__"; | ||
export declare const HTTP_CODE_METADATA = "__httpCode__"; | ||
export declare const GATEWAY_MIDDLEWARES = "__gatewayMiddlewares"; | ||
export declare const MODULE_PATH = "__module_path__"; | ||
export declare const SHARED_MODULE_METADATA = '__sharedModule__'; | ||
export declare const GLOBAL_MODULE_METADATA = '__globalModule__'; | ||
export declare const PATH_METADATA = 'path'; | ||
export declare const PARAMTYPES_METADATA = 'design:paramtypes'; | ||
export declare const SELF_DECLARED_DEPS_METADATA = 'self:paramtypes'; | ||
export declare const METHOD_METADATA = 'method'; | ||
export declare const ROUTE_ARGS_METADATA = '__routeArguments__'; | ||
export declare const CUSTOM_ROUTE_AGRS_METADATA = '__customRouteArgs__'; | ||
export declare const EXCEPTION_FILTERS_METADATA = '__exceptionFilters__'; | ||
export declare const FILTER_CATCH_EXCEPTIONS = '__filterCatchExceptions__'; | ||
export declare const PIPES_METADATA = '__pipes__'; | ||
export declare const GUARDS_METADATA = '__guards__'; | ||
export declare const RENDER_METADATA = '__renderTemplate__'; | ||
export declare const INTERCEPTORS_METADATA = '__interceptors__'; | ||
export declare const HTTP_CODE_METADATA = '__httpCode__'; | ||
export declare const GATEWAY_MIDDLEWARES = '__gatewayMiddlewares'; | ||
export declare const MODULE_PATH = '__module_path__'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,33 @@ | ||
import { PipeTransform, WebSocketAdapter, ExceptionFilter, NestInterceptor, CanActivate } from '@nestjs/common'; | ||
import { | ||
PipeTransform, | ||
WebSocketAdapter, | ||
ExceptionFilter, | ||
NestInterceptor, | ||
CanActivate, | ||
} from '@nestjs/common'; | ||
import { ConfigurationProvider } from '@nestjs/common/interfaces/configuration-provider.interface'; | ||
export declare class ApplicationConfig implements ConfigurationProvider { | ||
private ioAdapter; | ||
private globalPipes; | ||
private globalFilters; | ||
private globalInterceptors; | ||
private globalGuards; | ||
private globalPrefix; | ||
constructor(ioAdapter?: WebSocketAdapter | null); | ||
setGlobalPrefix(prefix: string): void; | ||
getGlobalPrefix(): string; | ||
setIoAdapter(ioAdapter: WebSocketAdapter): void; | ||
getIoAdapter(): WebSocketAdapter; | ||
addGlobalPipe(pipe: PipeTransform<any>): void; | ||
useGlobalPipes(...pipes: PipeTransform<any>[]): void; | ||
getGlobalFilters(): ExceptionFilter[]; | ||
addGlobalFilter(filter: ExceptionFilter): void; | ||
useGlobalFilters(...filters: ExceptionFilter[]): void; | ||
getGlobalPipes(): PipeTransform<any>[]; | ||
getGlobalInterceptors(): NestInterceptor[]; | ||
addGlobalInterceptor(interceptor: NestInterceptor): void; | ||
useGlobalInterceptors(...interceptors: NestInterceptor[]): void; | ||
getGlobalGuards(): CanActivate[]; | ||
addGlobalGuard(guard: CanActivate): void; | ||
useGlobalGuards(...guards: CanActivate[]): void; | ||
private ioAdapter; | ||
private globalPipes; | ||
private globalFilters; | ||
private globalInterceptors; | ||
private globalGuards; | ||
private globalPrefix; | ||
constructor(ioAdapter?: WebSocketAdapter | null); | ||
setGlobalPrefix(prefix: string): void; | ||
getGlobalPrefix(): string; | ||
setIoAdapter(ioAdapter: WebSocketAdapter): void; | ||
getIoAdapter(): WebSocketAdapter; | ||
addGlobalPipe(pipe: PipeTransform<any>): void; | ||
useGlobalPipes(...pipes: PipeTransform<any>[]): void; | ||
getGlobalFilters(): ExceptionFilter[]; | ||
addGlobalFilter(filter: ExceptionFilter): void; | ||
useGlobalFilters(...filters: ExceptionFilter[]): void; | ||
getGlobalPipes(): PipeTransform<any>[]; | ||
getGlobalInterceptors(): NestInterceptor[]; | ||
addGlobalInterceptor(interceptor: NestInterceptor): void; | ||
useGlobalInterceptors(...interceptors: NestInterceptor[]): void; | ||
getGlobalGuards(): CanActivate[]; | ||
addGlobalGuard(guard: CanActivate): void; | ||
useGlobalGuards(...guards: CanActivate[]): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
export declare const messages: { | ||
APPLICATION_START: string; | ||
APPLICATION_READY: string; | ||
MICROSERVICE_READY: string; | ||
UNKNOWN_EXCEPTION_MESSAGE: string; | ||
APPLICATION_START: string; | ||
APPLICATION_READY: string; | ||
MICROSERVICE_READY: string; | ||
UNKNOWN_EXCEPTION_MESSAGE: string; | ||
}; | ||
export declare const APP_INTERCEPTOR = "APP_INTERCEPTOR"; | ||
export declare const APP_PIPE = "APP_PIPE"; | ||
export declare const APP_GUARD = "APP_GUARD"; | ||
export declare const APP_FILTER = "APP_FILTER"; | ||
export declare const APP_INTERCEPTOR = 'APP_INTERCEPTOR'; | ||
export declare const APP_PIPE = 'APP_PIPE'; | ||
export declare const APP_GUARD = 'APP_GUARD'; | ||
export declare const APP_FILTER = 'APP_FILTER'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import { Injectable } from '@nestjs/common/interfaces/injectable.interface'; | ||
export declare class MetadataScanner { | ||
scanFromPrototype<T extends Injectable, R>(instance: T, prototype: any, callback: (name: string) => R): R[]; | ||
getAllFilteredMethodNames(prototype: any): IterableIterator<string>; | ||
scanFromPrototype<T extends Injectable, R>( | ||
instance: T, | ||
prototype: any, | ||
callback: (name: string) => R, | ||
): R[]; | ||
getAllFilteredMethodNames(prototype: any): IterableIterator<string>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.