@jsenv/humanize
Advanced tools
Comparing version 1.2.1 to 1.2.3
@@ -32,3 +32,3 @@ const createDetailedMessage = (message, details = {}) => { | ||
} | ||
if (text.trim() === "") { | ||
if (typeof text === "string" && text.trim() === "") { | ||
// cannot set color of blank chars | ||
@@ -35,0 +35,0 @@ return text; |
@@ -223,3 +223,3 @@ import process$1 from "node:process"; | ||
} | ||
if (text.trim() === "") { | ||
if (typeof text === "string" && text.trim() === "") { | ||
// cannot set color of blank chars | ||
@@ -226,0 +226,0 @@ return text; |
{ | ||
"name": "@jsenv/humanize", | ||
"version": "1.2.1", | ||
"version": "1.2.3", | ||
"description": "Generate messages meant to read by humans", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -23,3 +23,3 @@ // https://github.com/Marak/colors.js/blob/master/lib/styles.js | ||
} | ||
if (text.trim() === "") { | ||
if (typeof text === "string" && text.trim() === "") { | ||
// cannot set color of blank chars | ||
@@ -26,0 +26,0 @@ return text; |
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
164740
208