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/integration/websockets/e2e/error-gateway.spec.ts
integration/websockets/e2e/error-gateway.spec.ts
import { INestApplication } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import { expect } from 'chai'; import { io } from 'socket.io-client'; import { ErrorGateway } from '../src/error.gateway'; describe('ErrorGateway', () => { let app: INestApplication; beforeEach(async () => { const testi...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/app.controller.ts
integration/microservices/src/app.controller.ts
import { Body, Controller, HttpCode, Inject, Post, Query, } from '@nestjs/common'; import { Client, ClientProxy, EventPattern, MessagePattern, RpcException, Transport, } from '@nestjs/microservices'; import { from, lastValueFrom, Observable, of, throwError } from 'rxjs'; import { catchError, sca...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/app.module.ts
integration/microservices/src/app.module.ts
import { Module, Injectable } from '@nestjs/common'; import { AppController } from './app.controller'; import { ClientsModule, Transport, ClientsModuleOptionsFactory, ClientOptions, ClientTCP, RpcException, } from '@nestjs/microservices'; class ErrorHandlingProxy extends ClientTCP { serializeError(err) {...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/disconnected.controller.ts
integration/microservices/src/disconnected.controller.ts
import { Body, Controller, InternalServerErrorException, Post, RequestTimeoutException, } from '@nestjs/common'; import { ClientProxyFactory } from '@nestjs/microservices'; import { Observable, throwError } from 'rxjs'; import { catchError, tap } from 'rxjs/operators'; @Controller() export class Disconnected...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/main.ts
integration/microservices/src/main.ts
import { NestFactory } from '@nestjs/core'; import { ApplicationModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(ApplicationModule); await app.listen(3000); } void bootstrap();
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/tcp-tls/app.controller.ts
integration/microservices/src/tcp-tls/app.controller.ts
import { Body, Controller, HttpCode, Inject, Post, Query, } from '@nestjs/common'; import { Client, ClientProxy, EventPattern, MessagePattern, RpcException, Transport, } from '@nestjs/microservices'; import { from, lastValueFrom, Observable, of, throwError } from 'rxjs'; import { catchError, sca...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/tcp-tls/app.module.ts
integration/microservices/src/tcp-tls/app.module.ts
import { Injectable, Module } from '@nestjs/common'; import { ClientOptions, ClientsModule, ClientsModuleOptionsFactory, ClientTCP, RpcException, Transport, } from '@nestjs/microservices'; import { AppController } from './app.controller'; import * as fs from 'fs'; import * as path from 'path'; const caCer...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/rmq/rmq.controller.ts
integration/microservices/src/rmq/rmq.controller.ts
import { Body, Controller, HttpCode, Post, Query } from '@nestjs/common'; import { ClientProxy, ClientProxyFactory, Ctx, EventPattern, MessagePattern, Payload, RmqContext, RmqRecordBuilder, Transport, } from '@nestjs/microservices'; import { from, lastValueFrom, Observable, of } from 'rxjs'; import { ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/rmq/fanout-exchange-consumer-rmq.controller.ts
integration/microservices/src/rmq/fanout-exchange-consumer-rmq.controller.ts
import { Controller } from '@nestjs/common'; import { Ctx, MessagePattern, RmqContext } from '@nestjs/microservices'; @Controller() export class RMQFanoutExchangeConsumerController { constructor() {} @MessagePattern('ping') handleTopicExchange(@Ctx() ctx: RmqContext): string { return ctx.getPattern() + '/po...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/rmq/fanout-exchange-producer-rmq.controller.ts
integration/microservices/src/rmq/fanout-exchange-producer-rmq.controller.ts
import { Controller, Get } from '@nestjs/common'; import { ClientProxy, ClientProxyFactory, Transport, } from '@nestjs/microservices'; import { lastValueFrom } from 'rxjs'; @Controller() export class RMQFanoutExchangeProducerController { client: ClientProxy; constructor() { this.client = ClientProxyFact...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/rmq/topic-exchange-rmq.controller.ts
integration/microservices/src/rmq/topic-exchange-rmq.controller.ts
import { Controller, Get } from '@nestjs/common'; import { ClientProxy, ClientProxyFactory, Ctx, MessagePattern, RmqContext, Transport, } from '@nestjs/microservices'; import { lastValueFrom } from 'rxjs'; @Controller() export class RMQTopicExchangeController { client: ClientProxy; constructor() { ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/rmq/rmq-broadcast.controller.ts
integration/microservices/src/rmq/rmq-broadcast.controller.ts
import { Controller, Get } from '@nestjs/common'; import { ClientProxy, ClientProxyFactory, MessagePattern, Transport, } from '@nestjs/microservices'; import { Observable } from 'rxjs'; import { scan, take } from 'rxjs/operators'; @Controller() export class RMQBroadcastController { client: ClientProxy; co...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/mqtt/mqtt-broadcast.controller.ts
integration/microservices/src/mqtt/mqtt-broadcast.controller.ts
import { Controller, Get } from '@nestjs/common'; import { Client, ClientProxy, MessagePattern, Transport, } from '@nestjs/microservices'; import { Observable } from 'rxjs'; import { scan, take } from 'rxjs/operators'; @Controller() export class MqttBroadcastController { @Client({ transport: Transport.MQTT }...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/mqtt/mqtt.controller.ts
integration/microservices/src/mqtt/mqtt.controller.ts
import { Body, Controller, HttpCode, Post, Query } from '@nestjs/common'; import { Client, ClientProxy, Ctx, EventPattern, MessagePattern, MqttContext, MqttRecordBuilder, Payload, Transport, } from '@nestjs/microservices'; import { from, lastValueFrom, Observable, of } from 'rxjs'; import { scan } fro...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/redis/redis.controller.ts
integration/microservices/src/redis/redis.controller.ts
import { Body, Controller, HttpCode, Post, Query } from '@nestjs/common'; import { Client, ClientProxy, EventPattern, MessagePattern, Transport, } from '@nestjs/microservices'; import { from, lastValueFrom, Observable, of } from 'rxjs'; import { scan } from 'rxjs/operators'; @Controller() export class RedisC...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/redis/redis-broadcast.controller.ts
integration/microservices/src/redis/redis-broadcast.controller.ts
import { Controller, Get } from '@nestjs/common'; import { Client, MessagePattern, ClientProxy, Transport, } from '@nestjs/microservices'; import { Observable } from 'rxjs'; import { scan, take } from 'rxjs/operators'; @Controller() export class RedisBroadcastController { @Client({ transport: Transport.REDIS...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/grpc-advanced/advanced.grpc.controller.ts
integration/microservices/src/grpc-advanced/advanced.grpc.controller.ts
import { Metadata } from '@grpc/grpc-js'; import { Body, Controller, HttpCode, Post } from '@nestjs/common'; import { Client, ClientGrpc, GrpcMethod, GrpcStreamCall, GrpcStreamMethod, Transport, } from '@nestjs/microservices'; import { join } from 'path'; import { Observable, of, ReplaySubject, Subject } fr...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/kafka-concurrent/kafka-concurrent.messages.controller.ts
integration/microservices/src/kafka-concurrent/kafka-concurrent.messages.controller.ts
import { Controller, HttpCode, Post } from '@nestjs/common'; import { MessagePattern } from '@nestjs/microservices'; import { BehaviorSubject, Observable } from 'rxjs'; import { first, map, skipWhile } from 'rxjs/operators'; @Controller() export class KafkaConcurrentMessagesController { public waiting = new Behavior...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/kafka-concurrent/kafka-concurrent.controller.ts
integration/microservices/src/kafka-concurrent/kafka-concurrent.controller.ts
import { Body, Controller, HttpCode, Logger, OnModuleDestroy, OnModuleInit, Post, } from '@nestjs/common'; import { Client, ClientKafka, Transport } from '@nestjs/microservices'; import { PartitionerArgs } from 'kafkajs'; import { Observable } from 'rxjs'; import { SumDto } from './dto/sum.dto'; /** * T...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/kafka-concurrent/dto/sum.dto.ts
integration/microservices/src/kafka-concurrent/dto/sum.dto.ts
export class SumDto { key: string; numbers: number[]; }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/nats/nats-broadcast.controller.ts
integration/microservices/src/nats/nats-broadcast.controller.ts
import { Controller, Get } from '@nestjs/common'; import { Client, ClientProxy, MessagePattern, Transport, } from '@nestjs/microservices'; import { Observable } from 'rxjs'; import { scan, take } from 'rxjs/operators'; @Controller() export class NatsBroadcastController { @Client({ transport: Transport.NA...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/nats/nats.service.ts
integration/microservices/src/nats/nats.service.ts
import { Inject, Injectable } from '@nestjs/common'; import { CONTEXT } from '@nestjs/microservices'; @Injectable() export class NatsService { constructor(@Inject(CONTEXT) public ctx) {} }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/nats/nats.controller.ts
integration/microservices/src/nats/nats.controller.ts
import { Body, Controller, Get, HttpCode, Post, Query } from '@nestjs/common'; import { ClientProxy, ClientProxyFactory, Ctx, EventPattern, MessagePattern, NatsContext, NatsRecordBuilder, Payload, RpcException, Transport, } from '@nestjs/microservices'; import * as nats from 'nats'; import { from, l...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/grpc/grpc.controller.ts
integration/microservices/src/grpc/grpc.controller.ts
import { Body, Controller, HttpCode, Post, Query } from '@nestjs/common'; import { Client, ClientGrpc, ClientGrpcProxy, GrpcMethod, GrpcStreamCall, GrpcStreamMethod, RpcException, Transport, } from '@nestjs/microservices'; import { join } from 'path'; import { catchError, from, mergeMap, Observable, of ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/kafka/kafka.messages.controller.ts
integration/microservices/src/kafka/kafka.messages.controller.ts
import { Controller, Logger } from '@nestjs/common'; import { EventPattern, MessagePattern } from '@nestjs/microservices'; import { BusinessDto } from './dtos/business.dto'; import { UserDto } from './dtos/user.dto'; import { BusinessEntity } from './entities/business.entity'; import { UserEntity } from './entities/use...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/kafka/kafka.controller.ts
integration/microservices/src/kafka/kafka.controller.ts
import { Body, Controller, HttpCode, Logger, OnModuleDestroy, OnModuleInit, Post, } from '@nestjs/common'; import { Client, ClientKafka, Transport } from '@nestjs/microservices'; import { lastValueFrom, Observable } from 'rxjs'; import { BusinessDto } from './dtos/business.dto'; import { UserDto } from '....
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/kafka/entities/business.entity.ts
integration/microservices/src/kafka/entities/business.entity.ts
import { UserEntity } from './user.entity'; import { BusinessDto } from '../dtos/business.dto'; export class BusinessEntity { constructor(business: BusinessDto) { this.id = Math.random() * 99999999; this.name = business.name; this.phone = business.phone; this.createdBy = { id: business.user.id,...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/kafka/entities/user.entity.ts
integration/microservices/src/kafka/entities/user.entity.ts
import { UserDto } from '../dtos/user.dto'; export class UserEntity { constructor(user: UserDto) { this.id = Math.random() * 99999999; this.name = user.name; this.email = user.email; this.phone = user.phone; this.years = user.years; this.created = new Date(); } id: number; name: string;...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/kafka/dtos/user.dto.ts
integration/microservices/src/kafka/dtos/user.dto.ts
export class UserDto { name: string; email: string; phone: string; years: number; }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/src/kafka/dtos/business.dto.ts
integration/microservices/src/kafka/dtos/business.dto.ts
import { UserEntity } from '../entities/user.entity'; export class BusinessDto { name: string; phone: string; user: UserEntity; }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/sum-rmq.spec.ts
integration/microservices/e2e/sum-rmq.spec.ts
import { INestApplication } from '@nestjs/common'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { Test } from '@nestjs/testing'; import { expect } from 'chai'; import * as request from 'supertest'; import { RMQController } from '../src/rmq/rmq.controller'; describe('RabbitMQ transport...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/concurrent-kafka.spec.ts
integration/microservices/e2e/concurrent-kafka.spec.ts
import { INestApplication, Logger } from '@nestjs/common'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { Test } from '@nestjs/testing'; import { Admin, ITopicMetadata, Kafka } from 'kafkajs'; import * as request from 'supertest'; import * as util from 'util'; import { KafkaConcurrentC...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/sum-rpc.spec.ts
integration/microservices/e2e/sum-rpc.spec.ts
import { INestApplication } from '@nestjs/common'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { Test } from '@nestjs/testing'; import { expect } from 'chai'; import * as request from 'supertest'; import { AppController } from '../src/app.controller'; import { AppModule } from '../src...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/broadcast-redis.spec.ts
integration/microservices/e2e/broadcast-redis.spec.ts
import { INestApplication } from '@nestjs/common'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { Test } from '@nestjs/testing'; import * as request from 'supertest'; import { RedisBroadcastController } from '../src/redis/redis-broadcast.controller'; describe('REDIS transport', () => ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/sum-kafka.spec.ts
integration/microservices/e2e/sum-kafka.spec.ts
import { INestApplication } from '@nestjs/common'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { Test } from '@nestjs/testing'; import { expect } from 'chai'; import * as request from 'supertest'; import { BusinessDto } from '../src/kafka/dtos/business.dto'; import { UserDto } from '....
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/sum-rpc-tls.spec.ts
integration/microservices/e2e/sum-rpc-tls.spec.ts
import { INestApplication } from '@nestjs/common'; import { Transport } from '@nestjs/microservices'; import { Test } from '@nestjs/testing'; import { expect } from 'chai'; import * as fs from 'fs'; import * as path from 'path'; import * as request from 'supertest'; import { AppController } from '../src/tcp-tls/app.con...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/sum-rpc-async.spec.ts
integration/microservices/e2e/sum-rpc-async.spec.ts
import { Controller, INestMicroservice, Injectable, Module, } from '@nestjs/common'; import { NestFactory } from '@nestjs/core'; import { AsyncOptions, ClientTCP, ClientsModule, MessagePattern, MicroserviceOptions, Payload, TcpOptions, Transport, } from '@nestjs/microservices'; import { expect }...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/mqtt-record-builder.spec.ts
integration/microservices/e2e/mqtt-record-builder.spec.ts
import { INestApplication } from '@nestjs/common'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { Test } from '@nestjs/testing'; import * as request from 'supertest'; import { MqttController } from '../src/mqtt/mqtt.controller'; describe('MQTT transport', () => { let server; let a...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/fanout-exchange-rmq.spec.ts
integration/microservices/e2e/fanout-exchange-rmq.spec.ts
import { INestApplication, INestMicroservice } from '@nestjs/common'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { Test } from '@nestjs/testing'; import * as request from 'supertest'; import { RMQFanoutExchangeProducerController } from '../src/rmq/fanout-exchange-producer-rmq.control...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/orders-grpc.spec.ts
integration/microservices/e2e/orders-grpc.spec.ts
import * as GRPC from '@grpc/grpc-js'; import * as ProtoLoader from '@grpc/proto-loader'; import { INestApplication } from '@nestjs/common'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { ExpressAdapter } from '@nestjs/platform-express'; import { Test } from '@nestjs/testing'; import {...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/broadcast-nats.spec.ts
integration/microservices/e2e/broadcast-nats.spec.ts
import { INestApplication } from '@nestjs/common'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { Test } from '@nestjs/testing'; import * as request from 'supertest'; import { NatsBroadcastController } from '../src/nats/nats-broadcast.controller'; describe('NATS transport', () => { ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/disconnected-client.spec.ts
integration/microservices/e2e/disconnected-client.spec.ts
import { INestApplication } from '@nestjs/common'; import { Transport } from '@nestjs/microservices'; import { Test } from '@nestjs/testing'; import * as request from 'supertest'; import { App } from 'supertest/types'; import { DisconnectedClientController } from '../src/disconnected.controller'; describe('Disconnecte...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/broadcast-mqtt.spec.ts
integration/microservices/e2e/broadcast-mqtt.spec.ts
import { INestApplication } from '@nestjs/common'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { Test } from '@nestjs/testing'; import * as request from 'supertest'; import { MqttBroadcastController } from '../src/mqtt/mqtt-broadcast.controller'; describe('MQTT transport', () => { ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/sum-mqtt.spec.ts
integration/microservices/e2e/sum-mqtt.spec.ts
import { INestApplication } from '@nestjs/common'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { Test } from '@nestjs/testing'; import { expect } from 'chai'; import * as request from 'supertest'; import { MqttController } from '../src/mqtt/mqtt.controller'; describe('MQTT transport'...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/topic-exchange-rmq.spec.ts
integration/microservices/e2e/topic-exchange-rmq.spec.ts
import { INestApplication } from '@nestjs/common'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { Test } from '@nestjs/testing'; import * as request from 'supertest'; import { RMQTopicExchangeController } from '../src/rmq/topic-exchange-rmq.controller'; describe('RabbitMQ transport (T...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/sum-nats.spec.ts
integration/microservices/e2e/sum-nats.spec.ts
import { INestApplication } from '@nestjs/common'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { Test } from '@nestjs/testing'; import { expect } from 'chai'; import * as request from 'supertest'; import { NatsController } from '../src/nats/nats.controller'; import { NatsService } fro...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/sum-redis.spec.ts
integration/microservices/e2e/sum-redis.spec.ts
import { INestApplication } from '@nestjs/common'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { Test } from '@nestjs/testing'; import { expect } from 'chai'; import * as request from 'supertest'; import { RedisController } from '../src/redis/redis.controller'; describe('REDIS transp...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/microservices/e2e/math-grpc.spec.ts
integration/microservices/e2e/math-grpc.spec.ts
import * as GRPC from '@grpc/grpc-js'; import * as ProtoLoader from '@grpc/proto-loader'; import { INestApplication } from '@nestjs/common'; import { MicroserviceOptions, Transport } from '@nestjs/microservices'; import { Test } from '@nestjs/testing'; import { fail } from 'assert'; import { expect, use } from 'chai'; ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/graphql-code-first/src/app.module.ts
integration/graphql-code-first/src/app.module.ts
import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo'; import { Module } from '@nestjs/common'; import { GraphQLModule } from '@nestjs/graphql'; import { join } from 'path'; import { RecipesModule } from './recipes/recipes.module'; @Module({ imports: [ RecipesModule, GraphQLModule.forRoot<ApolloD...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/graphql-code-first/src/main.ts
integration/graphql-code-first/src/main.ts
import { ValidationPipe } from '@nestjs/common'; import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); app.useGlobalPipes(new ValidationPipe()); await app.listen(3000); } void bootstrap();
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/graphql-code-first/src/recipes/recipes.resolver.ts
integration/graphql-code-first/src/recipes/recipes.resolver.ts
import { NotFoundException, UseGuards, UseInterceptors } from '@nestjs/common'; import { Args, Mutation, Query, Resolver, Subscription } from '@nestjs/graphql'; import { PubSub } from 'graphql-subscriptions'; import { AuthGuard } from '../common/guards/auth.guard'; import { DataInterceptor } from '../common/interceptor...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/graphql-code-first/src/recipes/recipes.service.ts
integration/graphql-code-first/src/recipes/recipes.service.ts
import { Injectable } from '@nestjs/common'; import { NewRecipeInput } from './dto/new-recipe.input'; import { RecipesArgs } from './dto/recipes.args'; import { Recipe } from './models/recipe'; @Injectable() export class RecipesService { /** * MOCK * Put some real business logic here * Left for demonstratio...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/graphql-code-first/src/recipes/recipes.module.ts
integration/graphql-code-first/src/recipes/recipes.module.ts
import { Module } from '@nestjs/common'; import { APP_FILTER } from '@nestjs/core'; import { UnauthorizedFilter } from '../common/filters/unauthorized.filter'; import { DateScalar } from '../common/scalars/date.scalar'; import { RecipesResolver } from './recipes.resolver'; import { RecipesService } from './recipes.serv...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/graphql-code-first/src/recipes/dto/recipes.args.ts
integration/graphql-code-first/src/recipes/dto/recipes.args.ts
import { ArgsType, Field, Int } from '@nestjs/graphql'; import { Max, Min } from 'class-validator'; @ArgsType() export class RecipesArgs { @Field(type => Int) @Min(0) skip = 0; @Field(type => Int) @Min(1) @Max(50) take = 25; }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/graphql-code-first/src/recipes/dto/new-recipe.input.ts
integration/graphql-code-first/src/recipes/dto/new-recipe.input.ts
import { Field, InputType } from '@nestjs/graphql'; import { Type } from 'class-transformer'; import { Length, MaxLength } from 'class-validator'; @InputType() export class NewRecipeInput { @Field() @MaxLength(30) title: string; @Field({ nullable: true }) @Length(30, 255) description?: string; @Type(()...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/graphql-code-first/src/recipes/models/recipe.ts
integration/graphql-code-first/src/recipes/models/recipe.ts
import { Field, ID, ObjectType } from '@nestjs/graphql'; @ObjectType() export class Recipe { @Field(type => ID) id: string; @Field() title: string; @Field({ nullable: true }) description?: string; @Field() creationDate: Date; @Field(type => [String]) ingredients: string[]; }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/graphql-code-first/src/common/scalars/date.scalar.ts
integration/graphql-code-first/src/common/scalars/date.scalar.ts
import { Scalar } from '@nestjs/graphql'; import { Kind, ValueNode } from 'graphql'; @Scalar('Date', type => Date) export class DateScalar { description = 'Date custom scalar type'; parseValue(value: any) { return new Date(value); // value from the client } serialize(value: any) { return value.getTim...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/graphql-code-first/src/common/guards/auth.guard.ts
integration/graphql-code-first/src/common/guards/auth.guard.ts
import { CanActivate, ExecutionContext, Injectable, UnauthorizedException, } from '@nestjs/common'; import { GqlExecutionContext } from '@nestjs/graphql'; @Injectable() export class AuthGuard implements CanActivate { async canActivate(context: ExecutionContext): Promise<boolean> { const gqlContext = GqlE...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/graphql-code-first/src/common/filters/unauthorized.filter.ts
integration/graphql-code-first/src/common/filters/unauthorized.filter.ts
import { ArgumentsHost, Catch, UnauthorizedException } from '@nestjs/common'; import { GqlExceptionFilter } from '@nestjs/graphql'; @Catch(UnauthorizedException) export class UnauthorizedFilter implements GqlExceptionFilter { catch(exception: any, host: ArgumentsHost) { return new Error('Unauthorized error'); ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/graphql-code-first/src/common/interceptors/data.interceptor.ts
integration/graphql-code-first/src/common/interceptors/data.interceptor.ts
import { CallHandler, ExecutionContext, Injectable, NestInterceptor, } from '@nestjs/common'; import { Observable } from 'rxjs'; import { tap } from 'rxjs/operators'; @Injectable() export class DataInterceptor implements NestInterceptor { intercept(context: ExecutionContext, next: CallHandler): Observable<an...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/graphql-code-first/e2e/guards-filters.spec.ts
integration/graphql-code-first/e2e/guards-filters.spec.ts
import { INestApplication } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import * as request from 'supertest'; import { AppModule } from '../src/app.module'; describe('GraphQL - Guards', () => { let app: INestApplication; beforeEach(async () => { const module = await Test.createTestingModule...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/graphql-code-first/e2e/code-first.spec.ts
integration/graphql-code-first/e2e/code-first.spec.ts
import { INestApplication } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import * as request from 'supertest'; import { AppModule } from '../src/app.module'; describe('GraphQL - Code-first', () => { let app: INestApplication; beforeEach(async () => { const module = await Test.createTestingMo...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/graphql-code-first/e2e/pipes.spec.ts
integration/graphql-code-first/e2e/pipes.spec.ts
import { INestApplication, ValidationPipe } from '@nestjs/common'; import { Test } from '@nestjs/testing'; import * as request from 'supertest'; import { AppModule } from '../src/app.module'; describe('GraphQL Pipes', () => { let app: INestApplication; beforeEach(async () => { const module = await Test.create...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/module-utils/src/integration.module.ts
integration/module-utils/src/integration.module.ts
import { Inject, Module } from '@nestjs/common'; import { ConfigurableModuleClass, MODULE_OPTIONS_TOKEN, } from './integration.module-definition'; import { IntegrationModuleOptions } from './interfaces/integration-module-options.interface'; @Module({}) export class IntegrationModule extends ConfigurableModuleClass...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/module-utils/src/integration.module-definition.ts
integration/module-utils/src/integration.module-definition.ts
import { ConfigurableModuleBuilder } from '@nestjs/common'; import { IntegrationModuleOptions } from './interfaces/integration-module-options.interface'; export const { ConfigurableModuleClass, MODULE_OPTIONS_TOKEN } = new ConfigurableModuleBuilder<IntegrationModuleOptions>() .setClassMethodName('forRoot') ....
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/module-utils/src/interfaces/integration-module-options.interface.ts
integration/module-utils/src/interfaces/integration-module-options.interface.ts
export interface IntegrationModuleOptions { url: string; secure?: boolean; }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/integration/module-utils/test/integration-module.spec.ts
integration/module-utils/test/integration-module.spec.ts
import { Test } from '@nestjs/testing'; import { expect } from 'chai'; import { IntegrationModule } from '../src/integration.module'; describe('Module utils (ConfigurableModuleBuilder)', () => { it('should auto-generate "forRoot" method', async () => { const moduleRef = await Test.createTestingModule({ imp...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/tools/benchmarks/get-benchmarks.ts
tools/benchmarks/get-benchmarks.ts
import wrkPkg = require('wrk'); import { spawn } from 'child_process'; import { join } from 'path'; export interface Benchmarks { [lib: string]: WrkResults; } const wrk = (options: any) => new Promise<WrkResults>((resolve, reject) => wrkPkg(options, (err: any, result: any) => err ? reject(err) : resolve...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/tools/benchmarks/check-benchmarks.ts
tools/benchmarks/check-benchmarks.ts
import { codechecks, CodeChecksReport } from '@codechecks/client'; import * as bytes from 'bytes'; import { Benchmarks, getBenchmarks, LIBS } from './get-benchmarks'; const markdownTable = require('markdown-table'); const benchmarksKey = 'nest/performance-benchmark'; export default async function checkBenchmarks() { ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/tools/gulp/config.ts
tools/gulp/config.ts
import { getDirs } from './util/task-helpers'; // All paths are related to the base dir export const source = 'packages'; export const samplePath = 'sample'; export const packagePaths = getDirs(source);
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/tools/gulp/gulpfile.ts
tools/gulp/gulpfile.ts
import './tasks/clean'; import './tasks/copy-misc'; import './tasks/move'; import './tasks/samples';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/tools/gulp/tasks/move.ts
tools/gulp/tasks/move.ts
import { dest, src, task } from 'gulp'; import { join } from 'path'; import { samplePath } from '../config'; import { containsPackageJson, getDirs } from '../util/task-helpers'; const distFiles = src(['packages/**/*.js', 'packages/**/*.d.ts']); /** * Moves the compiled nest files into "node_module" folder. */ funct...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/tools/gulp/tasks/samples.ts
tools/gulp/tasks/samples.ts
import { blue, magenta } from 'ansis'; import * as childProcess from 'child_process'; import { execFile as execFileCb } from 'child_process'; import * as log from 'fancy-log'; import { task } from 'gulp'; import { resolve } from 'path'; import { promisify } from 'util'; import { samplePath } from '../config'; import { ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/tools/gulp/tasks/copy-misc.ts
tools/gulp/tasks/copy-misc.ts
import { task, src, dest } from 'gulp'; import { packagePaths } from '../config'; /** * Copies assets like Readme.md or LICENSE from the project base path * to all the packages. */ function copyMisc(): NodeJS.ReadWriteStream { const miscFiles = src(['Readme.md', 'LICENSE', '.npmignore']); // Since `dest()` does...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/tools/gulp/tasks/clean.ts
tools/gulp/tasks/clean.ts
import { task, src, series } from 'gulp'; import { source } from '../config'; import * as clean from 'gulp-clean'; import * as deleteEmpty from 'delete-empty'; /** * Cleans the build output assets from the packages folders */ function cleanOutput() { return src( [ `${source}/**/*.js`, `${source}/**...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/tools/gulp/util/task-helpers.ts
tools/gulp/util/task-helpers.ts
import { readdirSync, statSync } from 'fs'; import { join } from 'path'; function isDirectory(path: string) { return statSync(path).isDirectory(); } export function getFolders(dir: string) { return readdirSync(dir).filter(file => isDirectory(join(dir, file))); } export function getDirs(base: string) { return g...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/hooks/mocha-init-hook.ts
hooks/mocha-init-hook.ts
export const mochaHooks = (): Mocha.RootHookObject => { return { async beforeAll(this: Mocha.Context) { await import('reflect-metadata'); }, }; };
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/index.ts
packages/platform-express/index.ts
/* * Nest @platform-express * Copyright(c) 2017 - 2025 Kamil Mysliwiec * https://nestjs.com * MIT Licensed */ export * from './adapters'; export * from './interfaces'; export * from './multer';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/interfaces/nest-express-application.interface.ts
packages/platform-express/interfaces/nest-express-application.interface.ts
import { HttpServer, INestApplication } from '@nestjs/common'; import type { CorsOptions, CorsOptionsDelegate, } from '@nestjs/common/interfaces/external/cors-options.interface'; import type { Express } from 'express'; import type { Server as CoreHttpServer } from 'http'; import type { Server as CoreHttpsServer } f...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/interfaces/serve-static-options.interface.ts
packages/platform-express/interfaces/serve-static-options.interface.ts
/** * Interface describing options for serving static assets. * * @see [Serving static files in Express](https://expressjs.com/en/starter/static-files.html) * @see [Model-View-Controller](https://docs.nestjs.com/techniques/mvc) * * @publicApi */ export interface ServeStaticOptions { /** * Set how "dotfiles"...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/interfaces/nest-express-body-parser.interface.ts
packages/platform-express/interfaces/nest-express-body-parser.interface.ts
/** * Interface defining possible body parser types, to be used with `NestExpressApplication.useBodyParser()`. */ export type NestExpressBodyParserType = 'json' | 'urlencoded' | 'text' | 'raw';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/interfaces/index.ts
packages/platform-express/interfaces/index.ts
export * from './nest-express-application.interface'; export { NestExpressBodyParserOptions } from './nest-express-body-parser-options.interface'; export * from './nest-express-body-parser.interface';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/interfaces/nest-express-body-parser-options.interface.ts
packages/platform-express/interfaces/nest-express-body-parser-options.interface.ts
import type { IncomingMessage } from 'http'; /** * Type alias to keep compatibility with @types/body-parser * @see https://github.com/DefinitelyTyped/DefinitelyTyped/blob/dcd1673c4fa18a15ea8cd8ff8af7d563bb6dc8e6/types/body-parser/index.d.ts#L48-L66#L48-L66 * @publicApi */ export interface NestExpressBodyParserOpti...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/test/adapters/express-adapter.spec.ts
packages/platform-express/test/adapters/express-adapter.spec.ts
import { ExpressAdapter } from '@nestjs/platform-express'; import { expect } from 'chai'; import * as express from 'express'; import * as sinon from 'sinon'; describe('ExpressAdapter', () => { afterEach(() => sinon.restore()); describe('registerParserMiddleware', () => { it('should register the express built-...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/test/adapters/utils/get-body-parser-options.util.spec.ts
packages/platform-express/test/adapters/utils/get-body-parser-options.util.spec.ts
import { expect } from 'chai'; import { getBodyParserOptions } from '../../../adapters/utils/get-body-parser-options.util'; describe('getBodyParserOptions', () => { describe('when rawBody is false', () => { it('should return empty options when no options provided', () => { const result = getBodyParserOptio...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/test/multer/multer/multer.module.spec.ts
packages/platform-express/test/multer/multer/multer.module.spec.ts
import { FactoryProvider } from '@nestjs/common'; import { expect } from 'chai'; import * as sinon from 'sinon'; import { MULTER_MODULE_OPTIONS } from '../../../multer/files.constants'; import { MulterModule } from '../../../multer/multer.module'; describe('MulterModule', () => { describe('register', () => { it(...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/test/multer/multer/multer.utils.spec.ts
packages/platform-express/test/multer/multer/multer.utils.spec.ts
import { BadRequestException, HttpException, PayloadTooLargeException, } from '@nestjs/common'; import { expect } from 'chai'; import { busboyExceptions, multerExceptions, } from '../../../multer/multer/multer.constants'; import { transformException } from '../../../multer/multer/multer.utils'; describe('tra...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/test/multer/interceptors/any-files.interceptor.spec.ts
packages/platform-express/test/multer/interceptors/any-files.interceptor.spec.ts
import { CallHandler } from '@nestjs/common'; import { ExecutionContextHost } from '@nestjs/core/helpers/execution-context-host'; import { expect } from 'chai'; import { of } from 'rxjs'; import * as sinon from 'sinon'; import { AnyFilesInterceptor } from '../../../multer/interceptors/any-files.interceptor'; describe(...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/test/multer/interceptors/file-fields.interceptor.spec.ts
packages/platform-express/test/multer/interceptors/file-fields.interceptor.spec.ts
import { CallHandler } from '@nestjs/common'; import { ExecutionContextHost } from '@nestjs/core/helpers/execution-context-host'; import { expect } from 'chai'; import { of } from 'rxjs'; import * as sinon from 'sinon'; import { FileFieldsInterceptor } from '../../../multer/interceptors/file-fields.interceptor'; descr...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/test/multer/interceptors/file.interceptor.spec.ts
packages/platform-express/test/multer/interceptors/file.interceptor.spec.ts
import { CallHandler } from '@nestjs/common'; import { ExecutionContextHost } from '@nestjs/core/helpers/execution-context-host'; import { expect } from 'chai'; import { of } from 'rxjs'; import * as sinon from 'sinon'; import { FileInterceptor } from '../../../multer/interceptors/file.interceptor'; describe('FileInte...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/test/multer/interceptors/files.interceptor.spec.ts
packages/platform-express/test/multer/interceptors/files.interceptor.spec.ts
import { CallHandler } from '@nestjs/common'; import { ExecutionContextHost } from '@nestjs/core/helpers/execution-context-host'; import { expect } from 'chai'; import { of } from 'rxjs'; import * as sinon from 'sinon'; import { FilesInterceptor } from '../../../multer/interceptors/files.interceptor'; describe('FilesI...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/test/multer/interceptors/no-files.inteceptor.spec.ts
packages/platform-express/test/multer/interceptors/no-files.inteceptor.spec.ts
import { CallHandler } from '@nestjs/common'; import { ExecutionContextHost } from '@nestjs/core/helpers/execution-context-host'; import { expect } from 'chai'; import { of } from 'rxjs'; import * as sinon from 'sinon'; import { NoFilesInterceptor } from '../../../multer/interceptors/no-files.interceptor'; describe('N...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/adapters/express-adapter.ts
packages/platform-express/adapters/express-adapter.ts
import { HttpStatus, InternalServerErrorException, Logger, RequestMethod, StreamableFile, VERSION_NEUTRAL, VersioningOptions, VersioningType, } from '@nestjs/common'; import { VersionValue } from '@nestjs/common/interfaces'; import { CorsOptions, CorsOptionsDelegate, } from '@nestjs/common/interface...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/adapters/index.ts
packages/platform-express/adapters/index.ts
export * from './express-adapter';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/adapters/utils/get-body-parser-options.util.ts
packages/platform-express/adapters/utils/get-body-parser-options.util.ts
import type { RawBodyRequest } from '@nestjs/common'; import type { IncomingMessage, ServerResponse } from 'http'; import type { NestExpressBodyParserOptions } from '../../interfaces'; const rawBodyParser = ( req: RawBodyRequest<IncomingMessage>, _res: ServerResponse, buffer: Buffer, ) => { if (Buffer.isBuffer...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/multer/multer.module.ts
packages/platform-express/multer/multer.module.ts
import { DynamicModule, Module, Provider } from '@nestjs/common'; import { randomStringGenerator } from '@nestjs/common/utils/random-string-generator.util'; import { MULTER_MODULE_OPTIONS } from './files.constants'; import { MulterModuleAsyncOptions, MulterModuleOptions, MulterOptionsFactory, } from './interfaces...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/multer/files.constants.ts
packages/platform-express/multer/files.constants.ts
export const MULTER_MODULE_OPTIONS = 'MULTER_MODULE_OPTIONS';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/multer/multer.constants.ts
packages/platform-express/multer/multer.constants.ts
export const MULTER_MODULE_ID = 'MULTER_MODULE_ID';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/multer/index.ts
packages/platform-express/multer/index.ts
export * from './interceptors'; export * from './interfaces'; export * from './multer.module';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/multer/interfaces/multer-options.interface.ts
packages/platform-express/multer/interfaces/multer-options.interface.ts
/** * @see https://github.com/expressjs/multer * * @publicApi */ export interface MulterOptions { dest?: string | Function; /** The storage engine to use for uploaded files. */ storage?: any; /** * An object specifying the size limits of the following optional properties. This object is passed to busboy ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false