From feed4626e6cb6b5eab0a9bad3a48be5fbee3a61a Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Sun, 9 May 2021 22:33:47 +0200 Subject: [PATCH] Fix bugf --- meta.json | 2 +- package.json | 4 ++-- src/base.ts | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) 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 + ); } };