1
0
mirror of https://git.stamm.me/OpenServer/NodeLogging.git synced 2024-11-21 17:49:23 +00:00

Updating dependencies and increasing support of new adapterset architecture

This commit is contained in:
Fabian Stamm 2020-04-11 17:41:28 +02:00
parent 6f002456f6
commit 558ddad800
3 changed files with 12 additions and 6 deletions

8
package-lock.json generated
View File

@ -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"
}

View File

@ -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"
}
}

View File

@ -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();