@putout/printer
Advanced tools
Comparing version 12.6.0 to 12.7.0
@@ -12,4 +12,4 @@ 'use strict'; | ||
const {maybeInsideFn} = require('./maybe-inside-fn'); | ||
const { | ||
isArrowFunctionExpression, | ||
isObjectProperty, | ||
@@ -30,6 +30,11 @@ isVariableDeclarator, | ||
const isInsideVar = ({parentPath}) => { | ||
if (isVariableDeclarator(parentPath)) | ||
const isInsideVar = (path) => { | ||
const {parentPath} = path; | ||
if (isVariableDeclarator(parentPath) && path === parentPath.get('init')) | ||
return true; | ||
if (!isArrowFunctionExpression(parentPath)) | ||
return false; | ||
return isVariableDeclarator(parentPath.parentPath); | ||
@@ -151,1 +156,2 @@ }; | ||
}; | ||
{ | ||
"name": "@putout/printer", | ||
"version": "12.6.0", | ||
"version": "12.7.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
247821
5394