Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

logd-console-output

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logd-console-output - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

src/renderer/moduleName.js

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc