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.6 to 0.0.7

2

index.js

@@ -107,3 +107,3 @@ var getType = require('should-type');

function addSpaces(v) {
return ' ' + v;
return v.split('\n').map(function(vv) { return ' ' + vv; }).join('\n');
}

@@ -110,0 +110,0 @@

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

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

@@ -162,1 +162,5 @@ var format = require('../');

});
it('should correctly indent', function() {
assert.equal(format({ a: { b: 'abc' }, d: 'abc'}, { maxLineLength: 0 }), '{\n a: {\n b: \'abc\'\n },\n d: \'abc\'\n}')
});
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