cross-project-diagnostics
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -12,2 +12,3 @@ export declare enum Level { | ||
export declare type DiagnosticRecord = { | ||
time: string; | ||
module: string; | ||
@@ -14,0 +15,0 @@ requestId: string; |
@@ -95,8 +95,13 @@ "use strict"; | ||
const { funName, message, attachment } = data; | ||
return { | ||
const result = { | ||
time: (new Date()).toISOString(), | ||
module: this.diagnosticDescriptor.module, | ||
version: this.diagnosticDescriptor.version, | ||
requestId: this.diagnosticDescriptor.requestId, | ||
funName, message, level: definitions_1.getLabelByLevel(level), attachment | ||
funName, message, level: definitions_1.getLabelByLevel(level) | ||
}; | ||
if (attachment) { | ||
result.attachment = attachment; | ||
} | ||
return result; | ||
} | ||
@@ -103,0 +108,0 @@ } |
{ | ||
"name": "cross-project-diagnostics", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Gapminder Cross-project Diagnostics functionality", | ||
@@ -5,0 +5,0 @@ "author": "Vyacheslav Chub<vyacheslav.chub@valor-software.com>", |
60248
473