From a9180878d5e063e4a10c310f1c79b4c8e2516dc9 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 4 Nov 2018 18:23:41 +0100 Subject: [PATCH] fix(core): update --- package-lock.json | 6 +++--- package.json | 2 +- test/test.ts | 1 + ts/sl.destlocal.classes.destinationlocal.ts | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 205fd77..e61a48d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -159,9 +159,9 @@ } }, "@pushrocks/smartlog-interfaces": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@pushrocks/smartlog-interfaces/-/smartlog-interfaces-2.0.1.tgz", - "integrity": "sha512-c9onE52z/5fGX5uEvaI/rXbcC6n7PkLrNjehRM+6JsK7HIbdAzrgY1PGrqUfW0a03hSe03mFcggORID+fQI4tA==" + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@pushrocks/smartlog-interfaces/-/smartlog-interfaces-2.0.2.tgz", + "integrity": "sha512-kJNQ/6kfljgtwebhoiD8WtRWfdVhOoE1nr8FoUJLlOjLphU8SPa42Hg6/yPkSTaGxWwDhk6PkMJl64O7HNjRUQ==" }, "@pushrocks/smartpath": { "version": "4.0.1", diff --git a/package.json b/package.json index f7efad1..294e2fa 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "homepage": "https://gitlab.com/pushrocks/beautylog", "dependencies": { "@pushrocks/consolecolor": "^2.0.1", - "@pushrocks/smartlog-interfaces": "^2.0.1", + "@pushrocks/smartlog-interfaces": "^2.0.2", "@pushrocks/smartpromise": "^2.0.5", "ora": "^3.0.0", "smartenv": "^4.0.3" diff --git a/test/test.ts b/test/test.ts index fe7eec8..83fab67 100644 --- a/test/test.ts +++ b/test/test.ts @@ -22,6 +22,7 @@ tap.test('should create a valid instance of DestinationLocal', async () => { tap.test('.log(message) should print a blue Dir message', async () => { testLocalInstance.handleLog({ + timestamp: Date.now(), type: 'log', level: 'info', context: testLogContext, diff --git a/ts/sl.destlocal.classes.destinationlocal.ts b/ts/sl.destlocal.classes.destinationlocal.ts index 0d9d846..a13a287 100644 --- a/ts/sl.destlocal.classes.destinationlocal.ts +++ b/ts/sl.destlocal.classes.destinationlocal.ts @@ -47,6 +47,7 @@ export class DestinationLocal implements ILogDestination { this.sameMessageCounter = 0; this.previousMessage = logTextArg; this.logToConsole({ + timestamp: Date.now(), type: 'log', level: 'info', context: {