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.0.1 to 0.0.2

11

index.js

@@ -73,4 +73,6 @@ var getType = require('should-type');

var keys = opts.keys(value);
var numericProps = [];
var len = 0;
opts.seen.push(value);
var props = keys.map(function(prop) {

@@ -94,2 +96,6 @@ var desc;

opts.seen.pop();
if(props.length === 0) return '[]';
if(len <= opts.maxLineLength) {

@@ -118,2 +124,5 @@ return '[ ' + props.join(opts.propSep + ' ') + ' ]';

opts.seen.pop();
if(props.length === 0) return '{}';
if(len <= opts.maxLineLength) {

@@ -120,0 +129,0 @@ return '{ ' + (prefix ? prefix + ' ' : '') + props.join(opts.propSep + ' ') + ' }';

2

package.json
{
"name": "should-format",
"version": "0.0.1",
"version": "0.0.2",
"description": "Formatting of objects for should.js",

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