@putout/plugin-printer 5.0.0 → 6.0.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.
@@ -1,7 +1,7 @@
1
1
  import {operator} from 'putout';
2
2
 
3
3
  const {addArgs} = operator;
4
- const parents = [
4
+ const include = [
5
5
  '__ = __',
6
6
  'const __ = __',
7
7
  'module.exports.__a = (path, __object) => __body',
@@ -11,23 +11,21 @@ const parents = [
11
11
  'function __(path, __object) {}',
12
12
  ];
13
13
 
14
- const {
14
+ const exclude = [
15
+ '(__a, __b, __c, __object) => __body',
16
+ ];
17
+
18
+ export const {
15
19
  report,
16
20
  fix,
17
21
  traverse,
18
22
  } = addArgs({
19
23
  path: ['path', 'module.exports.__a = () => __body'],
20
- maybe: ['{maybe}', parents],
21
- write: ['{write}', parents],
22
- print: ['{print}', parents],
23
- indent: ['{indent}', parents],
24
- compute: ['{compute}', parents],
25
- traverse: ['{traverse}', parents],
26
- store: ['{store}', parents],
24
+ maybe: ['{maybe}', include, exclude],
25
+ write: ['{write}', include, exclude],
26
+ print: ['{print}', include, exclude],
27
+ indent: ['{indent}', include, exclude],
28
+ compute: ['{compute}', include, exclude],
29
+ traverse: ['{traverse}', include, exclude],
30
+ store: ['{store}', include, exclude],
27
31
  });
28
-
29
- export {
30
- report,
31
- fix,
32
- traverse,
33
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-printer",
3
- "version": "5.0.0",
3
+ "version": "6.0.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin adds support of transformations for @putout/printer",
@@ -38,17 +38,17 @@
38
38
  "@putout/plugin-declare-before-reference": "*",
39
39
  "@putout/plugin-for-of": "*",
40
40
  "@putout/plugin-remove-nested-blocks": "*",
41
- "@putout/test": "^12.0.0",
41
+ "@putout/test": "^13.0.0",
42
42
  "c8": "^10.0.0",
43
43
  "eslint": "^9.0.0",
44
44
  "eslint-plugin-n": "^17.0.0",
45
- "eslint-plugin-putout": "^26.0.0",
46
- "madrun": "^10.0.0",
45
+ "eslint-plugin-putout": "^27.0.0",
46
+ "madrun": "^11.0.0",
47
47
  "montag": "^1.2.1",
48
48
  "nodemon": "^3.0.1"
49
49
  },
50
50
  "peerDependencies": {
51
- "putout": ">=39"
51
+ "putout": ">=40"
52
52
  },
53
53
  "license": "MIT",
54
54
  "engines": {