1.0.5 • Published 10 months ago

@orderlycode/promise v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

nest-tool

nestjs 개발시 도움될만한 것들을 모아둠

세팅법

pnpm i @orderlycode/nest-tools

  • AppModule 안에 CommonModule을 등록한다.
@Module({
  imports: [
    // ...
    CommonModule
  ],
  // ...
})
export class AppModule {
}

// 같은 Reqeust내에서 context를 추가하고 싶다면 아래와 같이 사용한다.
// 이 경우, Logger에서 항상 해당 내용을 추가하며, 다른 곳에서 request scope 전역변수로 쓸 수 있다.
Context.set("test", 1)
Context.get("test") // 1
  1. App 생성시 logger에 new NestLoggerService()를 등록한다.
const app = await NestFactory.create(AppModule, {
  logger: new NestLoggerService(),
});
1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.0.115

11 months ago

0.0.114

11 months ago

0.0.113

11 months ago