@putout/printer
Advanced tools
@@ -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 | ||
| } | ||
+1
-1
| { | ||
| "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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
326791
06821
-0.04%