@putout/printer 1.135.0 → 1.136.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.06.05, v1.136.0
2
+
3
+ feature:
4
+ - f9dc054 @putout/printer: update dependencies
5
+
6
+ 2023.06.05, v1.135.1
7
+
8
+ feature:
9
+ - 2de8346 package: @putout/compare v10.0.0
10
+
1
11
  2023.06.05, v1.135.0
2
12
 
3
13
  feature:
@@ -12,27 +12,22 @@ module.exports.maybePrintAttributes = (path, {write, traverse}) => {
12
12
  return printAttributes(path, {
13
13
  write,
14
14
  traverse,
15
- type: 'assertions',
15
+
16
16
  keyword: 'assert',
17
17
  });
18
18
 
19
19
  printAttributes(path, {
20
20
  write,
21
21
  traverse,
22
- type: 'attributes',
22
+
23
23
  keyword: 'with',
24
24
  });
25
25
  };
26
26
 
27
- const isAssertions = (path) => {
28
- if (path.node.extra?.deprecatedAssertSyntax)
29
- return true;
30
-
31
- return path.node.assertions?.length;
32
- };
27
+ const isAssertions = (path) => path.node.extra?.deprecatedAssertSyntax;
33
28
 
34
- function printAttributes(path, {write, traverse, type, keyword}) {
35
- const attributes = path.get(type);
29
+ function printAttributes(path, {write, traverse, keyword}) {
30
+ const attributes = path.get('attributes');
36
31
 
37
32
  if (!attributes.length)
38
33
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "1.135.0",
3
+ "version": "1.136.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",
@@ -30,7 +30,7 @@
30
30
  "@babel/parser": "^7.19.0",
31
31
  "@babel/traverse": "^7.21.2",
32
32
  "@babel/types": "^7.21.3",
33
- "@putout/compare": "^9.13.0",
33
+ "@putout/compare": "^10.0.0",
34
34
  "@putout/operate": "^8.11.0",
35
35
  "fullstore": "^3.0.0",
36
36
  "just-snake-case": "^3.2.0",