@putout/printer
Advanced tools
Comparing version 1.72.5 to 1.72.6
@@ -7,2 +7,3 @@ 'use strict'; | ||
const isParentCall = toLong(path) && path.parentPath.isCallExpression(); | ||
const callee = path.get('callee'); | ||
@@ -33,3 +34,3 @@ const typeParameters = path.get('typeParameters'); | ||
if (isParentCall && !isObject) { | ||
if (isParentCall && !isObject && n) { | ||
print.newline(); | ||
@@ -41,3 +42,3 @@ indent(); | ||
if (isParentCall) { | ||
if (isParentCall && n) { | ||
print(','); | ||
@@ -52,3 +53,3 @@ continue; | ||
indent.dec(); | ||
print.breakline(); | ||
maybe.print.breakline(n); | ||
} | ||
@@ -55,0 +56,0 @@ |
@@ -21,3 +21,5 @@ 'use strict'; | ||
print('__openingElement'); | ||
path.get('children').map(traverse); | ||
path | ||
.get('children') | ||
.map(traverse); | ||
print('__closingElement'); | ||
@@ -24,0 +26,0 @@ |
@@ -12,3 +12,5 @@ 'use strict'; | ||
print('__openingFragment'); | ||
path.get('children').map(traverse); | ||
path | ||
.get('children') | ||
.map(traverse); | ||
print('__closingFragment'); | ||
@@ -15,0 +17,0 @@ }, |
@@ -128,4 +128,3 @@ 'use strict'; | ||
return nextPath | ||
.get('expression').isAssignmentExpression(); | ||
return nextPath.get('expression').isAssignmentExpression(); | ||
}; |
{ | ||
"name": "@putout/printer", | ||
"version": "1.72.5", | ||
"version": "1.72.6", | ||
"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
104361
2725