From 66f53bf50569c5800dd1de2309917523e72265c3 Mon Sep 17 00:00:00 2001 From: Eugene Terehov Date: Tue, 24 Nov 2020 17:44:46 +0200 Subject: [PATCH] Output when methodName is null #65 --- src/LoggerWithoutCallSite.ts | 2 ++ tsconfig.types.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/LoggerWithoutCallSite.ts b/src/LoggerWithoutCallSite.ts index 9dc16ae6..5586de62 100644 --- a/src/LoggerWithoutCallSite.ts +++ b/src/LoggerWithoutCallSite.ts @@ -560,6 +560,8 @@ export class LoggerWithoutCallSite { ? ` ${logObject.typeName}.${logObject.methodName}` : logObject.functionName != null ? ` ${logObject.functionName}` + : logObject.typeName !== null + ? `${logObject.typeName}.` : "" : ""; diff --git a/tsconfig.types.json b/tsconfig.types.json index 9a4fe697..7023971a 100644 --- a/tsconfig.types.json +++ b/tsconfig.types.json @@ -2,11 +2,11 @@ "extends": "./tsconfig.json", "compilerOptions": { "module": "esnext", - "target": "es2015", + "target": "es2019", "removeComments": false, "declaration": true, "declarationMap": true, "declarationDir": "dist/types", "emitDeclarationOnly": true } -} \ No newline at end of file +}