@putout/printer 9.6.0 → 9.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ChangeLog CHANGED
@@ -1,7 +1,13 @@
1
+ 2024.07.13, v9.7.0
2
+
3
+ feature:
4
+ - 192a828 @putout/printer: TryStatement: spaces: align with eslint-plugin-putout
5
+ - 5fb3b67 @putout/printer: MemberExpression: object used as AssignProperty (coderaiser/minify#124)
6
+
1
7
  2024.07.11, v9.6.0
2
8
 
3
9
  feature:
4
- - 0d1f296 @putout/printer: MemberExpression: object used as AssignProperty
10
+ - 0d1f296 @putout/printer: MemberExpression: object used as AssignProperty (coderaiser/minify#124)
5
11
 
6
12
  2024.06.16, v9.5.0
7
13
 
@@ -109,4 +109,3 @@ function likeChain(path) {
109
109
 
110
110
  return calls.length > 1;
111
111
  }
112
-
@@ -32,9 +32,10 @@ module.exports.CatchClause = (path, {print, maybe}) => {
32
32
 
33
33
  print.space();
34
34
  print('catch');
35
- print.space();
36
35
 
37
- if (param.node) {
36
+ if (!param.node) {
37
+ print.space();
38
+ } else {
38
39
  print('(');
39
40
  print(param);
40
41
  print(')');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "9.6.0",
3
+ "version": "9.7.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Simplest possible opinionated Babel AST printer for 🐊Putout",