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

tcompare

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tcompare - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

15

lib/same.js

@@ -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",

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