Skip to content

Commit

Permalink
chore: package: v2.43.0
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Jul 3, 2023
1 parent 3362977 commit dde14ae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2023.07.03, v2.43.0

feature:
- 3362977 @putout/printer: tryStatement: newline
- 81004a0 @putout/printer: ClassDeclaration: spaces
- 869323a @putout/printer: ClassDeclaration: spaces

2023.07.03, v2.42.1

feature:
Expand Down
7 changes: 2 additions & 5 deletions lib/tokenize/statements/try-statements.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const {isNext} = require('../is');

module.exports.TryStatement = {
print(path, {print, maybe}) {
print(path, {print}) {
const finalizer = path.get('finalizer');
print.indent();
print('try ');
Expand All @@ -18,9 +18,7 @@ module.exports.TryStatement = {
print.newline();
}
},
afterSatisfy: () => [
isNext,
],
afterSatisfy: () => [isNext],
after(path, {maybe, print}) {
maybe.print.newline(!path.node.finalizer);
print.breakline();
Expand All @@ -42,4 +40,3 @@ module.exports.CatchClause = (path, {print}) => {

print(body);
};

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@putout/printer",
"version": "2.42.1",
"version": "2.43.0",
"type": "commonjs",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
"description": "Simplest possible opinionated Babel AST printer for 🐊Putout",
Expand Down

0 comments on commit dde14ae

Please sign in to comment.