New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

logforth

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logforth - npm Package Compare versions

Comparing version
1.2.0
to
1.2.1
+3
-4
dist/transport/pretty.js

@@ -28,5 +28,4 @@ import path from "node:path";

const formatAttribute = (key, value, indent, formatErrors) => {
const indentChars = " ".repeat(indent);
const formattedValue = formatAttributeValue(value, formatErrors);
let result = indentChars;
let result = " ".repeat(indent);
result += chalk.gray(`${key}:`);

@@ -37,3 +36,3 @@ if (!formattedValue.includes("\n")) {

else {
result += `\n${formattedValue.replace(/^(?!$)/gm, `${indentChars}${indentChars}`)}`;
result += `\n${formattedValue.replace(/^(?!$)/gm, " ".repeat(indent + 2))}`;
}

@@ -52,3 +51,3 @@ return result;

for (const [key, value] of Object.entries(rest)) {
result += `\n${formatAttribute(key, value, 4, false)}`;
result += `\n${formatAttribute(key, value, 2, false)}`;
}

@@ -55,0 +54,0 @@ return result;

{
"name": "logforth",
"version": "1.2.0",
"version": "1.2.1",
"description": "Simple logging framework for NodeJS",

@@ -5,0 +5,0 @@ "type": "module",