pretty-format
Advanced tools
Comparing version 3.5.3 to 3.6.0
@@ -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", |
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
14771
302