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.1.1 to 1.2.0

2

package.json
{
"name": "logd-console-output",
"version": "1.1.1",
"version": "1.2.0",
"description": "console output for logd",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -74,23 +74,26 @@ 'use strict';

if (Array.isArray(structuredFrames)) {
// remove the first frame if it contains the error message
if (structuredFrames.length && structuredFrames[0].text && structuredFrames[0].text.includes(value.message)) {
structuredFrames = structuredFrames.slice(1);
}
// remove the first frame if it contains the error message
if (structuredFrames.length && structuredFrames[0].text && structuredFrames[0].text.includes(value.message)) {
structuredFrames = structuredFrames.slice(1);
}
// print the frames
structuredFrames.forEach((frame) => {
context.newLine();
context.print(this.decorate(context, this.pad(this.truncateLeft(frame.fileName || 'n/a')), 'path'));
if (frame.lineNumber) context.print(this.decorate(context, this.pad(`${frame.lineNumber}`, 5), 'line'));
else context.print(' '.repeat(5));
// print the frames
structuredFrames.forEach((frame) => {
context.newLine();
context.print(this.decorate(context, this.pad(this.truncateLeft(frame.fileName || 'n/a')), 'path'));
if (frame.lineNumber) context.print(this.decorate(context, this.pad(`${frame.lineNumber}`, 5), 'line'));
else context.print(' '.repeat(5));
if (frame.character) context.print(this.decorate(context, this.pad(`:${frame.character} `, 5, true), 'decoration'));
else context.print(' '.repeat(5));
if (frame.character) context.print(this.decorate(context, this.pad(`:${frame.character} `, 5, true), 'decoration'));
else context.print(' '.repeat(5));
context.print(this.decorate(context, (frame.function || frame.message || '').trim(), 'function'));
if (frame.method) context.print(this.decorate(context, ` (${frame.method})`, 'decoration'));
});
context.print(this.decorate(context, (frame.function || frame.message || '').trim(), 'function'));
if (frame.method) context.print(this.decorate(context, ` (${frame.method})`, 'decoration'));
});
} else {
context.print(this.decorate(context, (structuredFrames), 'function'));
}
}

@@ -97,0 +100,0 @@

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