From 1ae56ac469e4393ec4b55a6e8acbbce6bf83ef22 Mon Sep 17 00:00:00 2001 From: Minh Ngo Date: Thu, 20 Jun 2024 09:02:33 +0700 Subject: [PATCH] feat: rename typo --- libs/interceptors/response.interceptor.ts | 2 +- libs/types/config-option.type.ts | 2 +- package-lock.json | 2 +- package.json | 2 +- src/app.module.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/interceptors/response.interceptor.ts b/libs/interceptors/response.interceptor.ts index f6bfe5e..edf456b 100644 --- a/libs/interceptors/response.interceptor.ts +++ b/libs/interceptors/response.interceptor.ts @@ -35,7 +35,7 @@ export class ResponseInterceptor implements NestInterceptor { map((data) => { const res = this.handleResponse(context, data); - return this.excludeByKeys(res, this.configOption?.excludeKeys || []); + return this.excludeByKeys(res, this.configOption?.excludedKeys || []); }) ); } diff --git a/libs/types/config-option.type.ts b/libs/types/config-option.type.ts index 656482b..deab8de 100644 --- a/libs/types/config-option.type.ts +++ b/libs/types/config-option.type.ts @@ -1,3 +1,3 @@ export type ConfigOption = { - excludeKeys?: string[]; + excludedKeys?: string[]; }; diff --git a/package-lock.json b/package-lock.json index 4a671af..4b362b0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@hodfords/nestjs-response", - "version": "10.1.0", + "version": "10.1.1", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 41059a6..4a588cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hodfords/nestjs-response", - "version": "10.1.0", + "version": "10.1.1", "description": "", "author": "", "license": "UNLICENSED", diff --git a/src/app.module.ts b/src/app.module.ts index e21189b..071726c 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -3,7 +3,7 @@ import { AppController } from './app.controller'; import { ResponseModule } from '../libs/modules/response.module'; const nestjsResponseConfig = ResponseModule.forRoot({ - excludeKeys: ['secret'] + excludedKeys: ['secret'] }); @Module({