logd-console-output
Advanced tools
Comparing version 1.2.1 to 1.3.0
{ | ||
"name": "logd-console-output", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "console output for logd", | ||
@@ -17,3 +17,3 @@ "main": "index.js", | ||
], | ||
"author": "Michael van der Weg <michael@vanderweg.ch>", | ||
"author": "Lina van der Weg <lina@vanderweg.ch>", | ||
"license": "MIT", | ||
@@ -20,0 +20,0 @@ "bugs": { |
@@ -84,2 +84,3 @@ 'use strict'; | ||
color, | ||
moduleName, | ||
}) { | ||
@@ -94,2 +95,3 @@ if (options) context.setOptions(options); | ||
options, | ||
moduleName, | ||
}); | ||
@@ -96,0 +98,0 @@ |
@@ -94,2 +94,3 @@ 'use strict'; | ||
options, | ||
moduleName, | ||
}) { | ||
@@ -104,2 +105,10 @@ if (callsite) { | ||
if (moduleName) { | ||
this.renderers.get('moduleName').render({ | ||
context: this, | ||
value: moduleName, | ||
}); | ||
} | ||
values.forEach((value) => { | ||
@@ -106,0 +115,0 @@ this.renderValue({ |
@@ -23,4 +23,2 @@ 'use strict'; | ||
value, | ||
label, | ||
decoration, | ||
}) { | ||
@@ -27,0 +25,0 @@ context.print(this.decorate(context, this.getTimeSignature(value.date)+' > ', 'time')); |
@@ -8,2 +8,9 @@ 'use strict'; | ||
renderers: { | ||
moduleName: { | ||
text: { | ||
color: 'magenta', | ||
bold: true, | ||
dim: true, | ||
} | ||
}, | ||
string: { | ||
@@ -10,0 +17,0 @@ text: { |
@@ -8,2 +8,9 @@ 'use strict'; | ||
renderers: { | ||
moduleName: { | ||
text: { | ||
color: 'magenta', | ||
bold: true, | ||
dim: true, | ||
} | ||
}, | ||
string: { | ||
@@ -10,0 +17,0 @@ text: { |
@@ -138,5 +138,6 @@ 'use strict'; | ||
log.log({ | ||
values: [`a pretty long string that should be trunctaed, but does it? I'm not sure, or am i? i am! So, i'm still in the airplane and someone keep sfarting. Thanks obama! this one gets rendered!`], | ||
values: [`a pretty long string that should be trunctaed, but does it? I'm not sure, or am i? i am! So, i'm still in the airplane and someone keeps farting. Thanks obama! this one gets rendered!`], | ||
color: 'cyan.bold.strikethrough.underline.bgBlue', | ||
callsite, | ||
moduleName: 'my-module', | ||
options: { | ||
@@ -143,0 +144,0 @@ truncate: 1000 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62636
37
1796
3