@putout/printer
Advanced tools
Comparing version 8.36.0 to 8.37.0
@@ -36,3 +36,2 @@ 'use strict'; | ||
const isVar = consequent.isVariableDeclaration(); | ||
const isRet = consequent.isReturnStatement(); | ||
@@ -39,0 +38,0 @@ if (isConsequentBlock) { |
@@ -9,3 +9,3 @@ 'use strict'; | ||
const {ReturnStatement} = require('./return-statement/return-statement'); | ||
const TryStatements = require('./try-statements'); | ||
const TryStatements = require('./try-statement/try-statements'); | ||
const {DebuggerStatement} = require('./debugger-statement'); | ||
@@ -12,0 +12,0 @@ const {ForStatement} = require('./for-statement'); |
@@ -20,3 +20,3 @@ 'use strict'; | ||
const isParentTSModuleBlock = (path) => path.parentPath.isTSModuleBlock(); | ||
const isParentBlock = (path) => /Program|BlockStatement|Export/.test(path.parentPath.type); | ||
const isParentBlock = (path) => /Program|BlockStatement|Export|LabeledStatement/.test(path.parentPath.type); | ||
const isInsideBlock = (path) => /^(Program|BlockStatement|TSModuleBlock|SwitchCase)$/.test(path.parentPath.type); | ||
@@ -23,0 +23,0 @@ const isParentSwitchCase = (path) => path.parentPath.isSwitchCase(); |
{ | ||
"name": "@putout/printer", | ||
"version": "8.36.0", | ||
"version": "8.37.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
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
221312
4899