4.1.0 • Published 7 months ago

@qiwi/nestjs-enterprise-mdc v4.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
7 months ago

@qiwi/nestjs-enterprise-mdc

Nestjs module for working with continuation-local storage.

Installation

yarn add @qiwi/nestjs-enterprise-mdc

Configuration

import { MdcModule } from '@qiwi/nestjs-enterprise-mdc'

@Module({
  imports: [
    MdcModule,
    // and so on
  ],
  controllers: [],
  providers: [],
})
export class AppModule {}

Usage

// main.ts
import { mdc, logger as log, clscxt } from '@qiwi/nestjs-enterprise-mdc'

async function bootstrap() {
  const app = await NestFactory.create(AppModule)
 //...
  app
    .use(clscxt())
    .use(mdc())
    .use(log({ logger }))
 //...

Api

mdc, validator, logger, context as clscxt

see @qiwi/mware

Docs

3.0.0

9 months ago

4.1.0

7 months ago

4.0.1

8 months ago

4.0.0

8 months ago

4.0.2

8 months ago

2.0.5

12 months ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

2 years ago

1.4.1

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.4.0

2 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago