repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/repl/index.ts
packages/core/repl/index.ts
export * from './repl';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/repl/repl-logger.ts
packages/core/repl/repl-logger.ts
import { ConsoleLogger } from '@nestjs/common'; import { NestApplication } from '../nest-application'; import { RouterExplorer } from '../router/router-explorer'; import { RoutesResolver } from '../router/routes-resolver'; export class ReplLogger extends ConsoleLogger { private static readonly ignoredContexts = [ ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/repl/native-functions/get-repl-fn.ts
packages/core/repl/native-functions/get-repl-fn.ts
import type { Type } from '@nestjs/common'; import { ReplFunction } from '../repl-function'; import type { ReplFnDefinition } from '../repl.interfaces'; export class GetReplFn extends ReplFunction { public fnDefinition: ReplFnDefinition = { name: 'get', signature: '(token: InjectionToken) => any', descri...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/repl/native-functions/methods-repl-fn.ts
packages/core/repl/native-functions/methods-repl-fn.ts
import type { Type } from '@nestjs/common'; import { clc } from '@nestjs/common/utils/cli-colors.util'; import { MetadataScanner } from '../../metadata-scanner'; import { ReplFunction } from '../repl-function'; import type { ReplFnDefinition } from '../repl.interfaces'; export class MethodsReplFn extends ReplFunction ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/repl/native-functions/help-repl-fn.ts
packages/core/repl/native-functions/help-repl-fn.ts
import { iterate } from 'iterare'; import { clc } from '@nestjs/common/utils/cli-colors.util'; import { ReplFunction } from '../repl-function'; import type { ReplFnDefinition } from '../repl.interfaces'; export class HelpReplFn extends ReplFunction { public fnDefinition: ReplFnDefinition = { name: 'help', si...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/repl/native-functions/select-relp-fn.ts
packages/core/repl/native-functions/select-relp-fn.ts
import type { DynamicModule, INestApplicationContext, Type, } from '@nestjs/common'; import { ReplFunction } from '../repl-function'; import type { ReplFnDefinition } from '../repl.interfaces'; export class SelectReplFn extends ReplFunction { public fnDefinition: ReplFnDefinition = { name: 'select', de...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/repl/native-functions/resolve-repl-fn.ts
packages/core/repl/native-functions/resolve-repl-fn.ts
import type { Type } from '@nestjs/common'; import { ReplFunction } from '../repl-function'; import type { ReplFnDefinition } from '../repl.interfaces'; export class ResolveReplFn extends ReplFunction { public fnDefinition: ReplFnDefinition = { name: 'resolve', description: 'Resolves transient or reque...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/repl/native-functions/debug-repl-fn.ts
packages/core/repl/native-functions/debug-repl-fn.ts
import type { Type, InjectionToken } from '@nestjs/common'; import { clc } from '@nestjs/common/utils/cli-colors.util'; import { ReplFunction } from '../repl-function'; import type { ModuleDebugEntry } from '../repl-context'; import type { ReplFnDefinition } from '../repl.interfaces'; export class DebugReplFn extends ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/repl/native-functions/index.ts
packages/core/repl/native-functions/index.ts
export * from './help-repl-fn'; export * from './get-repl-fn'; export * from './resolve-repl-fn'; export * from './select-relp-fn'; export * from './debug-repl-fn'; export * from './methods-repl-fn';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/exceptions/external-exception-filter-context.ts
packages/core/exceptions/external-exception-filter-context.ts
import { EXCEPTION_FILTERS_METADATA } from '@nestjs/common/constants'; import { Controller } from '@nestjs/common/interfaces'; import { ExceptionFilterMetadata } from '@nestjs/common/interfaces/exceptions'; import { isEmpty } from '@nestjs/common/utils/shared.utils'; import { iterate } from 'iterare'; import { Applicat...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/exceptions/exceptions-handler.ts
packages/core/exceptions/exceptions-handler.ts
import { HttpException } from '@nestjs/common'; import { ExceptionFilterMetadata } from '@nestjs/common/interfaces/exceptions/exception-filter-metadata.interface'; import { ArgumentsHost } from '@nestjs/common/interfaces/features/arguments-host.interface'; import { selectExceptionFilterMetadata } from '@nestjs/common/u...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/exceptions/base-exception-filter-context.ts
packages/core/exceptions/base-exception-filter-context.ts
import { FILTER_CATCH_EXCEPTIONS } from '@nestjs/common/constants'; import { Type } from '@nestjs/common/interfaces'; import { ExceptionFilter } from '@nestjs/common/interfaces/exceptions/exception-filter.interface'; import { isEmpty, isFunction } from '@nestjs/common/utils/shared.utils'; import { iterate } from 'itera...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/exceptions/base-exception-filter.ts
packages/core/exceptions/base-exception-filter.ts
import { ArgumentsHost, ExceptionFilter, HttpException, HttpServer, HttpStatus, Inject, IntrinsicException, Logger, Optional, } from '@nestjs/common'; import { isObject } from '@nestjs/common/utils/shared.utils'; import { AbstractHttpAdapter } from '../adapters'; import { MESSAGES } from '../constants...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/exceptions/external-exceptions-handler.ts
packages/core/exceptions/external-exceptions-handler.ts
import { ExceptionFilterMetadata } from '@nestjs/common/interfaces/exceptions'; import { ArgumentsHost } from '@nestjs/common/interfaces/features/arguments-host.interface'; import { selectExceptionFilterMetadata } from '@nestjs/common/utils/select-exception-filter-metadata.util'; import { isEmpty } from '@nestjs/common...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/exceptions/external-exception-filter.ts
packages/core/exceptions/external-exception-filter.ts
import { ArgumentsHost, IntrinsicException, Logger } from '@nestjs/common'; export class ExternalExceptionFilter<T = any, R = any> { private static readonly logger = new Logger('ExceptionsHandler'); catch(exception: T, host: ArgumentsHost): R | Promise<R> { if ( exception instanceof Error && !(exc...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/exceptions/index.ts
packages/core/exceptions/index.ts
export * from './base-exception-filter';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/external-proxy.ts
packages/core/helpers/external-proxy.ts
import { ContextType } from '@nestjs/common/interfaces'; import { ExternalExceptionsHandler } from '../exceptions/external-exceptions-handler'; import { ExecutionContextHost } from '../helpers/execution-context-host'; export class ExternalErrorProxy { public createProxy<TContext extends string = ContextType>( ta...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/router-method-factory.ts
packages/core/helpers/router-method-factory.ts
import { HttpServer } from '@nestjs/common'; import { RequestMethod } from '@nestjs/common/enums/request-method.enum'; export const REQUEST_METHOD_MAP = { [RequestMethod.GET]: 'get', [RequestMethod.POST]: 'post', [RequestMethod.PUT]: 'put', [RequestMethod.DELETE]: 'delete', [RequestMethod.PATCH]: 'patch', ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/context-creator.ts
packages/core/helpers/context-creator.ts
import { Controller } from '@nestjs/common/interfaces'; import { STATIC_CONTEXT } from '../injector/constants'; import { ContextId, InstanceWrapper } from '../injector/instance-wrapper'; export abstract class ContextCreator { public abstract createConcreteContext<T extends any[], R extends any[]>( metadata: T, ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/barrier.ts
packages/core/helpers/barrier.ts
/** * A simple barrier to synchronize flow of multiple async operations. */ export class Barrier { private currentCount: number; private targetCount: number; private promise: Promise<void>; private resolve: () => void; constructor(targetCount: number) { this.currentCount = 0; this.targetCount = tar...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/rethrow.ts
packages/core/helpers/rethrow.ts
export const rethrow = (err: unknown) => { throw err; };
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/handler-metadata-storage.ts
packages/core/helpers/handler-metadata-storage.ts
import { Controller, Type } from '@nestjs/common/interfaces'; import { IncomingMessage } from 'http'; import { Observable } from 'rxjs'; import { CONTROLLER_ID_KEY } from '../injector/constants'; import { ContextId } from '../injector/instance-wrapper'; import { HeaderStream } from '../router/sse-stream'; import { Para...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/get-class-scope.ts
packages/core/helpers/get-class-scope.ts
import { Scope } from '@nestjs/common'; import { SCOPE_OPTIONS_METADATA } from '@nestjs/common/constants'; import { Type } from '@nestjs/common/interfaces/type.interface'; export function getClassScope(provider: Type<unknown>): Scope { const metadata = Reflect.getMetadata(SCOPE_OPTIONS_METADATA, provider); return ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/messages.ts
packages/core/helpers/messages.ts
import { RequestMethod } from '@nestjs/common/enums/request-method.enum'; import { VersionValue, VERSION_NEUTRAL, } from '@nestjs/common/interfaces/version-options.interface'; export const MODULE_INIT_MESSAGE = ( text: TemplateStringsArray, module: string, ) => `${module} dependencies initialized`; export con...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/external-context-creator.ts
packages/core/helpers/external-context-creator.ts
import { ForbiddenException, ParamData } from '@nestjs/common'; import { CUSTOM_ROUTE_ARGS_METADATA } from '@nestjs/common/constants'; import { ContextType, Controller, PipeTransform, } from '@nestjs/common/interfaces'; import { isEmpty } from '@nestjs/common/utils/shared.utils'; import { isObservable, lastValueF...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/is-durable.ts
packages/core/helpers/is-durable.ts
import { SCOPE_OPTIONS_METADATA } from '@nestjs/common/constants'; import { Type } from '@nestjs/common/interfaces/type.interface'; export function isDurable(provider: Type<unknown>): boolean | undefined { const metadata = Reflect.getMetadata(SCOPE_OPTIONS_METADATA, provider); return metadata && metadata.durable; ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/context-id-factory.ts
packages/core/helpers/context-id-factory.ts
import { isObject } from '@nestjs/common/utils/shared.utils'; import { ContextId, HostComponentInfo } from '../injector/instance-wrapper'; import { REQUEST_CONTEXT_ID } from '../router/request/request-constants'; export function createContextId(): ContextId { /** * We are generating random identifier to track asy...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/index.ts
packages/core/helpers/index.ts
export * from './context-id-factory'; export * from './external-context-creator'; export * from './http-adapter-host';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/execution-context-host.ts
packages/core/helpers/execution-context-host.ts
import { ExecutionContext } from '@nestjs/common'; import { Type } from '@nestjs/common/interfaces'; import { ContextType, HttpArgumentsHost, RpcArgumentsHost, WsArgumentsHost, } from '@nestjs/common/interfaces/features/arguments-host.interface'; export class ExecutionContextHost implements ExecutionContext { ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/optional-require.ts
packages/core/helpers/optional-require.ts
export function optionalRequire(packageName: string, loaderFn?: Function) { try { return loaderFn ? loaderFn() : require(packageName); } catch (e) { return {}; } }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/http-adapter-host.ts
packages/core/helpers/http-adapter-host.ts
import { Observable, ReplaySubject, Subject } from 'rxjs'; import { AbstractHttpAdapter } from '../adapters/http-adapter'; /** * Defines the `HttpAdapterHost` object. * * `HttpAdapterHost` wraps the underlying * platform-specific `HttpAdapter`. The `HttpAdapter` is a wrapper around the underlying * native HTTP s...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/context-utils.ts
packages/core/helpers/context-utils.ts
import { ParamData } from '@nestjs/common'; import { PARAMTYPES_METADATA, RESPONSE_PASSTHROUGH_METADATA, } from '@nestjs/common/constants'; import { ContextType, Controller, PipeTransform, Type, } from '@nestjs/common/interfaces'; import { isFunction } from '@nestjs/common/utils/shared.utils'; import { Exec...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/load-adapter.ts
packages/core/helpers/load-adapter.ts
import { Logger } from '@nestjs/common'; const MISSING_REQUIRED_DEPENDENCY = ( defaultPlatform: string, transport: string, ) => `No driver (${transport}) has been selected. In order to take advantage of the default driver, please, ensure to install the "${defaultPlatform}" package ($ npm install ${defaultPlatfor...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/interfaces/external-handler-metadata.interface.ts
packages/core/helpers/interfaces/external-handler-metadata.interface.ts
import { ContextId } from '../../injector'; import { ParamProperties } from '../context-utils'; type ParamPropertiesWithMetatype<T = any> = ParamProperties & { metatype?: T }; export interface ExternalHandlerMetadata { argsLength: number; paramtypes: any[]; getParamsMetadata: ( moduleKey: string, context...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/interfaces/params-metadata.interface.ts
packages/core/helpers/interfaces/params-metadata.interface.ts
import { ParamData } from '@nestjs/common'; export type ParamsMetadata = Record<number, ParamMetadata>; export interface ParamMetadata { index: number; data?: ParamData; }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/helpers/interfaces/index.ts
packages/core/helpers/interfaces/index.ts
export * from './external-handler-metadata.interface'; export * from './params-metadata.interface';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions-zone.ts
packages/core/errors/exceptions-zone.ts
import { Logger } from '@nestjs/common'; import { ExceptionHandler } from './exception-handler'; const DEFAULT_TEARDOWN = () => process.exit(1); export class ExceptionsZone { private static readonly exceptionHandler = new ExceptionHandler(); public static run( callback: () => void, teardown: (err: any) =...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/messages.ts
packages/core/errors/messages.ts
import type { DynamicModule, ForwardReference, Type } from '@nestjs/common'; import { isNil, isSymbol } from '@nestjs/common/utils/shared.utils'; import { InjectorDependency, InjectorDependencyContext, } from '../injector/injector'; import { Module } from '../injector/module'; /** * Returns the name of an instanc...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exception-handler.ts
packages/core/errors/exception-handler.ts
import { Logger } from '@nestjs/common/services/logger.service'; export class ExceptionHandler { private static readonly logger = new Logger(ExceptionHandler.name); public handle(exception: Error) { ExceptionHandler.logger.error(exception); } }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/undefined-module.exception.ts
packages/core/errors/exceptions/undefined-module.exception.ts
import { RuntimeException } from './runtime.exception'; import { UNDEFINED_MODULE_MESSAGE } from '../messages'; export class UndefinedModuleException extends RuntimeException { constructor(parentModule: any, index: number, scope: any[]) { super(UNDEFINED_MODULE_MESSAGE(parentModule, index, scope)); } }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/invalid-class.exception.ts
packages/core/errors/exceptions/invalid-class.exception.ts
import { INVALID_CLASS_MESSAGE } from '../messages'; import { RuntimeException } from './runtime.exception'; export class InvalidClassException extends RuntimeException { constructor(value: any) { super(INVALID_CLASS_MESSAGE`${value}`); } }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/unknown-element.exception.ts
packages/core/errors/exceptions/unknown-element.exception.ts
import { RuntimeException } from './runtime.exception'; export class UnknownElementException extends RuntimeException { constructor(name?: string | symbol) { name = name && name.toString(); super( `Nest could not find ${ name || 'given' } element (this provider does not exist in the curre...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/unknown-dependencies.exception.ts
packages/core/errors/exceptions/unknown-dependencies.exception.ts
import { InjectorDependencyContext } from '../../injector/injector'; import { Module } from '../../injector/module'; import { UNKNOWN_DEPENDENCIES_MESSAGE } from '../messages'; import { RuntimeException } from './runtime.exception'; export class UnknownDependenciesException extends RuntimeException { public readonly...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/invalid-middleware-configuration.exception.ts
packages/core/errors/exceptions/invalid-middleware-configuration.exception.ts
import { RuntimeException } from './runtime.exception'; import { INVALID_MIDDLEWARE_CONFIGURATION } from '../messages'; export class InvalidMiddlewareConfigurationException extends RuntimeException { constructor() { super(INVALID_MIDDLEWARE_CONFIGURATION); } }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/runtime.exception.ts
packages/core/errors/exceptions/runtime.exception.ts
export class RuntimeException extends Error { constructor(message = ``) { super(message); } public what() { return this.message; } }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/invalid-class-module.exception.ts
packages/core/errors/exceptions/invalid-class-module.exception.ts
import { USING_INVALID_CLASS_AS_A_MODULE_MESSAGE } from '../messages'; import { RuntimeException } from './runtime.exception'; export class InvalidClassModuleException extends RuntimeException { constructor(metatypeUsedAsAModule: any, scope: any[]) { super( USING_INVALID_CLASS_AS_A_MODULE_MESSAGE(metatypeU...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/invalid-class-scope.exception.ts
packages/core/errors/exceptions/invalid-class-scope.exception.ts
import { Abstract, Type } from '@nestjs/common/interfaces'; import { isFunction } from '@nestjs/common/utils/shared.utils'; import { INVALID_CLASS_SCOPE_MESSAGE } from '../messages'; import { RuntimeException } from './runtime.exception'; export class InvalidClassScopeException extends RuntimeException { constructor...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/invalid-middleware.exception.ts
packages/core/errors/exceptions/invalid-middleware.exception.ts
import { INVALID_MIDDLEWARE_MESSAGE } from '../messages'; import { RuntimeException } from './runtime.exception'; export class InvalidMiddlewareException extends RuntimeException { constructor(name: string) { super(INVALID_MIDDLEWARE_MESSAGE`${name}`); } }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/invalid-module.exception.ts
packages/core/errors/exceptions/invalid-module.exception.ts
import { INVALID_MODULE_MESSAGE } from '../messages'; import { RuntimeException } from './runtime.exception'; export class InvalidModuleException extends RuntimeException { constructor(parentModule: any, index: number, scope: any[]) { super(INVALID_MODULE_MESSAGE(parentModule, index, scope)); } }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/invalid-exception-filter.exception.ts
packages/core/errors/exceptions/invalid-exception-filter.exception.ts
import { RuntimeException } from './runtime.exception'; import { INVALID_EXCEPTION_FILTER } from '../messages'; export class InvalidExceptionFilterException extends RuntimeException { constructor() { super(INVALID_EXCEPTION_FILTER); } }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/index.ts
packages/core/errors/exceptions/index.ts
export * from './circular-dependency.exception'; export * from './runtime.exception'; export * from './unknown-element.exception'; export * from './invalid-class-scope.exception'; export * from './invalid-class.exception'; export * from './unknown-export.exception'; export * from './unknown-module.exception'; export * ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/undefined-dependency.exception.ts
packages/core/errors/exceptions/undefined-dependency.exception.ts
import { InjectorDependencyContext } from '../../injector/injector'; import { Module } from '../../injector/module'; import { UNKNOWN_DEPENDENCIES_MESSAGE } from '../messages'; import { RuntimeException } from './runtime.exception'; export class UndefinedDependencyException extends RuntimeException { constructor( ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/undefined-forwardref.exception.ts
packages/core/errors/exceptions/undefined-forwardref.exception.ts
import { UNDEFINED_FORWARDREF_MESSAGE } from '../messages'; import { RuntimeException } from './runtime.exception'; import { Type } from '@nestjs/common'; export class UndefinedForwardRefException extends RuntimeException { constructor(scope: Type<any>[]) { super(UNDEFINED_FORWARDREF_MESSAGE(scope)); } }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/unknown-request-mapping.exception.ts
packages/core/errors/exceptions/unknown-request-mapping.exception.ts
import type { Type } from '@nestjs/common'; import { RuntimeException } from './runtime.exception'; import { UNKNOWN_REQUEST_MAPPING } from '../messages'; export class UnknownRequestMappingException extends RuntimeException { constructor(metatype: Type) { super(UNKNOWN_REQUEST_MAPPING(metatype)); } }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/unknown-export.exception.ts
packages/core/errors/exceptions/unknown-export.exception.ts
import { UNKNOWN_EXPORT_MESSAGE } from '../messages'; import { RuntimeException } from './runtime.exception'; export class UnknownExportException extends RuntimeException { constructor(token: string | symbol, moduleName: string) { super(UNKNOWN_EXPORT_MESSAGE(token, moduleName)); } }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/circular-dependency.exception.ts
packages/core/errors/exceptions/circular-dependency.exception.ts
import { RuntimeException } from './runtime.exception'; export class CircularDependencyException extends RuntimeException { constructor(context?: string) { const ctx = context ? ` inside ${context}` : ``; super( `A circular dependency has been detected${ctx}. Please, make sure that each side of a bidir...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/errors/exceptions/unknown-module.exception.ts
packages/core/errors/exceptions/unknown-module.exception.ts
import { RuntimeException } from './runtime.exception'; export class UnknownModuleException extends RuntimeException { constructor(moduleName?: string) { super( `Nest could not select the given module (${ moduleName ? `"${moduleName}"` : 'it' } does not exist in current context).`, ); }...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/middleware/builder.ts
packages/core/middleware/builder.ts
import { HttpServer, MiddlewareConsumer, Type, } from '@nestjs/common/interfaces'; import { MiddlewareConfigProxy, MiddlewareConfiguration, RouteInfo, } from '@nestjs/common/interfaces/middleware'; import { stripEndSlash } from '@nestjs/common/utils/shared.utils'; import { iterate } from 'iterare'; import {...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/middleware/routes-mapper.ts
packages/core/middleware/routes-mapper.ts
import { MODULE_PATH, PATH_METADATA, VERSION_METADATA, } from '@nestjs/common/constants'; import { RouteInfo, Type, VERSION_NEUTRAL, VersionValue, } from '@nestjs/common/interfaces'; import { addLeadingSlash, isString, isUndefined, } from '@nestjs/common/utils/shared.utils'; import { ApplicationConf...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/middleware/container.ts
packages/core/middleware/container.ts
import { InjectionToken, Type } from '@nestjs/common'; import { MiddlewareConfiguration } from '@nestjs/common/interfaces/middleware/middleware-configuration.interface'; import { getClassScope } from '../helpers/get-class-scope'; import { isDurable } from '../helpers/is-durable'; import { NestContainer } from '../injec...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/middleware/utils.ts
packages/core/middleware/utils.ts
import { RequestMethod } from '@nestjs/common'; import { HttpServer, RouteInfo, Type } from '@nestjs/common/interfaces'; import { addLeadingSlash, isFunction, isString, } from '@nestjs/common/utils/shared.utils'; import { iterate } from 'iterare'; import { pathToRegexp } from 'path-to-regexp'; import { uid } from...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/middleware/route-info-path-extractor.ts
packages/core/middleware/route-info-path-extractor.ts
import { VersioningType } from '@nestjs/common'; import { RouteInfo, VersioningOptions, VersionValue, } from '@nestjs/common/interfaces'; import { addLeadingSlash, stripEndSlash, } from '@nestjs/common/utils/shared.utils'; import { ApplicationConfig } from '../application-config'; import { ExcludeRouteMetadat...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/middleware/resolver.ts
packages/core/middleware/resolver.ts
import { InjectionToken } from '@nestjs/common'; import { Injector } from '../injector/injector'; import { InstanceWrapper } from '../injector/instance-wrapper'; import { Module } from '../injector/module'; import { MiddlewareContainer } from './container'; export class MiddlewareResolver { constructor( private ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/middleware/index.ts
packages/core/middleware/index.ts
export * from './builder';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/middleware/middleware-module.ts
packages/core/middleware/middleware-module.ts
import { HttpServer, InjectionToken, Logger } from '@nestjs/common'; import { RequestMethod } from '@nestjs/common/enums/request-method.enum'; import { MiddlewareConfiguration, NestMiddleware, RouteInfo, } from '@nestjs/common/interfaces/middleware'; import { NestApplicationContextOptions } from '@nestjs/common/i...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/pipes/pipes-consumer.ts
packages/core/pipes/pipes-consumer.ts
import { RouteParamtypes } from '@nestjs/common/enums/route-paramtypes.enum'; import { ArgumentMetadata, PipeTransform } from '@nestjs/common/interfaces'; import { ParamsTokenFactory } from './params-token-factory'; export class PipesConsumer { private readonly paramsTokenFactory = new ParamsTokenFactory(); publi...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/pipes/params-token-factory.ts
packages/core/pipes/params-token-factory.ts
import { Paramtype } from '@nestjs/common'; import { RouteParamtypes } from '@nestjs/common/enums/route-paramtypes.enum'; export class ParamsTokenFactory { public exchangeEnumForString(type: RouteParamtypes): Paramtype { switch (type) { case RouteParamtypes.BODY: return 'body'; case RoutePara...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/pipes/pipes-context-creator.ts
packages/core/pipes/pipes-context-creator.ts
import { PIPES_METADATA } from '@nestjs/common/constants'; import { Controller, PipeTransform, Type } from '@nestjs/common/interfaces'; import { isEmpty, isFunction } from '@nestjs/common/utils/shared.utils'; import { iterate } from 'iterare'; import { ApplicationConfig } from '../application-config'; import { ContextC...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/pipes/index.ts
packages/core/pipes/index.ts
export * from './params-token-factory'; export * from './pipes-consumer'; export * from './pipes-context-creator';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/guards/guards-context-creator.ts
packages/core/guards/guards-context-creator.ts
import { CanActivate } from '@nestjs/common'; import { GUARDS_METADATA } from '@nestjs/common/constants'; import { Controller, Type } from '@nestjs/common/interfaces'; import { isEmpty, isFunction } from '@nestjs/common/utils/shared.utils'; import { iterate } from 'iterare'; import { ApplicationConfig } from '../applic...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/guards/constants.ts
packages/core/guards/constants.ts
export const FORBIDDEN_MESSAGE = 'Forbidden resource';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/guards/guards-consumer.ts
packages/core/guards/guards-consumer.ts
import { CanActivate } from '@nestjs/common'; import { ContextType, Controller } from '@nestjs/common/interfaces'; import { isEmpty } from '@nestjs/common/utils/shared.utils'; import { lastValueFrom, Observable } from 'rxjs'; import { ExecutionContextHost } from '../helpers/execution-context-host'; export class Guards...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/guards/index.ts
packages/core/guards/index.ts
export * from './constants'; export * from './guards-consumer'; export * from './guards-context-creator';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/interfaces/module-override.interface.ts
packages/core/interfaces/module-override.interface.ts
import { ModuleDefinition } from './module-definition.interface'; export interface ModuleOverride { moduleToReplace: ModuleDefinition; newModule: ModuleDefinition; }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/interfaces/module-definition.interface.ts
packages/core/interfaces/module-definition.interface.ts
import { DynamicModule, ForwardReference } from '@nestjs/common'; import { Type } from '@nestjs/common/interfaces'; export type ModuleDefinition = | ForwardReference | Type<unknown> | DynamicModule | Promise<DynamicModule>;
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/hooks/on-app-shutdown.hook.ts
packages/core/hooks/on-app-shutdown.hook.ts
import { OnApplicationShutdown } from '@nestjs/common'; import { isFunction, isNil } from '@nestjs/common/utils/shared.utils'; import { iterate } from 'iterare'; import { getNonTransientInstances, getTransientInstances, } from '../injector/helpers/transient-instances'; import { InstanceWrapper } from '../injector/i...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/hooks/on-module-init.hook.ts
packages/core/hooks/on-module-init.hook.ts
import { OnModuleInit } from '@nestjs/common'; import { isFunction, isNil } from '@nestjs/common/utils/shared.utils'; import { iterate } from 'iterare'; import { getNonTransientInstances, getTransientInstances, } from '../injector/helpers/transient-instances'; import { InstanceWrapper } from '../injector/instance-w...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/hooks/on-app-bootstrap.hook.ts
packages/core/hooks/on-app-bootstrap.hook.ts
import { OnApplicationBootstrap } from '@nestjs/common'; import { isFunction, isNil } from '@nestjs/common/utils/shared.utils'; import { iterate } from 'iterare'; import { getNonTransientInstances, getTransientInstances, } from '../injector/helpers/transient-instances'; import { InstanceWrapper } from '../injector/...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/hooks/before-app-shutdown.hook.ts
packages/core/hooks/before-app-shutdown.hook.ts
import { BeforeApplicationShutdown } from '@nestjs/common'; import { isFunction, isNil } from '@nestjs/common/utils/shared.utils'; import { iterate } from 'iterare'; import { getNonTransientInstances, getTransientInstances, } from '../injector/helpers/transient-instances'; import { InstanceWrapper } from '../inject...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/hooks/on-module-destroy.hook.ts
packages/core/hooks/on-module-destroy.hook.ts
import { OnModuleDestroy } from '@nestjs/common'; import { isFunction, isNil } from '@nestjs/common/utils/shared.utils'; import { iterate } from 'iterare'; import { getNonTransientInstances, getTransientInstances, } from '../injector/helpers/transient-instances'; import { InstanceWrapper } from '../injector/instanc...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/hooks/index.ts
packages/core/hooks/index.ts
export * from './on-app-bootstrap.hook'; export * from './on-app-shutdown.hook'; export * from './on-module-destroy.hook'; export * from './on-module-init.hook'; export * from './before-app-shutdown.hook';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/scanner.spec.ts
packages/core/test/scanner.spec.ts
import { Catch, Injectable } from '@nestjs/common'; import { expect } from 'chai'; import * as sinon from 'sinon'; import { GUARDS_METADATA } from '../../common/constants'; import { Controller } from '../../common/decorators/core/controller.decorator'; import { UseGuards } from '../../common/decorators/core/use-guards....
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/application-config.spec.ts
packages/core/test/application-config.spec.ts
import { RequestMethod } from '@nestjs/common'; import { GlobalPrefixOptions } from '@nestjs/common/interfaces'; import { expect } from 'chai'; import { ApplicationConfig } from '../application-config'; import { ExcludeRouteMetadata } from '../router/interfaces/exclude-route-metadata.interface'; describe('ApplicationC...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/nest-application-context.spec.ts
packages/core/test/nest-application-context.spec.ts
import { Injectable, InjectionToken, Provider, Scope } from '@nestjs/common'; import { expect } from 'chai'; import * as sinon from 'sinon'; import { setTimeout } from 'timers/promises'; import { ContextIdFactory } from '../helpers/context-id-factory'; import { NestContainer } from '../injector/container'; import { Inj...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/nest-application.spec.ts
packages/core/test/nest-application.spec.ts
import { RequestMethod } from '@nestjs/common'; import { expect } from 'chai'; import { ApplicationConfig } from '../application-config'; import { NestContainer } from '../injector/container'; import { GraphInspector } from '../inspector/graph-inspector'; import { NestApplication } from '../nest-application'; import { ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/metadata-scanner.spec.ts
packages/core/test/metadata-scanner.spec.ts
import { expect } from 'chai'; import { MetadataScanner } from '../metadata-scanner'; describe('MetadataScanner', () => { let scanner: MetadataScanner; beforeEach(() => { scanner = new MetadataScanner(); }); describe('scanFromPrototype', () => { class Parent { constructor() {} public testPa...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/discovery/discoverable-meta-host-collection.spec.ts
packages/core/test/discovery/discoverable-meta-host-collection.spec.ts
import { expect } from 'chai'; import { InstanceWrapper } from '../../injector/instance-wrapper'; import { ModulesContainer } from '../../injector/modules-container'; import { DiscoverableMetaHostCollection } from '../../discovery/discoverable-meta-host-collection'; describe('DiscoverableMetaHostCollection', () => { ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/services/reflector.service.spec.ts
packages/core/test/services/reflector.service.spec.ts
import { expect } from 'chai'; import { Reflector } from '../../services/reflector.service'; const transformDecorator = Reflector.createDecorator<string[], number>({ transform: value => value.length, }); type TestObject = { only1?: string; only2?: string; both: string; }; describe('Reflector', () => { cons...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/repl/repl-context.spec.ts
packages/core/test/repl/repl-context.spec.ts
import { expect } from 'chai'; import * as sinon from 'sinon'; import { NestContainer } from '../../injector/container'; import { ReplContext } from '../../repl/repl-context'; describe('ReplContext', () => { let replContext: ReplContext; let mockApp: { container: NestContainer; get: sinon.SinonStub; re...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/repl/assign-to-object.util.spec.ts
packages/core/test/repl/assign-to-object.util.spec.ts
import { expect } from 'chai'; import { assignToObject } from '../../repl/assign-to-object.util'; describe('assignToObject', () => { it('should copy all enumerable properties and their descriptors', () => { const sourceObj = {}; Object.defineProperty(sourceObj, 'foo', { value: 123, configurable: ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/repl/native-functions/help-repl-fn.spec.ts
packages/core/test/repl/native-functions/help-repl-fn.spec.ts
import { expect } from 'chai'; import * as sinon from 'sinon'; import { clc } from '@nestjs/common/utils/cli-colors.util'; import { HelpReplFn } from '../../../repl/native-functions'; import { ReplContext } from '../../../repl/repl-context'; import { NestContainer } from '../../../injector/container'; describe('HelpRe...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/repl/native-functions/select-repl-fn.spec.ts
packages/core/test/repl/native-functions/select-repl-fn.spec.ts
import { expect } from 'chai'; import * as sinon from 'sinon'; import { SelectReplFn } from '../../../repl/native-functions'; import { ReplContext } from '../../../repl/repl-context'; import { NestContainer } from '../../../injector/container'; describe('SelectReplFn', () => { let selectReplFn: SelectReplFn; let ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/repl/native-functions/resolve-repl-fn.spec.ts
packages/core/test/repl/native-functions/resolve-repl-fn.spec.ts
import { expect } from 'chai'; import * as sinon from 'sinon'; import { ResolveReplFn } from '../../../repl/native-functions'; import { ReplContext } from '../../../repl/repl-context'; import { NestContainer } from '../../../injector/container'; describe('ResolveReplFn', () => { let resolveReplFn: ResolveReplFn; ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/repl/native-functions/methods-repl-fn.spec.ts
packages/core/test/repl/native-functions/methods-repl-fn.spec.ts
import { clc } from '@nestjs/common/utils/cli-colors.util'; import { expect } from 'chai'; import * as sinon from 'sinon'; import { NestContainer } from '../../../injector/container'; import { MethodsReplFn } from '../../../repl/native-functions'; import { ReplContext } from '../../../repl/repl-context'; describe('Met...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/repl/native-functions/debug-repl-fn.spec.ts
packages/core/test/repl/native-functions/debug-repl-fn.spec.ts
import { clc } from '@nestjs/common/utils/cli-colors.util'; import { expect } from 'chai'; import * as sinon from 'sinon'; import { NestContainer } from '../../../injector/container'; import { DebugReplFn } from '../../../repl/native-functions'; import { ReplContext } from '../../../repl/repl-context'; describe('Debug...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/repl/native-functions/get-repl-fn.spec.ts
packages/core/test/repl/native-functions/get-repl-fn.spec.ts
import { expect } from 'chai'; import * as sinon from 'sinon'; import { GetReplFn } from '../../../repl/native-functions'; import { ReplContext } from '../../../repl/repl-context'; import { NestContainer } from '../../../injector/container'; describe('GetReplFn', () => { let getReplFn: GetReplFn; let replContext:...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/exceptions/external-exception-filter-context.spec.ts
packages/core/test/exceptions/external-exception-filter-context.spec.ts
import { expect } from 'chai'; import * as sinon from 'sinon'; import { Catch } from '../../../common/decorators/core/catch.decorator'; import { UseFilters } from '../../../common/decorators/core/exception-filters.decorator'; import { ApplicationConfig } from '../../application-config'; import { ExternalExceptionFilter...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/exceptions/exceptions-handler.spec.ts
packages/core/test/exceptions/exceptions-handler.spec.ts
import { HttpException } from '@nestjs/common'; import { isNil, isObject } from '@nestjs/common/utils/shared.utils'; import { expect } from 'chai'; import * as createHttpError from 'http-errors'; import * as sinon from 'sinon'; import { AbstractHttpAdapter } from '../../adapters'; import { InvalidExceptionFilterExcepti...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/exceptions/external-exceptions-handler.spec.ts
packages/core/test/exceptions/external-exceptions-handler.spec.ts
import { expect } from 'chai'; import { of } from 'rxjs'; import * as sinon from 'sinon'; import { ExternalExceptionFilter } from '../../exceptions/external-exception-filter'; import { ExternalExceptionsHandler } from '../../exceptions/external-exceptions-handler'; describe('ExternalExceptionsHandler', () => { let h...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/test/exceptions/base-exception-filter.spec.ts
packages/core/test/exceptions/base-exception-filter.spec.ts
import { expect } from 'chai'; import * as sinon from 'sinon'; import { BaseExceptionFilterContext } from '../../exceptions/base-exception-filter-context'; import { NestContainer } from '../../injector/container'; export class Filter {} describe('BaseExceptionFilterContext', () => { let filter: BaseExceptionFilterC...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false