@putout/engine-runner 23.1.0 → 23.1.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
@@ -496,7 +496,7 @@ const places = runPlugins({
496
496
  ast,
497
497
  shebang: false, // default
498
498
  fix: false, // default
499
- fixCount: 1, // default
499
+ fixCount: 2, // default
500
500
  plugins,
501
501
  parser: 'babel', // default
502
502
  });
package/lib/index.js CHANGED
@@ -18,7 +18,7 @@ const {getPath, getPosition} = require('./get-position');
18
18
 
19
19
  const isRemoved = (a) => a?.removed;
20
20
 
21
- module.exports.runPlugins = ({ast, shebang, fix, fixCount = 1, plugins, progress = createProgress(), traverse = defaultTraverse}) => {
21
+ module.exports.runPlugins = ({ast, shebang, fix, fixCount = 2, plugins, progress = createProgress(), traverse = defaultTraverse}) => {
22
22
  let places = [];
23
23
 
24
24
  const merge = once(mergeVisitors);
@@ -16,9 +16,7 @@ const {
16
16
  pathStore,
17
17
  } = require('./store');
18
18
 
19
- const shouldSkip = (a) => !a.parent;
20
19
  const {merge} = traverse.visitors;
21
-
22
20
  const {assign} = Object;
23
21
 
24
22
  const parse = (name, plugin, options) => {
@@ -87,7 +85,7 @@ module.exports = (pluginsToMerge, {fix, shebang, template}) => {
87
85
  const entries = Object.entries(pushed);
88
86
 
89
87
  const visitor = {
90
- shouldSkip,
88
+ //shouldSkip,
91
89
  ...merge(mergeItems),
92
90
  };
93
91
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/engine-runner",
3
- "version": "23.1.0",
3
+ "version": "23.1.2",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Run 🐊Putout plugins",