From 558ddad8005292d767d826eea29b6e084d2d75c5 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Sat, 11 Apr 2020 17:41:28 +0200 Subject: [PATCH] Updating dependencies and increasing support of new adapterset architecture --- package-lock.json | 8 ++++---- package.json | 4 ++-- src/index.ts | 6 ++++++ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7b75a9f..f11e71b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,13 @@ { "name": "@hibas123/nodelogging", - "version": "2.3.2", + "version": "2.3.4", "lockfileVersion": 1, "requires": true, "dependencies": { "@hibas123/logging": { - "version": "2.3.4", - "resolved": "https://npm.hibas123.de/@hibas123%2flogging/-/logging-2.3.4.tgz", - "integrity": "sha512-0XZlQ+hIY38KzJvYv3Zz/3lM9oUVClJQN4bRNdWL+XCxHexY7jEtG5Fe9v+8KEmIFoVLWixD5DdozLxbQgkgPQ==", + "version": "2.3.5", + "resolved": "https://npm.hibas123.de/@hibas123%2flogging/-/logging-2.3.5.tgz", + "integrity": "sha512-fVy1A/CwarXeS07OYOdxGsnSibefvS0QS5j/LVw7ceoy0tet6hXnL9BUGQwBscNlr71sEHtnSVeQm06TKdgEKA==", "requires": { "@hibas123/utils": "^2.2.3" } diff --git a/package.json b/package.json index c381bfb..f3cd0bb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/nodelogging", - "version": "2.3.4", + "version": "2.3.5", "description": "", "main": "out/index.js", "types": "out/index.d.ts", @@ -32,7 +32,7 @@ "typescript": "^3.8.3" }, "dependencies": { - "@hibas123/logging": "^2.3.4", + "@hibas123/logging": "^2.3.5", "@hibas123/utils": "^2.2.3" } } diff --git a/src/index.ts b/src/index.ts index 2382c69..58aedbc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -47,6 +47,12 @@ export class LoggingBase extends LoggingBaseOriginal { } } + protected postGetChild(child: LoggingBase) { + child.getCurrentTime = this.getCurrentTime.bind(child); + child.getTimeDiff = this.getTimeDiff.bind(child); + child.postGetChild = this.postGetChild.bind(child); + } + protected getCurrentTime() { if (process.hrtime.bigint) { return process.hrtime.bigint();