@putout/printer 2.75.0 → 2.77.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,13 @@
1
+ 2023.07.20, v2.77.0
2
+
3
+ feature:
4
+ - 612b039 @putout/printer: TSNonNullExpression
5
+
6
+ 2023.07.15, v2.76.0
7
+
8
+ feature:
9
+ - 1045e8d @putout/printer: YieldExpression: delegate
10
+
1
11
  2023.07.15, v2.75.0
2
12
 
3
13
  feature:
@@ -11,10 +11,13 @@ module.exports.AwaitExpression = (path, {print}) => {
11
11
  });
12
12
  };
13
13
 
14
- module.exports.YieldExpression = (path, {print}) => {
15
- printUnary(path, 'yield', {
16
- print,
17
- });
14
+ module.exports.YieldExpression = (path, {print, maybe}) => {
15
+ const {delegate} = path.node;
16
+
17
+ print(`yield`);
18
+ maybe.print(delegate, '*');
19
+ print(' ');
20
+ print('__argument');
18
21
  };
19
22
 
20
23
  module.exports.ThrowStatement = (path, {print, indent, maybe}) => {
@@ -235,4 +235,9 @@ module.exports = {
235
235
  print(' is ');
236
236
  print('__typeAnnotation');
237
237
  },
238
+ TSNonNullExpression(path, {print}) {
239
+ print('__expression');
240
+ print('!');
241
+ },
238
242
  };
243
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "2.75.0",
3
+ "version": "2.77.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",