diff --git a/meta.json b/meta.json index 242b95b..7a7a732 100644 --- a/meta.json +++ b/meta.json @@ -1,6 +1,6 @@ { "name": "logging", - "version": "3.0.6", + "version": "3.0.8", "description": "", "author": "Fabian Stamm ", "contributors": [], diff --git a/package.json b/package.json index 664a8b2..78e4796 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "@hibas123/logging", - "version": "3.0.6", + "version": "3.0.8", "description": "", "main": "out/index.js", "types": "out/index.d.ts", "module": "esm/index.js", "scripts": { - "prepublish": "npm run build", + "prepublishOnly": "npm run build", "build": "tsc && tsc -p tsconfig.esm.json", "test": "tsc && node out/test.js", "postpublish": "denreg publish" diff --git a/src/base.ts b/src/base.ts index 19efa33..dc0de77 100644 --- a/src/base.ts +++ b/src/base.ts @@ -170,7 +170,10 @@ export class LoggingBase extends LoggingInterface { } getChild(name: string) { - return new LoggingBase.DecoupledLogging([this.names, name], this.#lg); + return new LoggingBase.DecoupledLogging( + [...this.names, name], + this.#lg + ); } };