@putout/printer
Advanced tools
Comparing version 1.61.0 to 1.61.1
'use strict'; | ||
const {isNext} = require('../is'); | ||
const {markAfter} = require('../mark'); | ||
@@ -19,2 +20,4 @@ module.exports.ClassExpression = classVisitor; | ||
write.newline(); | ||
write.newline(); | ||
markAfter(path); | ||
} | ||
@@ -21,0 +24,0 @@ }; |
@@ -5,16 +5,4 @@ 'use strict'; | ||
const {isNext} = require('../../is'); | ||
const isFirst = (path) => !path.getPrevSibling().node; | ||
module.exports.FunctionDeclaration = { | ||
beforeIf(path) { | ||
if (isFirst(path)) | ||
return false; | ||
const prev = path.getPrevSibling(); | ||
return prev.isClassDeclaration(); | ||
}, | ||
before(path, {write}) { | ||
write.newline(); | ||
}, | ||
print(path, {print, maybe}) { | ||
@@ -21,0 +9,0 @@ const {async} = path.node; |
{ | ||
"name": "@putout/printer", | ||
"version": "1.61.0", | ||
"version": "1.61.1", | ||
"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
93442
2502