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 5.0.3 to 5.0.4

4

lib/format.js

@@ -141,4 +141,6 @@ class Format {

case 'bigint':
/* istanbul ignore next - node version specific */
case 'bigint': {
return this.object.toString() + 'n'
}

@@ -145,0 +147,0 @@ case 'string':

@@ -7,2 +7,7 @@ const Format = require('./format.js')

const pattern = this.expect
/* istanbul ignore next - node version specific */
if (typeof BigInt === 'function' && pattern === BigInt)
return typeof obj === 'bigint'
return (

@@ -31,3 +36,2 @@ super.test() === true ? true

: pattern === Boolean ? typeof obj === 'boolean'
: pattern === BigInt ? typeof obj === 'bigint'
: pattern === Map ? this.isMap()

@@ -34,0 +38,0 @@ : pattern === Set ? this.isSet()

{
"name": "tcompare",
"version": "5.0.3",
"version": "5.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