Comparing version 4.0.0 to 4.0.1
@@ -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 : ' ' + s | ||
!(this.parent.isArray() || this.parent.isSet()) | ||
? this.prefix(s, ' ').slice(1) : this.prefix(s, ' ') | ||
} | ||
@@ -193,15 +194,15 @@ printKey (k) { | ||
arrayHead () { return this.spaceIfNoPref(super.arrayHead()) } | ||
arrayTail () { return ' ' + super.arrayTail() } | ||
arrayTail () { return this.prefix(super.arrayTail(), ' ') } | ||
setEmpty () { return this.spaceIfNoPref(super.setEmpty()) } | ||
setHead () { return this.spaceIfNoPref(super.setHead()) } | ||
setTail () { return ' ' + super.setTail() } | ||
setTail () { return this.prefix(super.setTail(), ' ') } | ||
mapEmpty () { return this.spaceIfNoPref(super.mapEmpty()) } | ||
mapHead () { return this.spaceIfNoPref(super.mapHead()) } | ||
mapTail () { return ' ' + super.mapTail() } | ||
mapTail () { return this.prefix(super.mapTail(), ' ') } | ||
pojoEmpty () { return this.spaceIfNoPref(super.pojoEmpty()) } | ||
pojoHead () { return this.spaceIfNoPref(super.pojoHead()) } | ||
pojoTail () { return ' ' + super.pojoTail() } | ||
pojoTail () { return this.prefix(super.pojoTail(), ' ') } | ||
errorEmpty () { return this.spaceIfNoPref(super.errorEmpty()) } | ||
errorHead () { return this.spaceIfNoPref(super.errorHead()) } | ||
errorTail () { return ' ' + super.errorTail() } | ||
errorTail () { return this.prefix(super.errorTail(), ' ') } | ||
@@ -208,0 +209,0 @@ // don't need a stringIsEmpty, because we will simple diff if !== |
{ | ||
"name": "tcompare", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"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
41853
1207