Comparing version 3.0.3 to 3.0.4
@@ -162,7 +162,8 @@ const Format = require('./format.js') | ||
spaceIfNoPref (s) { | ||
return this.id ? s : this.spaceIfNoKey(s) | ||
return this.id ? this.prefix(s, ' ').slice(1) : this.spaceIfNoKey(s) | ||
} | ||
spaceIfNoKey (s) { | ||
return this.options.hasOwnProperty('key') && | ||
!(this.parent.isArray() || this.parent.isSet()) ? s : this.prefix(s, ' ') | ||
!(this.parent.isArray() || this.parent.isSet()) | ||
? this.prefix(s, ' ').slice(1) : this.prefix(s, ' ') | ||
} | ||
@@ -190,2 +191,3 @@ printKey (k) { | ||
} | ||
arrayEmpty () { return this.spaceIfNoPref(super.arrayEmpty()) } | ||
@@ -192,0 +194,0 @@ arrayHead () { return this.spaceIfNoPref(super.arrayHead()) } |
{ | ||
"name": "tcompare", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "A comprehensive comparison library, for use in test frameworks", | ||
@@ -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
39772
1142