This commit is contained in:
Fabian Stamm 2021-05-09 22:33:47 +02:00
parent 9d4e521619
commit feed4626e6
3 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "logging", "name": "logging",
"version": "3.0.6", "version": "3.0.8",
"description": "", "description": "",
"author": "Fabian Stamm <dev@fabianstamm.de>", "author": "Fabian Stamm <dev@fabianstamm.de>",
"contributors": [], "contributors": [],

View File

@ -1,12 +1,12 @@
{ {
"name": "@hibas123/logging", "name": "@hibas123/logging",
"version": "3.0.6", "version": "3.0.8",
"description": "", "description": "",
"main": "out/index.js", "main": "out/index.js",
"types": "out/index.d.ts", "types": "out/index.d.ts",
"module": "esm/index.js", "module": "esm/index.js",
"scripts": { "scripts": {
"prepublish": "npm run build", "prepublishOnly": "npm run build",
"build": "tsc && tsc -p tsconfig.esm.json", "build": "tsc && tsc -p tsconfig.esm.json",
"test": "tsc && node out/test.js", "test": "tsc && node out/test.js",
"postpublish": "denreg publish" "postpublish": "denreg publish"

View File

@ -170,7 +170,10 @@ export class LoggingBase extends LoggingInterface {
} }
getChild(name: string) { getChild(name: string) {
return new LoggingBase.DecoupledLogging([this.names, name], this.#lg); return new LoggingBase.DecoupledLogging(
[...this.names, name],
this.#lg
);
} }
}; };