From a76d47ac8e3477ba4018b3db976aff998765b6df Mon Sep 17 00:00:00 2001 From: Shinwoo PARK Date: Fri, 17 Nov 2023 17:33:32 +0900 Subject: [PATCH] refactor: specify index exports --- src/index.ts | 6 +++--- src/logged.ts | 2 +- src/logger.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/index.ts b/src/index.ts index 3742c7b..19208e4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,3 @@ -export * from './logged'; -export * from './logger'; -export * from './reflected'; \ No newline at end of file +export {LoggedRoute, LoggedFunction} from './logged'; +export {ScopedLogger} from './logger'; +export {LoggedParamReflectData, InjectLogger, LoggedParam} from './reflected'; \ No newline at end of file diff --git a/src/logged.ts b/src/logged.ts index 6328d7d..52c9b78 100644 --- a/src/logged.ts +++ b/src/logged.ts @@ -1,5 +1,5 @@ import {Logger} from "@nestjs/common"; -import ScopedLogger from "./logger"; +import {ScopedLogger} from "./logger"; import {LoggedParamReflectData} from "./reflected"; import {loggedParam, scopedLogger} from "./reflected"; import objectContainedLogged from "./functions"; diff --git a/src/logger.ts b/src/logger.ts index 5692cc0..29774e0 100644 --- a/src/logger.ts +++ b/src/logger.ts @@ -2,7 +2,7 @@ import {Logger} from "@nestjs/common"; type LogLevel = 'debug' | 'log' | 'warn' | 'verbose' | 'error' | 'fatal'; -export default class ScopedLogger extends Logger { +export class ScopedLogger extends Logger { constructor( private logger: Logger, private scope: string,