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.1 to 0.3.2

7

index.js

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

}
var name = f.toString().match(functionNameRE)[1];
var matches = f.toString().match(functionNameRE);
if (matches === null) {
// `functionNameRE` doesn't match arrow functions.
return '';
}
var name = matches[1];
return name;

@@ -176,0 +181,0 @@ };

2

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

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

@@ -77,2 +77,4 @@ /*eslint-env mocha*/

assert.equal(format(fff), 'Function { name: \'fff\' }');
//TODO add test for arrow function
});

@@ -79,0 +81,0 @@

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