From 412362ef5ba32292343cc16ce9607591e25183b1 Mon Sep 17 00:00:00 2001 From: Mario Moreno Date: Wed, 18 Oct 2023 22:01:53 -0300 Subject: [PATCH] change readme --- README.md | 13 +++---------- libs/nest-response-logger/package.json | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 12 deletions(-) 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,