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

should-format

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

should-format - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

7

index.js

@@ -229,5 +229,6 @@ var getType = require('should-type');

['undefined', 'boolean', 'null', 'symbol'].forEach(function(name) {
Formatter.add(name, String);
});
Formatter.add('undefined', function() { return 'undefined' });
Formatter.add('null', function() { return 'null' });
Formatter.add('boolean', function(value) { return value ? 'true': 'false' });
Formatter.add('symbol', function(value) { return value.toString() });

@@ -234,0 +235,0 @@ ['number', 'boolean'].forEach(function(name) {

{
"name": "should-format",
"version": "0.3.0",
"version": "0.3.1",
"description": "Formatting of objects for should.js",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -0,0 +0,0 @@ format

@@ -35,2 +35,8 @@ /*eslint-env mocha*/

it('should format Symbols', function() {
if(typeof Symbol != 'undefined' && Symbol.for) {
assert.equal(format(Symbol.for('react.element')), 'Symbol(react.element)')
}
})
it('should format primitive wrappers', function() {

@@ -37,0 +43,0 @@ assert.equal(format(new Number(10)), 'Number { [[PrimitiveValue]]: 10 }');

@@ -0,0 +0,0 @@ function addSpaces(v) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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