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 3.0.3 to 3.0.4

6

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

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