@putout/compare
Advanced tools
Comparing version 3.7.0 to 3.8.0
@@ -31,2 +31,4 @@ 'use strict'; | ||
const isEmptyBlock = (a) => isBlock(a) && !a.body.length; | ||
const compareType = (type) => (path) => path.type === type; | ||
@@ -154,3 +156,3 @@ const extractExpression = (a) => isExpressionStatement(a) ? a.expression : a; | ||
if (isClassBody(value) || isBlock(value)) | ||
if (isClassBody(value) || isEmptyBlock(value)) | ||
return true; | ||
@@ -157,0 +159,0 @@ |
{ | ||
"name": "@putout/compare", | ||
"version": "3.7.0", | ||
"version": "3.8.0", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -5,0 +5,0 @@ "description": "compare ast-nodes", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12758
275