@putout/plugin-putout 29.2.1 β†’ 29.2.2

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/README.md CHANGED
@@ -2089,12 +2089,12 @@ Check it out in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/9b5f94
2089
2089
  ```js
2090
2090
  import {tryCatch} from 'try-catch';
2091
2091
 
2092
- transform(ast, options);
2093
- findPlaces(ast, options);
2092
+ transform(ast, source, options);
2093
+ findPlaces(ast, source, options);
2094
2094
 
2095
- tryCatch(transform, ast, {});
2095
+ tryCatch(transform, ast, source {});
2096
2096
 
2097
- tryCatch(findPlaces, ast, resultOptions);
2097
+ tryCatch(findPlaces, ast, source, resultOptions);
2098
2098
  ```
2099
2099
 
2100
2100
  ### βœ… Example of correct code
@@ -2,13 +2,20 @@ import {operator} from 'putout';
2
2
 
3
3
  const {addArgs} = operator;
4
4
 
5
+ const INCLUDE = [
6
+ '(__a) => __body',
7
+ '() => __body',
8
+ ];
9
+
10
+ const EXCLUDE = [
11
+ 'export const filter = __a',
12
+ 'module.exports.filter = __a',
13
+ ];
14
+
5
15
  export const {
6
16
  report,
7
17
  fix,
8
18
  traverse,
9
19
  } = addArgs({
10
- path: ['vars, path', [
11
- '(__a) => __body',
12
- '() => __body',
13
- ]],
20
+ path: ['vars, path', INCLUDE, EXCLUDE],
14
21
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-putout",
3
- "version": "29.2.1",
3
+ "version": "29.2.2",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin helps with plugins development",