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

pretty-format

Package Overview
Dependencies
Maintainers
2
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pretty-format - npm Package Compare versions

Comparing version 3.5.3 to 3.6.0

8

index.js

@@ -205,6 +205,3 @@ 'use strict';

function printComplexValue(val, indent, prevIndent, refs, maxDepth, currentDepth, plugins) {
const toStringed = toString.call(val);
refs = refs.slice();
if (refs.indexOf(val) > -1) {

@@ -220,2 +217,7 @@ return '[Circular]';

if (!hitMaxDepth && val.toJSON && typeof val.toJSON === 'function') {
return print(val.toJSON(), indent, prevIndent, refs, maxDepth, currentDepth, plugins);
}
const toStringed = toString.call(val);
if (toStringed === '[object Arguments]') {

@@ -222,0 +224,0 @@ return hitMaxDepth ? '[Arguments]' : printArguments(val, indent, prevIndent, refs, maxDepth, currentDepth, plugins);

{
"name": "pretty-format",
"version": "3.5.3",
"version": "3.6.0",
"description": "Stringify any JavaScript value.",

@@ -5,0 +5,0 @@ "license": "MIT",

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