diff --git a/README.md b/README.md index 5310b46..5d3ade7 100644 --- a/README.md +++ b/README.md @@ -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'; @@ -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, { @@ -62,7 +56,6 @@ import { AppService } from './app.service'; }, ], }) -export class AppModule {} ``` ## License diff --git a/libs/nest-response-logger/package.json b/libs/nest-response-logger/package.json index 9e58010..23bfad5 100644 --- a/libs/nest-response-logger/package.json +++ b/libs/nest-response-logger/package.json @@ -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", diff --git a/package.json b/package.json index 4c59784..a426587 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "response-logger-library", - "version": "1.1.0", + "version": "1.1.1", "description": "", "author": "", "private": true,