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/common/test/services/logger.service.spec.ts
packages/common/test/services/logger.service.spec.ts
import { expect } from 'chai'; import * as sinon from 'sinon'; import { ConsoleLogger, Logger, LoggerService, LogLevel } from '../../services'; describe('Logger', () => { describe('[static methods]', () => { describe('when the default logger is used', () => { let processStdoutWriteSpy: sinon.SinonSpy; ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
true
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/services/utils/is-log-level-enabled.util.spec.ts
packages/common/test/services/utils/is-log-level-enabled.util.spec.ts
import { expect } from 'chai'; import { LogLevel } from '../../../services/logger.service'; import { isLogLevelEnabled } from '../../../services/utils'; describe('isLogLevelEnabled', () => { const tests = [ { inputArgs: ['log', ['log']], expectedReturnValue: true }, { inputArgs: ['debug', ['debug']], expecte...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/services/utils/filter-log-levels.util.spec.ts
packages/common/test/services/utils/filter-log-levels.util.spec.ts
import { expect } from 'chai'; import { filterLogLevels } from '../../../services/utils/filter-log-levels.util'; describe('filterLogLevels', () => { it('should correctly parse an exclusive range', () => { const returned = filterLogLevels('>warn'); expect(returned).to.deep.equal(['error', 'fatal']); }); ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/exceptions/http.exception.spec.ts
packages/common/test/exceptions/http.exception.spec.ts
import { expect } from 'chai'; import { Type } from '../../../common'; import { BadGatewayException, BadRequestException, ConflictException, ForbiddenException, GatewayTimeoutException, GoneException, HttpException, HttpVersionNotSupportedException, ImATeapotException, InternalServerErrorException, ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/pipes/parse-int.pipe.spec.ts
packages/common/test/pipes/parse-int.pipe.spec.ts
import { expect } from 'chai'; import { HttpException } from '../../exceptions'; import { ArgumentMetadata } from '../../interfaces'; import { ParseIntPipe } from '../../pipes/parse-int.pipe'; class CustomTestError extends HttpException { constructor() { super('This is a TestException', 418); } } describe('Pa...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/pipes/parse-bool.pipe.spec.ts
packages/common/test/pipes/parse-bool.pipe.spec.ts
import { expect } from 'chai'; import { ArgumentMetadata } from '../../interfaces'; import { ParseBoolPipe } from '../../pipes/parse-bool.pipe'; describe('ParseBoolPipe', () => { let target: ParseBoolPipe; beforeEach(() => { target = new ParseBoolPipe(); }); describe('transform', () => { describe('when...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/pipes/default-value.pipe.spec.ts
packages/common/test/pipes/default-value.pipe.spec.ts
import { expect } from 'chai'; import { DefaultValuePipe } from '../../pipes/default-value.pipe'; describe('DefaultValuePipe', () => { const defaultValue = 'default'; const target = new DefaultValuePipe(defaultValue); describe('transform', () => { it('should return original value if one was provided', () =>...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/pipes/parse-enum.pipe.spec.ts
packages/common/test/pipes/parse-enum.pipe.spec.ts
import { expect } from 'chai'; import { HttpException } from '../../exceptions'; import { ArgumentMetadata } from '../../interfaces'; import { ParseEnumPipe } from '../../pipes/parse-enum.pipe'; class CustomTestError extends HttpException { constructor() { super('This is a TestException', 418); } } describe('...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/pipes/parse-array.pipe.spec.ts
packages/common/test/pipes/parse-array.pipe.spec.ts
import * as chai from 'chai'; import { expect } from 'chai'; import * as chaiAsPromised from 'chai-as-promised'; import { Type } from 'class-transformer'; import { IsBoolean, IsDate, IsDefined, IsNumber, IsString, ValidateNested, } from 'class-validator'; import { BadRequestException } from '../../exception...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/pipes/validation.pipe.spec.ts
packages/common/test/pipes/validation.pipe.spec.ts
import * as chai from 'chai'; import { expect } from 'chai'; import * as chaiAsPromised from 'chai-as-promised'; import { Exclude, Expose, Type } from 'class-transformer'; import { IsArray, IsBoolean, IsDefined, IsOptional, IsString, ValidateNested, } from 'class-validator'; import { HttpStatus } from '../....
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/pipes/parse-float.pipe.spec.ts
packages/common/test/pipes/parse-float.pipe.spec.ts
import { expect } from 'chai'; import { HttpException } from '../../exceptions'; import { ArgumentMetadata } from '../../interfaces'; import { ParseFloatPipe } from '../../pipes/parse-float.pipe'; class CustomTestError extends HttpException { constructor() { super('This is a TestException', 418); } } describe...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/pipes/parse-uuid.pipe.spec.ts
packages/common/test/pipes/parse-uuid.pipe.spec.ts
import { expect } from 'chai'; import { HttpStatus } from '../../enums'; import { HttpException } from '../../exceptions'; import { ArgumentMetadata } from '../../interfaces'; import { ParseUUIDPipe } from '../../pipes/parse-uuid.pipe'; class TestException extends HttpException { constructor() { super('This is a...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/pipes/parse-date.pipe.spec.ts
packages/common/test/pipes/parse-date.pipe.spec.ts
import { expect } from 'chai'; import { BadRequestException } from '../../exceptions'; import { ParseDatePipe } from '../../pipes/parse-date.pipe'; describe('ParseDatePipe', () => { let target: ParseDatePipe; beforeEach(() => { target = new ParseDatePipe(); }); describe('transform', () => { describe(...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/pipes/file/file-type.validator.spec.ts
packages/common/test/pipes/file/file-type.validator.spec.ts
import { expect } from 'chai'; import { IFile } from '../../../../common/pipes/file/interfaces'; import { FileTypeValidator } from '../../../pipes'; const pngBuffer = Buffer.from([ 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/pipes/file/parse-file.pipe.spec.ts
packages/common/test/pipes/file/parse-file.pipe.spec.ts
import { HttpStatus } from '../../../enums'; import { BadRequestException, ConflictException } from '../../../exceptions'; import { FileValidator, ParseFilePipe } from '../../../pipes'; import { expect } from 'chai'; class AlwaysValidValidator extends FileValidator { isValid(): boolean { return true; } build...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/pipes/file/max-file-size.validator.spec.ts
packages/common/test/pipes/file/max-file-size.validator.spec.ts
import { expect } from 'chai'; import { MaxFileSizeValidator } from '../../../pipes'; import { IFile } from '@nestjs/common/pipes/file/interfaces'; describe('MaxFileSizeValidator', () => { const oneKb = 1024; describe('isValid', () => { it('should return true when the file size is less than the maximum size',...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/pipes/file/parse-file-pipe.builder.spec.ts
packages/common/test/pipes/file/parse-file-pipe.builder.spec.ts
import { expect } from 'chai'; import { FileValidator, MaxFileSizeValidator, ParseFilePipeBuilder, FileTypeValidator, } from '../../../pipes'; describe('ParseFilePipeBuilder', () => { let parseFilePipeBuilder: ParseFilePipeBuilder; beforeEach(() => { parseFilePipeBuilder = new ParseFilePipeBuilder(); ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/utils/select-exception-filter-metadata.util.spec.ts
packages/common/test/utils/select-exception-filter-metadata.util.spec.ts
import { expect } from 'chai'; import { selectExceptionFilterMetadata } from '../../utils/select-exception-filter-metadata.util'; class FirstError {} class SecondError {} class ThirdError {} class FourthError {} describe('selectExceptionFilterMetadata', () => { it('should pass error handling to first suitable er...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/utils/validate-each.util.spec.ts
packages/common/test/utils/validate-each.util.spec.ts
import { expect } from 'chai'; import { isFunction } from '../../utils/shared.utils'; import { validateEach, InvalidDecoratorItemException, } from '../../utils/validate-each.util'; describe('validateEach', () => { describe('when any item will not pass predicate', () => { it('should throw exception', () => { ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/utils/shared.utils.spec.ts
packages/common/test/utils/shared.utils.spec.ts
import { expect } from 'chai'; import { addLeadingSlash, isConstructor, isEmpty, isFunction, isNil, isNumber, isObject, isPlainObject, isString, isSymbol, isUndefined, normalizePath, stripEndSlash, } from '../../utils/shared.utils'; function Foo(a) { this.a = 1; } describe('Shared utils', ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/utils/forward-ref.util.spec.ts
packages/common/test/utils/forward-ref.util.spec.ts
import { expect } from 'chai'; import { forwardRef } from '../../utils/forward-ref.util'; describe('forwardRef', () => { it('should return object with forwardRef property', () => { const fn = () => ({}); const referenceFn = forwardRef(() => fn); expect(referenceFn.forwardRef()).to.be.eql(fn); }); });
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/utils/random-string-generator.util.spec.ts
packages/common/test/utils/random-string-generator.util.spec.ts
import { expect } from 'chai'; import { randomStringGenerator } from '../../utils/random-string-generator.util'; describe('randomStringGenerator', () => { it('should generate random string', () => { expect(randomStringGenerator()).to.be.a('string'); }); });
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/utils/load-package.util.spec.ts
packages/common/test/utils/load-package.util.spec.ts
import { expect } from 'chai'; import { loadPackage } from '../../utils/load-package.util'; describe('loadPackage', () => { describe('when package is available', () => { it('should return package', () => { expect(loadPackage('reflect-metadata', 'ctx')).to.be.eql( require('reflect-metadata'), ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/utils/merge-with-values.util.spec.ts
packages/common/test/utils/merge-with-values.util.spec.ts
import { expect } from 'chai'; import { MergeWithValues } from '../../utils/merge-with-values.util'; describe('MergeWithValues', () => { let type; const data = { test: [1, 2, 3] }; class Test {} beforeEach(() => { type = MergeWithValues(data)(Test); }); it('should enrich prototype with given values', ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/file-stream/streamable-file.spec.ts
packages/common/test/file-stream/streamable-file.spec.ts
import { expect } from 'chai'; import * as sinon from 'sinon'; import { Readable } from 'stream'; import { StreamableFile } from '../../file-stream'; import { HttpStatus } from '../../enums'; describe('StreamableFile', () => { describe('when input is a readable stream', () => { it('should assign it to a stream c...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/module-utils/configurable-module.builder.spec.ts
packages/common/test/module-utils/configurable-module.builder.spec.ts
import { expect } from 'chai'; import { Provider } from '../../interfaces'; import { ConfigurableModuleBuilder } from '../../module-utils'; describe('ConfigurableModuleBuilder', () => { describe('setExtras', () => { it('should apply module definition transformer function and return typed builder', () => { ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/test/module-utils/utils/get-injection-providers.util.spec.ts
packages/common/test/module-utils/utils/get-injection-providers.util.spec.ts
import { expect } from 'chai'; import { Provider } from '../../../interfaces'; import { getInjectionProviders } from '../../../module-utils/utils/get-injection-providers.util'; describe('getInjectionProviders', () => { it('should take only required providers', () => { class C { static token = 'anything'; ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/utils/cli-colors.util.ts
packages/common/utils/cli-colors.util.ts
type ColorTextFn = (text: string) => string; export const isColorAllowed = () => !process.env.NO_COLOR; const colorIfAllowed = (colorFn: ColorTextFn) => (text: string) => isColorAllowed() ? colorFn(text) : text; export const clc = { bold: colorIfAllowed((text: string) => `\x1B[1m${text}\x1B[0m`), green: colorIf...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/utils/random-string-generator.util.ts
packages/common/utils/random-string-generator.util.ts
import { uid } from 'uid'; export const randomStringGenerator = () => uid(21);
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/utils/extend-metadata.util.ts
packages/common/utils/extend-metadata.util.ts
export function extendArrayMetadata<T extends Array<unknown>>( key: string, metadata: T, target: Function, ) { const previousValue = Reflect.getMetadata(key, target) || []; const value = [...previousValue, ...metadata]; Reflect.defineMetadata(key, value, target); }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/utils/validate-each.util.ts
packages/common/utils/validate-each.util.ts
export class InvalidDecoratorItemException extends Error { private readonly msg: string; constructor(decorator: string, item: string, context: string) { const message = `Invalid ${item} passed to ${decorator}() decorator (${context}).`; super(message); this.msg = message; } public what(): string ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/utils/select-exception-filter-metadata.util.ts
packages/common/utils/select-exception-filter-metadata.util.ts
import { ExceptionFilterMetadata } from '../interfaces/exceptions'; export const selectExceptionFilterMetadata = <T = any>( filters: ExceptionFilterMetadata[], exception: T, ): ExceptionFilterMetadata | undefined => filters.find( ({ exceptionMetatypes }) => !exceptionMetatypes.length || exception...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/utils/shared.utils.ts
packages/common/utils/shared.utils.ts
export const isUndefined = (obj: any): obj is undefined => typeof obj === 'undefined'; export const isObject = (fn: any): fn is object => !isNil(fn) && typeof fn === 'object'; export const isPlainObject = (fn: any): fn is object => { if (!isObject(fn)) { return false; } const proto = Object.getPrototype...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/utils/merge-with-values.util.ts
packages/common/utils/merge-with-values.util.ts
export type Constructor<T> = new (...args: any[]) => T; /* eslint-disable @typescript-eslint/no-empty-object-type */ export const MergeWithValues = <T extends Constructor<{}>>(data: { [param: string]: any; }) => { return (Metatype: T): any => { const Type = class extends Metatype { constructor(...args: a...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/utils/load-package.util.ts
packages/common/utils/load-package.util.ts
import { Logger } from '../services/logger.service'; const MISSING_REQUIRED_DEPENDENCY = (name: string, reason: string) => `The "${name}" package is missing. Please, make sure to install it to take advantage of ${reason}.`; const logger = new Logger('PackageLoader'); export function loadPackage( packageName: str...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/utils/validate-module-keys.util.ts
packages/common/utils/validate-module-keys.util.ts
import { MODULE_METADATA as metadataConstants } from '../constants'; export const INVALID_MODULE_CONFIG_MESSAGE = ( text: TemplateStringsArray, property: string, ) => `Invalid property '${property}' passed into the @Module() decorator.`; const metadataKeys = [ metadataConstants.IMPORTS, metadataConstants.EXPO...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/utils/http-error-by-code.util.ts
packages/common/utils/http-error-by-code.util.ts
import { HttpStatus } from '../enums'; import { BadGatewayException, BadRequestException, ConflictException, ForbiddenException, GatewayTimeoutException, GoneException, ImATeapotException, InternalServerErrorException, MethodNotAllowedException, NotAcceptableException, NotFoundException, NotImpl...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/utils/forward-ref.util.ts
packages/common/utils/forward-ref.util.ts
import { ForwardReference } from '../interfaces/modules/forward-reference.interface'; /** * @publicApi */ export const forwardRef = (fn: () => any): ForwardReference => ({ forwardRef: fn, });
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/utils/index.ts
packages/common/utils/index.ts
export * from './forward-ref.util';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/utils/assign-custom-metadata.util.ts
packages/common/utils/assign-custom-metadata.util.ts
import { CUSTOM_ROUTE_ARGS_METADATA } from '../constants'; import { ParamData, RouteParamMetadata, } from '../decorators/http/route-params.decorator'; import { PipeTransform, Type } from '../interfaces'; import { CustomParamFactory } from '../interfaces/features/custom-route-param-factory.interface'; export functi...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/file-stream/streamable-file.ts
packages/common/file-stream/streamable-file.ts
import { Readable } from 'stream'; import { types } from 'util'; import { HttpStatus } from '../enums'; import { Logger } from '../services'; import { isFunction } from '../utils/shared.utils'; import { StreamableFileOptions, StreamableHandlerResponse } from './interfaces'; /** * @see [Streaming files](https://docs.n...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/file-stream/index.ts
packages/common/file-stream/index.ts
export * from './streamable-file';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/file-stream/interfaces/streamable-options.interface.ts
packages/common/file-stream/interfaces/streamable-options.interface.ts
/** * Options for `StreamableFile` * * @see [Streaming files](https://docs.nestjs.com/techniques/streaming-files) * * @publicApi */ export interface StreamableFileOptions { /** * The value that will be used for the `Content-Type` response header. * @default `"application/octet-stream"` */ type?: stri...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/file-stream/interfaces/index.ts
packages/common/file-stream/interfaces/index.ts
export * from './streamable-options.interface'; export * from './streamable-handler-response.interface';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/file-stream/interfaces/streamable-handler-response.interface.ts
packages/common/file-stream/interfaces/streamable-handler-response.interface.ts
export interface StreamableHandlerResponse { /** `true` if the connection is destroyed, `false` otherwise. */ destroyed: boolean; /** `true` if headers were sent, `false` otherwise. */ headersSent: boolean; /** The status code that will be sent to the client when the headers get flushed. */ statusCode: numb...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/serializer/class-serializer.interceptor.ts
packages/common/serializer/class-serializer.interceptor.ts
import { ClassSerializerContextOptions } from './class-serializer.interfaces'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { Inject, Injectable, Optional } from '../decorators/core'; import { StreamableFile } from '../file-stream'; import { CallHandler, ExecutionContext, NestIntercep...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/serializer/class-serializer.interfaces.ts
packages/common/serializer/class-serializer.interfaces.ts
import { ClassTransformOptions } from '../interfaces/external/class-transform-options.interface'; import { Type } from '../interfaces'; /** * @publicApi */ export interface ClassSerializerContextOptions extends ClassTransformOptions { type?: Type<any>; }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/serializer/index.ts
packages/common/serializer/index.ts
export * from './class-serializer.interceptor'; export * from './decorators'; export * from './class-serializer.interfaces';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/serializer/class-serializer.constants.ts
packages/common/serializer/class-serializer.constants.ts
export const CLASS_SERIALIZER_OPTIONS = 'class_serializer:options';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/serializer/decorators/serialize-options.decorator.ts
packages/common/serializer/decorators/serialize-options.decorator.ts
import { SetMetadata } from '../../decorators'; import { ClassSerializerContextOptions } from '../class-serializer.interfaces'; import { CLASS_SERIALIZER_OPTIONS } from '../class-serializer.constants'; /** * @publicApi */ export const SerializeOptions = (options: ClassSerializerContextOptions) => SetMetadata(CLASS...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/serializer/decorators/index.ts
packages/common/serializer/decorators/index.ts
export * from './serialize-options.decorator';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/module-utils/configurable-module.builder.ts
packages/common/module-utils/configurable-module.builder.ts
/* eslint-disable @typescript-eslint/no-empty-object-type */ import { DynamicModule, Provider } from '../interfaces'; import { Logger } from '../services/logger.service'; import { randomStringGenerator } from '../utils/random-string-generator.util'; import { ASYNC_METHOD_SUFFIX, ASYNC_OPTIONS_METADATA_KEYS, CONFI...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/module-utils/constants.ts
packages/common/module-utils/constants.ts
export const DEFAULT_METHOD_KEY = 'register'; export const DEFAULT_FACTORY_CLASS_METHOD_KEY = 'create'; export const ASYNC_METHOD_SUFFIX = 'Async'; export const CONFIGURABLE_MODULE_ID = 'CONFIGURABLE_MODULE_ID'; /** * List of keys that are specific to ConfigurableModuleAsyncOptions * and should be excluded when ext...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/module-utils/index.ts
packages/common/module-utils/index.ts
export * from './configurable-module.builder'; export * from './interfaces';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/module-utils/interfaces/configurable-module-host.interface.ts
packages/common/module-utils/interfaces/configurable-module-host.interface.ts
/* eslint-disable @typescript-eslint/no-empty-object-type */ import { ConfigurableModuleAsyncOptions } from './configurable-module-async-options.interface'; import { ConfigurableModuleCls } from './configurable-module-cls.interface'; /** * Configurable module host. See properties for more details * * @publicApi */...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/module-utils/interfaces/configurable-module-async-options.interface.ts
packages/common/module-utils/interfaces/configurable-module-async-options.interface.ts
import { FactoryProvider, ModuleMetadata, Provider, Type, } from '../../interfaces'; import { DEFAULT_FACTORY_CLASS_METHOD_KEY } from '../constants'; /** * Interface that must be implemented by the module options factory class. * Method key varies depending on the "FactoryClassMethodKey" type argument. * *...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/module-utils/interfaces/index.ts
packages/common/module-utils/interfaces/index.ts
export * from './configurable-module-async-options.interface'; export * from './configurable-module-cls.interface'; export * from './configurable-module-host.interface';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/module-utils/interfaces/configurable-module-cls.interface.ts
packages/common/module-utils/interfaces/configurable-module-cls.interface.ts
/* eslint-disable @typescript-eslint/no-empty-object-type */ import { DynamicModule } from '../../interfaces'; import { DEFAULT_FACTORY_CLASS_METHOD_KEY, DEFAULT_METHOD_KEY, } from '../constants'; import { ConfigurableModuleAsyncOptions } from './configurable-module-async-options.interface'; /** * Class that repr...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/module-utils/utils/generate-options-injection-token.util.ts
packages/common/module-utils/utils/generate-options-injection-token.util.ts
import { randomStringGenerator } from '../../utils/random-string-generator.util'; export function generateOptionsInjectionToken() { const hash = randomStringGenerator(); return `CONFIGURABLE_MODULE_OPTIONS[${hash}]`; }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/module-utils/utils/get-injection-providers.util.ts
packages/common/module-utils/utils/get-injection-providers.util.ts
import { isUndefined } from '../../utils/shared.utils'; import { FactoryProvider, InjectionToken, OptionalFactoryDependency, Provider, } from '../../interfaces'; /** * @param value * @returns `true` if value is `OptionalFactoryDependency` */ function isOptionalFactoryDependency( value: InjectionToken | Op...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/module-utils/utils/index.ts
packages/common/module-utils/utils/index.ts
export * from './generate-options-injection-token.util'; export * from './get-injection-providers.util';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/enums/route-paramtypes.enum.ts
packages/common/enums/route-paramtypes.enum.ts
export enum RouteParamtypes { REQUEST = 0, RESPONSE = 1, NEXT = 2, BODY = 3, QUERY = 4, PARAM = 5, HEADERS = 6, SESSION = 7, FILE = 8, FILES = 9, HOST = 10, IP = 11, RAW_BODY = 12, ACK = 13, }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/enums/shutdown-signal.enum.ts
packages/common/enums/shutdown-signal.enum.ts
/** * System signals which shut down a process */ export enum ShutdownSignal { SIGHUP = 'SIGHUP', SIGINT = 'SIGINT', SIGQUIT = 'SIGQUIT', SIGILL = 'SIGILL', SIGTRAP = 'SIGTRAP', SIGABRT = 'SIGABRT', SIGBUS = 'SIGBUS', SIGFPE = 'SIGFPE', SIGSEGV = 'SIGSEGV', SIGUSR2 = 'SIGUSR2', SIGTERM = 'SIGTER...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/enums/request-method.enum.ts
packages/common/enums/request-method.enum.ts
export enum RequestMethod { GET = 0, POST, PUT, DELETE, PATCH, ALL, OPTIONS, HEAD, SEARCH, PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK, }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/enums/version-type.enum.ts
packages/common/enums/version-type.enum.ts
/** * @publicApi */ export enum VersioningType { URI, HEADER, MEDIA_TYPE, CUSTOM, }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/enums/http-status.enum.ts
packages/common/enums/http-status.enum.ts
/** * @publicApi */ export enum HttpStatus { CONTINUE = 100, SWITCHING_PROTOCOLS = 101, PROCESSING = 102, EARLYHINTS = 103, OK = 200, CREATED = 201, ACCEPTED = 202, NON_AUTHORITATIVE_INFORMATION = 203, NO_CONTENT = 204, RESET_CONTENT = 205, PARTIAL_CONTENT = 206, MULTI_STATUS = 207, ALREADY_...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/enums/index.ts
packages/common/enums/index.ts
export * from './request-method.enum'; export * from './http-status.enum'; export * from './shutdown-signal.enum'; export * from './version-type.enum';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/testing/testing-module.builder.ts
packages/testing/testing-module.builder.ts
import { Logger, LoggerService, Module, ModuleMetadata } from '@nestjs/common'; import { NestApplicationContextOptions } from '@nestjs/common/interfaces/nest-application-context-options.interface'; import { ApplicationConfig } from '@nestjs/core/application-config'; import { NestContainer } from '@nestjs/core/injector/...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/testing/test.ts
packages/testing/test.ts
import { ModuleMetadata } from '@nestjs/common/interfaces/modules/module-metadata.interface'; import { MetadataScanner } from '@nestjs/core/metadata-scanner'; import { TestingModuleBuilder, TestingModuleOptions, } from './testing-module.builder'; export class Test { private static readonly metadataScanner = new ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/testing/testing-injector.ts
packages/testing/testing-injector.ts
import { NestContainer } from '@nestjs/core'; import { STATIC_CONTEXT } from '@nestjs/core/injector/constants'; import { Injector, InjectorDependencyContext, } from '@nestjs/core/injector/injector'; import { InstanceWrapper } from '@nestjs/core/injector/instance-wrapper'; import { Module } from '@nestjs/core/inject...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/testing/testing-module.ts
packages/testing/testing-module.ts
import { HttpServer, INestApplication, INestMicroservice, Logger, NestApplicationOptions, Type, } from '@nestjs/common'; import { NestMicroserviceOptions } from '@nestjs/common/interfaces/microservices/nest-microservice-options.interface'; import { NestApplicationContextOptions } from '@nestjs/common/interf...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/testing/index.ts
packages/testing/index.ts
/* * Nest @testing * Copyright(c) 2017 - 2025 Kamil Mysliwiec * https://nestjs.com * MIT Licensed */ export * from './interfaces'; export * from './test'; export * from './testing-module'; export * from './testing-module.builder';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/testing/testing-instance-loader.ts
packages/testing/testing-instance-loader.ts
import { InstanceLoader } from '@nestjs/core/injector/instance-loader'; import { Module } from '@nestjs/core/injector/module'; import { MockFactory } from './interfaces'; import { TestingInjector } from './testing-injector'; export class TestingInstanceLoader extends InstanceLoader<TestingInjector> { public async cr...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/testing/services/testing-logger.service.ts
packages/testing/services/testing-logger.service.ts
import { ConsoleLogger } from '@nestjs/common'; /** * @publicApi */ export class TestingLogger extends ConsoleLogger { constructor() { super('Testing'); } log(message: string) {} warn(message: string) {} debug(message: string) {} verbose(message: string) {} error(message: string, ...optionalParams...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/testing/interfaces/override-module.interface.ts
packages/testing/interfaces/override-module.interface.ts
import { ModuleDefinition } from '@nestjs/core/interfaces/module-definition.interface'; import { TestingModuleBuilder } from '../testing-module.builder'; /** * @publicApi */ export interface OverrideModule { useModule: (newModule: ModuleDefinition) => TestingModuleBuilder; }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/testing/interfaces/override-by.interface.ts
packages/testing/interfaces/override-by.interface.ts
import { TestingModuleBuilder } from '../testing-module.builder'; import { OverrideByFactoryOptions } from './override-by-factory-options.interface'; /** * @publicApi */ export interface OverrideBy { useValue: (value: any) => TestingModuleBuilder; useFactory: (options: OverrideByFactoryOptions) => TestingModuleB...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/testing/interfaces/mock-factory.ts
packages/testing/interfaces/mock-factory.ts
import { InjectionToken } from '@nestjs/common'; export type MockFactory = (token?: InjectionToken) => any;
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/testing/interfaces/override-by-factory-options.interface.ts
packages/testing/interfaces/override-by-factory-options.interface.ts
/** * @publicApi */ export interface OverrideByFactoryOptions { factory: (...args: any[]) => any; inject?: any[]; }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/testing/interfaces/index.ts
packages/testing/interfaces/index.ts
export * from './mock-factory'; export * from './override-by-factory-options.interface'; export * from './override-by.interface';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/nest-application-context.ts
packages/core/nest-application-context.ts
import { INestApplicationContext, Logger, LoggerService, LogLevel, ShutdownSignal, } from '@nestjs/common'; import { Abstract, DynamicModule, GetOrResolveOptions, SelectOptions, ShutdownHooksOptions, Type, } from '@nestjs/common/interfaces'; import { NestApplicationContextOptions } from '@nestjs/c...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/nest-application.ts
packages/core/nest-application.ts
import { CanActivate, ExceptionFilter, HttpServer, INestApplication, INestMicroservice, NestHybridApplicationOptions, NestInterceptor, PipeTransform, VersioningOptions, VersioningType, WebSocketAdapter, } from '@nestjs/common'; import { GlobalPrefixOptions, NestApplicationOptions, } from '@nes...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/application-config.ts
packages/core/application-config.ts
import { CanActivate, ExceptionFilter, NestInterceptor, PipeTransform, VersioningOptions, WebSocketAdapter, } from '@nestjs/common'; import { GlobalPrefixOptions } from '@nestjs/common/interfaces'; import { InstanceWrapper } from './injector/instance-wrapper'; import { ExcludeRouteMetadata } from './router/...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/metadata-scanner.ts
packages/core/metadata-scanner.ts
import { Injectable } from '@nestjs/common/interfaces/injectable.interface'; import { isConstructor, isFunction, isNil, } from '@nestjs/common/utils/shared.utils'; export class MetadataScanner { private readonly cachedScannedPrototypes: Map<object, string[]> = new Map(); /** * @deprecated * @see {@lin...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/constants.ts
packages/core/constants.ts
import { EnhancerSubtype } from '@nestjs/common/constants'; export const MESSAGES = { APPLICATION_START: `Starting Nest application...`, APPLICATION_READY: `Nest application successfully started`, MICROSERVICE_READY: `Nest microservice successfully started`, UNKNOWN_EXCEPTION_MESSAGE: 'Internal server error', ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/index.ts
packages/core/index.ts
/* * Nest @core * Copyright(c) 2017 - 2025 Kamil Mysliwiec * https://nestjs.com * MIT Licensed */ import 'reflect-metadata'; export * from './adapters'; export * from './application-config'; export { APP_FILTER, APP_GUARD, APP_INTERCEPTOR, APP_PIPE } from './constants'; export * from './discovery'; export * from ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/nest-factory.ts
packages/core/nest-factory.ts
import { DynamicModule, ForwardReference, HttpServer, INestApplication, INestApplicationContext, INestMicroservice, Type, } from '@nestjs/common'; import { NestMicroserviceOptions } from '@nestjs/common/interfaces/microservices/nest-microservice-options.interface'; import { NestApplicationContextOptions }...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/scanner.ts
packages/core/scanner.ts
import { DynamicModule, ForwardReference, Provider } from '@nestjs/common'; import { CATCH_WATERMARK, CONTROLLER_WATERMARK, ENHANCER_KEY_TO_SUBTYPE_MAP, EXCEPTION_FILTERS_METADATA, EnhancerSubtype, GUARDS_METADATA, INJECTABLE_WATERMARK, INTERCEPTORS_METADATA, MODULE_METADATA, PIPES_METADATA, ROUTE...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/discovery/discovery-service.ts
packages/core/discovery/discovery-service.ts
import { CustomDecorator, flatten, Injectable, SetMetadata, } from '@nestjs/common'; import { uid } from 'uid'; import { InstanceWrapper } from '../injector/instance-wrapper'; import { Module } from '../injector/module'; import { ModulesContainer } from '../injector/modules-container'; import { DiscoverableMeta...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/discovery/discoverable-meta-host-collection.ts
packages/core/discovery/discoverable-meta-host-collection.ts
import { Type } from '@nestjs/common'; import { InstanceWrapper } from '../injector/instance-wrapper'; import { ModulesContainer } from '../injector/modules-container'; export class DiscoverableMetaHostCollection { /** * A map of class references to metadata keys. */ public static readonly metaHostLinks = ne...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/discovery/index.ts
packages/core/discovery/index.ts
export * from './discovery-module'; export * from './discovery-service';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/discovery/discovery-module.ts
packages/core/discovery/discovery-module.ts
import { Module } from '@nestjs/common'; import { MetadataScanner } from '../metadata-scanner'; import { DiscoveryService } from './discovery-service'; /** * @publicApi */ @Module({ providers: [MetadataScanner, DiscoveryService], exports: [MetadataScanner, DiscoveryService], }) export class DiscoveryModule {}
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/services/index.ts
packages/core/services/index.ts
export * from './reflector.service';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/services/reflector.service.ts
packages/core/services/reflector.service.ts
import { CustomDecorator, SetMetadata, Type } from '@nestjs/common'; import { isEmpty, isObject } from '@nestjs/common/utils/shared.utils'; import { uid } from 'uid'; /** * @publicApi */ export interface CreateDecoratorOptions<TParam = any, TTransformed = TParam> { /** * The key for the metadata. * @default ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/repl/repl-context.ts
packages/core/repl/repl-context.ts
import { INestApplicationContext, InjectionToken, Logger, } from '@nestjs/common'; import { ApplicationConfig } from '../application-config'; import { ModuleRef, NestContainer } from '../injector'; import { InternalCoreModule } from '../injector/internal-core-module/internal-core-module'; import { Module } from '...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/repl/repl-native-commands.ts
packages/core/repl/repl-native-commands.ts
import type { REPLServer } from 'repl'; /** * Displays a list of available commands in the REPL alongside with their * descriptions. * (c) This code was inspired by the 'help' command from Node.js core: * {@link https://github.com/nodejs/node/blob/58b60c1393dd65cd228a8b0084a19acd2c1d16aa/lib/repl.js#L1741-L1759} ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/repl/repl-function.ts
packages/core/repl/repl-function.ts
import { Logger } from '@nestjs/common'; import { clc } from '@nestjs/common/utils/cli-colors.util'; import { ReplContext } from './repl-context'; import type { ReplFnDefinition } from './repl.interfaces'; export abstract class ReplFunction< ActionParams extends Array<unknown> = Array<unknown>, ActionReturn = any,...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/repl/assign-to-object.util.ts
packages/core/repl/assign-to-object.util.ts
/** * Similar to `Object.assign` but copying properties descriptors from `source` * as well. */ export function assignToObject<T, U extends object>( target: T, source: U, ): T & U { Object.defineProperties( target, Object.keys(source).reduce((descriptors, key) => { descriptors[key] = Object.getOw...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/repl/repl.interfaces.ts
packages/core/repl/repl.interfaces.ts
import type { ReplContext } from './repl-context'; import type { ReplFunction } from './repl-function'; export type ReplFnDefinition = { /** Function's name. Note that this should be a valid JavaScript function name. */ name: string; /** Alternative names to the function. */ aliases?: ReplFnDefinition['name']...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/repl/constants.ts
packages/core/repl/constants.ts
export const REPL_INITIALIZED_MESSAGE = 'REPL initialized';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/core/repl/repl.ts
packages/core/repl/repl.ts
import { DynamicModule, Logger, Type } from '@nestjs/common'; import { clc } from '@nestjs/common/utils/cli-colors.util'; import { NestFactory } from '../nest-factory'; import { assignToObject } from './assign-to-object.util'; import { REPL_INITIALIZED_MESSAGE } from './constants'; import { ReplContext } from './repl-c...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false