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

unexpected

Package Overview
Dependencies
Maintainers
3
Versions
330
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unexpected - npm Package Compare versions

Comparing version 10.33.0 to 10.33.1

14

lib/types.js

@@ -778,2 +778,3 @@ var utils = require('./utils');

var openingBrace;
var isWrappedInBraces = true;
var closingBrace = '}';

@@ -787,2 +788,13 @@ if (matchBodyAndIndent) {

}
} else {
// Attempt to match an arrow function with an implicit return body.
matchBodyAndIndent = body.match(/^(\s*)([\s\S]*?)([ ]*)\s*$/);
if (matchBodyAndIndent) {
openingBrace = matchBodyAndIndent[1];
isWrappedInBraces = false;
body = matchBodyAndIndent[2];
bodyIndent = matchBodyAndIndent[3] || '';
closingBrace = '';
}
}

@@ -806,3 +818,3 @@

body = '';
} else if (/^\s*[^\r\n]{1,30}\s*$/.test(body) && body.indexOf('//') === -1) {
} else if (/^\s*[^\r\n]{1,30}\s*$/.test(body) && body.indexOf('//') === -1 && isWrappedInBraces) {
body = ' ' + body.trim() + ' ';

@@ -809,0 +821,0 @@ closingBrace = '}';

2

package.json
{
"name": "unexpected",
"version": "10.33.0",
"version": "10.33.1",
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>",

@@ -5,0 +5,0 @@ "keywords": [

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

Sorry, the diff of this file is not supported yet

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