@putout/printer
Advanced tools
Comparing version 1.48.0 to 1.49.0
'use strict'; | ||
const {isCoupleLines} = require('../is'); | ||
const {isFunction} = require('@babel/types'); | ||
const { | ||
isFunction, | ||
isIfStatement, | ||
isStatement, | ||
} = require('@babel/types'); | ||
const isBodyOfArrow = (path) => path.parentPath.node.body === path.node; | ||
const isLogical = (path) => path.get('argument').isLogicalExpression(); | ||
const isValue = (path) => path.get('properties.0.value').node; | ||
const isIf = (path) => path.parentPath.parentPath.isIfStatement(); | ||
const isIfOrStatement = (a) => isIfStatement(a) || isStatement(a); | ||
const isIf = (path) => isIfStatement(path.find( | ||
isIfOrStatement, | ||
)); | ||
const isParentExpression = (path) => path.parentPath.isExpressionStatement(); | ||
@@ -10,0 +19,0 @@ |
{ | ||
"name": "@putout/printer", | ||
"version": "1.48.0", | ||
"version": "1.49.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
85073
2316