@putout/printer 2.88.0 → 2.89.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,3 +1,8 @@
1
+ 2023.07.27, v2.89.0
2
+
3
+ feature:
4
+ - 6d324e9 @putout/printer: ClassMethod: scoped constructor (coderaiser/putout#172)
5
+
1
6
  2023.07.27, v2.88.0
2
7
 
3
8
  feature:
@@ -19,7 +19,6 @@ const ClassMethod = {
19
19
  const isMethod = kind === 'method';
20
20
  const isGetter = /get|set/.test(kind);
21
21
 
22
- maybe.print(isConstructor, kind);
23
22
  maybe.print(generator, '*');
24
23
 
25
24
  if (accessibility) {
@@ -32,6 +31,8 @@ const ClassMethod = {
32
31
  print(' ');
33
32
  }
34
33
 
34
+ maybe.print(isConstructor, kind);
35
+
35
36
  if (isMethod) {
36
37
  maybe.print(computed, '[');
37
38
  print('__key');
@@ -257,4 +257,3 @@ module.exports = {
257
257
  print('this');
258
258
  },
259
259
  };
260
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "2.88.0",
3
+ "version": "2.89.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",