You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@putout/printer

Package Overview
Dependencies
Maintainers
1
Versions
835
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
18.8.4
to
18.8.5
+6
-13
lib/tokenize/expre...s/object-pattern/should-add-new-line.js

@@ -11,2 +11,3 @@ import {types} from '@putout/babel';

const getMaxPropertiesInOneLine = (a, {maxPropertiesInOneLine}) => maxPropertiesInOneLine;
const getValue = (a) => a.value;

@@ -71,17 +72,10 @@ const isMoreCountLessLength = createTypeChecker([

let assignsCount = 0;
const properties = path.node.properties
.filter(isObjectProperty)
.map(getValue)
.filter(isAssignmentPattern);
for (const property of path.node.properties) {
if (!isObjectProperty(property))
continue;
if (isAssignmentPattern(property.value))
++assignsCount;
}
return assignsCount > 1;
return properties.length > 1;
}
const getValue = (a) => a.value;
function checkLength(path) {

@@ -110,2 +104,1 @@ const identifiers = path

}
{
"name": "@putout/printer",
"version": "18.8.4",
"version": "18.8.5",
"type": "module",

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

Sorry, the diff of this file is not supported yet