@putout/printer
Advanced tools
Comparing version 1.69.0 to 1.69.1
@@ -37,2 +37,1 @@ 'use strict'; | ||
}; | ||
@@ -14,2 +14,1 @@ 'use strict'; | ||
module.exports.ObjectMethod = ObjectMethod; | ||
@@ -89,2 +89,2 @@ 'use strict'; | ||
module.exports.noTrailingComment = (path) => !path.node.trailingComments; | ||
module.exports.noTrailingComment = (path) => !path.node.trailingComments?.length; |
@@ -9,4 +9,5 @@ 'use strict'; | ||
} = require('../is'); | ||
const {isObjectMethod} = require('@babel/types'); | ||
const {isArrowFunctionExpression} = require('@babel/types'); | ||
const isFirstStatement = (path) => path.get('body.0')?.isStatement(); | ||
@@ -53,3 +54,3 @@ | ||
if (path.find(isObjectMethod)) | ||
if (path.parentPath.isIfStatement() && path.find(isArrowFunctionExpression)) | ||
return true; | ||
@@ -56,0 +57,0 @@ |
{ | ||
"name": "@putout/printer", | ||
"version": "1.69.0", | ||
"version": "1.69.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
98225