From ad27ddef608f828fa0c21cb8c3180870dd43ae58 Mon Sep 17 00:00:00 2001 From: Papooch Date: Sun, 24 Oct 2021 19:00:13 +0200 Subject: [PATCH] fix: remove import from barrel --- src/lib/cls.interceptor.ts | 3 +-- src/lib/cls.middleware.ts | 2 +- src/lib/cls.module.ts | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib/cls.interceptor.ts b/src/lib/cls.interceptor.ts index 2380daa8..09149896 100644 --- a/src/lib/cls.interceptor.ts +++ b/src/lib/cls.interceptor.ts @@ -6,9 +6,8 @@ import { NestInterceptor, } from '@nestjs/common'; import { Observable } from 'rxjs'; -import { CLS_ID } from '..'; import { ClsServiceManager } from './cls-service-manager'; -import { CLS_INTERCEPTOR_OPTIONS } from './cls.constants'; +import { CLS_ID, CLS_INTERCEPTOR_OPTIONS } from './cls.constants'; import { ClsInterceptorOptions } from './cls.interfaces'; @Injectable() diff --git a/src/lib/cls.middleware.ts b/src/lib/cls.middleware.ts index f04aafa7..86a2ff35 100644 --- a/src/lib/cls.middleware.ts +++ b/src/lib/cls.middleware.ts @@ -1,5 +1,5 @@ import { Inject, Injectable, NestMiddleware } from '@nestjs/common'; -import { ClsServiceManager } from '..'; +import { ClsServiceManager } from './cls-service-manager'; import { CLS_ID, CLS_MIDDLEWARE_OPTIONS } from './cls.constants'; import { CLS_REQ, CLS_RES } from './cls.constants'; import { ClsMiddlewareOptions } from './cls.interfaces'; diff --git a/src/lib/cls.module.ts b/src/lib/cls.module.ts index 913b30ef..43b022c7 100644 --- a/src/lib/cls.module.ts +++ b/src/lib/cls.module.ts @@ -12,7 +12,6 @@ import { HttpAdapterHost, ModuleRef, } from '@nestjs/core'; -import { ClsInterceptor } from '..'; import { ClsServiceManager, getClsServiceToken } from './cls-service-manager'; import { CLS_GUARD_OPTIONS, @@ -20,6 +19,7 @@ import { CLS_MIDDLEWARE_OPTIONS, } from './cls.constants'; import { ClsGuard } from './cls.guard'; +import { ClsInterceptor } from './cls.interceptor'; import { ClsGuardOptions, ClsInterceptorOptions,