@putout/printer
Advanced tools
Comparing version 12.13.0 to 12.14.0
@@ -14,2 +14,3 @@ 'use strict'; | ||
isExpressionStatement, | ||
isFunctionDeclaration, | ||
} = types; | ||
@@ -53,4 +54,6 @@ | ||
afterSatisfy: () => [isNext, isNextParent, isInsideBlockStatement], | ||
after(path, {write, maybe}) { | ||
maybe.indent(isNextAssign(path)); | ||
after(path, {write, indent}) { | ||
if (isNextAssign(path) || isNextFunction(path)) | ||
indent(); | ||
write.newline(); | ||
@@ -61,2 +64,7 @@ markAfter(path); | ||
const isNextFunction = (path) => { | ||
const next = path.getNextSibling(); | ||
return isFunctionDeclaration(next); | ||
}; | ||
const isNextAssign = (path) => { | ||
@@ -63,0 +71,0 @@ const next = path.getNextSibling(); |
{ | ||
"name": "@putout/printer", | ||
"version": "12.13.0", | ||
"version": "12.14.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
251219
5465