should-format
Advanced tools
Comparing version 0.0.1 to 0.0.2
11
index.js
@@ -73,4 +73,6 @@ var getType = require('should-type'); | ||
var keys = opts.keys(value); | ||
var numericProps = []; | ||
var len = 0; | ||
opts.seen.push(value); | ||
var props = keys.map(function(prop) { | ||
@@ -94,2 +96,6 @@ var desc; | ||
opts.seen.pop(); | ||
if(props.length === 0) return '[]'; | ||
if(len <= opts.maxLineLength) { | ||
@@ -118,2 +124,5 @@ return '[ ' + props.join(opts.propSep + ' ') + ' ]'; | ||
opts.seen.pop(); | ||
if(props.length === 0) return '{}'; | ||
if(len <= opts.maxLineLength) { | ||
@@ -120,0 +129,0 @@ return '{ ' + (prefix ? prefix + ' ' : '') + props.join(opts.propSep + ' ') + ' }'; |
{ | ||
"name": "should-format", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Formatting of objects for should.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
227079
8027