Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prettyjson

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettyjson - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

8

lib/prettyjson.js

@@ -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": [

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