@cuscal1/lib-nestjs-common
Advanced tools
Comparing version 0.0.33 to 0.0.34
@@ -20,3 +20,3 @@ "use strict"; | ||
this.logger = logger; | ||
this.EXCLUDED_PATHS = ['healths']; | ||
this.EXCLUDED_PATHS = ['/health']; | ||
this.logger.setContext(ApiLoggingInterceptor_1.name); | ||
@@ -45,3 +45,3 @@ } | ||
isPathExcludedFromLogging(path) { | ||
return !!this.EXCLUDED_PATHS.filter(excludedPath => path.endsWith(excludedPath)); | ||
return this.EXCLUDED_PATHS.filter(excludedPath => path.endsWith(excludedPath)).length > 0; | ||
} | ||
@@ -48,0 +48,0 @@ }; |
{ | ||
"name": "@cuscal1/lib-nestjs-common", | ||
"version": "0.0.33", | ||
"version": "0.0.34", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Cuscal", |
@@ -10,3 +10,3 @@ import { CallHandler, ExecutionContext, Injectable, NestInterceptor, Logger } from '@nestjs/common'; | ||
private readonly EXCLUDED_PATHS: any = ['healths']; | ||
private readonly EXCLUDED_PATHS: any = ['/health']; | ||
@@ -42,4 +42,4 @@ constructor(private readonly logger: CuscalLogger) { | ||
isPathExcludedFromLogging(path): boolean { | ||
return !!this.EXCLUDED_PATHS.filter(excludedPath => path.endsWith(excludedPath)); | ||
return this.EXCLUDED_PATHS.filter(excludedPath => path.endsWith(excludedPath)).length > 0; | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
238391