prettyjson
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -16,2 +16,3 @@ 'use strict'; | ||
input === null || | ||
input === undefined || | ||
input instanceof Date | ||
@@ -52,3 +53,3 @@ ) { | ||
} | ||
if (input === null) { | ||
if (input === null || input === undefined) { | ||
return colors.grey(sInput); | ||
@@ -163,7 +164,2 @@ } | ||
// Skip `undefined`, it's not a valid JSON value. | ||
if (data[i] === undefined) { | ||
return; | ||
} | ||
// If the value is serializable, render it in the same line | ||
@@ -170,0 +166,0 @@ if (isSerializable(data[i], false, options)) { |
@@ -5,3 +5,3 @@ { | ||
"description": "Package for formatting JSON data in a coloured YAML-style, perfect for CLI output", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"homepage": "http://rafeca.com/prettyjson", | ||
@@ -8,0 +8,0 @@ "keywords": [ |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
0
19093
11
255