@putout/operate
Advanced tools
Comparing version 8.7.0 to 8.8.0
@@ -7,2 +7,3 @@ 'use strict'; | ||
matchesPattern, | ||
isBlockStatement, | ||
isImportDeclaration, | ||
@@ -169,3 +170,3 @@ isExportDeclaration, | ||
if (node && !isStatement(node) || !parentPath?.isArrowFunctionExpression?.()) | ||
if (node && !isStatement(node) || isBlockStatement(node) || !parentPath?.isArrowFunctionExpression?.()) | ||
return { | ||
@@ -172,0 +173,0 @@ currentPath: path, |
{ | ||
"name": "@putout/operate", | ||
"version": "8.7.0", | ||
"version": "8.8.0", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", |
@@ -10,3 +10,3 @@ # Operate [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL] | ||
`operate` provide you a way to manipulate `path` nodes and keep `comments` and `loc` information. | ||
Manipulate with `path` nodes and keep `comments` and `loc` information. | ||
@@ -13,0 +13,0 @@ ## Install |
16793
307