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

@putout/printer

Package Overview
Dependencies
Maintainers
1
Versions
596
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/printer - npm Package Compare versions

Comparing version 8.31.0 to 8.32.0

1

lib/tokenize/expressions/array-expression/is-object-after-simple.js

@@ -21,2 +21,1 @@ 'use strict';

};

18

lib/tokenize/expressions/object-pattern/object-pattern.js

@@ -176,9 +176,11 @@ 'use strict';

const fnParam = isFunctionParam(path);
if (moreCount && !moreLength)
return ONE_LINE;
if (!isForOf(path) && !path.parentPath.isFunction() && n && checkLength(properties))
if (!fnParam && n && !isForOf(path) && checkLength(properties))
return COUPLE_LINES;
if (hasAssign(properties))
if (!fnParam && hasAssign(properties))
return COUPLE_LINES;

@@ -188,1 +190,13 @@

}
function isFunctionParam(path) {
const {parentPath} = path;
if (parentPath.isFunction())
return true;
if (!parentPath.isAssignmentPattern())
return false;
return parentPath.parentPath.isFunction();
}
{
"name": "@putout/printer",
"version": "8.31.0",
"version": "8.32.0",
"type": "commonjs",

@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

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