@@ -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; |
+1
-1
| { | ||
| "name": "logforth", | ||
| "version": "1.2.0", | ||
| "version": "1.2.1", | ||
| "description": "Simple logging framework for NodeJS", | ||
@@ -5,0 +5,0 @@ "type": "module", |
15785
-0.28%298
-0.33%