@putout/printer
Advanced tools
Comparing version 11.5.0 to 11.6.0
@@ -26,3 +26,3 @@ 'use strict'; | ||
const property = path.get('property'); | ||
const isParens = object.isAwaitExpression() || object.isAssignmentExpression(); | ||
const isParens = object.isAssignmentExpression(); | ||
const {computed} = path.node; | ||
@@ -29,0 +29,0 @@ |
@@ -23,7 +23,7 @@ 'use strict'; | ||
module.exports.AwaitExpression = (path, {print}) => { | ||
module.exports.AwaitExpression = maybeParens((path, {print}) => { | ||
printUnary(path, 'await', { | ||
print, | ||
}); | ||
}; | ||
}); | ||
@@ -55,1 +55,2 @@ module.exports.YieldExpression = maybeParens((path, {print, maybe}) => { | ||
} | ||
@@ -27,3 +27,4 @@ 'use strict'; | ||
...maybeParensPrint(print), | ||
condition: (path) => condition(path) || isParens(path), | ||
condition: (path) => condition?.(path) || isParens(path), | ||
}); | ||
{ | ||
"name": "@putout/printer", | ||
"version": "11.5.0", | ||
"version": "11.6.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
241637