Skip to content

Commit

Permalink
change readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Moreno committed Oct 19, 2023
1 parent ea0a3ca commit 412362e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ LOG_FILE_ENABLED=false
Add the NestResponseLogger service globally in the `main.ts` file:

```typescript
import { NestFactory } from '@nestjs/core';
import { NestResponseLoggerService } from '@app/nest-response-logger';
import { NestResponseLoggerService } from '@mariomorenodev/nest-response-logger';

import { AppModule } from './app.module';

Expand All @@ -44,16 +43,11 @@ bootstrap();
Add the interceptor globally in the `app.module.ts` file:

```typescript
import { Module } from '@nestjs/common';
import { APP_INTERCEPTOR } from '@nestjs/core';
import { LoggerInterceptor } from '@app/nest-response-logger';
import { NestResponseLoggerModule } from '@app/nest-response-logger';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { LoggerInterceptor } from '@mariomorenodev/nest-response-logger';
import { NestResponseLoggerModule } from '@mariomorenodev/nest-response-logger';

@Module({
imports: [NestResponseLoggerModule],
controllers: [AppController],
providers: [
AppService,
{
Expand All @@ -62,7 +56,6 @@ import { AppService } from './app.service';
},
],
})
export class AppModule {}
```

## License
Expand Down
2 changes: 1 addition & 1 deletion libs/nest-response-logger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mariomorenodev/nest-response-logger",
"version": "1.1.0",
"version": "1.1.1",
"description": "Logger global interceptor library for Nest apps",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "response-logger-library",
"version": "1.1.0",
"version": "1.1.1",
"description": "",
"author": "",
"private": true,
Expand Down

0 comments on commit 412362e

Please sign in to comment.