Skip to content

Commit 66f53bf

Browse files
committed
Output <anonymous> when methodName is null #65
1 parent d4bcdf2 commit 66f53bf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/LoggerWithoutCallSite.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,8 @@ export class LoggerWithoutCallSite {
560560
? ` ${logObject.typeName}.${logObject.methodName}`
561561
: logObject.functionName != null
562562
? ` ${logObject.functionName}`
563+
: logObject.typeName !== null
564+
? `${logObject.typeName}.<anonymous>`
563565
: ""
564566
: "";
565567

tsconfig.types.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"module": "esnext",
5-
"target": "es2015",
5+
"target": "es2019",
66
"removeComments": false,
77
"declaration": true,
88
"declarationMap": true,
99
"declarationDir": "dist/types",
1010
"emitDeclarationOnly": true
1111
}
12-
}
12+
}

0 commit comments

Comments
 (0)