@putout/operator-match-files 5.1.0 → 5.2.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.
@@ -43,11 +43,11 @@ module.exports.matchFiles = (options) => {
43
43
  };
44
44
  };
45
45
 
46
- function fix(inputFile, {dirPath, mainPath, matchInputFilename, outputFilename, matchedJS, matchedAST, options}) {
46
+ function fix(inputFile, {dirPath, matchInputFilename, outputFilename, matchedJS, matchedAST, options}) {
47
47
  transform(matchedAST, matchedJS, options);
48
48
 
49
49
  const matchedJSON = magicPrint(outputFilename, matchedAST);
50
- const outputFile = getOutputFile(mainPath, {
50
+ const outputFile = getOutputFile({
51
51
  dirPath,
52
52
  matchInputFilename,
53
53
  outputFilename,
@@ -80,7 +80,6 @@ const createScan = ({files, exclude}) => (mainPath, {push, progress, options}) =
80
80
  continue;
81
81
 
82
82
  allFiles.push({
83
- mainPath,
84
83
  dirPath,
85
84
  matchInputFilename,
86
85
  rawOptions,
@@ -101,7 +100,6 @@ const createScan = ({files, exclude}) => (mainPath, {push, progress, options}) =
101
100
  inputFilename,
102
101
  outputFilename,
103
102
  rawOptions,
104
- mainPath,
105
103
  } = current;
106
104
 
107
105
  progress({
@@ -122,7 +120,6 @@ const createScan = ({files, exclude}) => (mainPath, {push, progress, options}) =
122
120
 
123
121
  push(inputFile, {
124
122
  dirPath,
125
- mainPath,
126
123
  matchInputFilename,
127
124
 
128
125
  outputFilename,
@@ -171,7 +168,7 @@ function check(files) {
171
168
  }
172
169
  }
173
170
 
174
- function getOutputFile(path, {dirPath, matchInputFilename, outputFilename, inputFile}) {
171
+ function getOutputFile({dirPath, matchInputFilename, outputFilename, inputFile}) {
175
172
  if (matchInputFilename === outputFilename)
176
173
  return inputFile;
177
174
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/operator-match-files",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout operator adds ability to match files to plugins",
@@ -24,7 +24,7 @@
24
24
  "report": "madrun report"
25
25
  },
26
26
  "dependencies": {
27
- "@putout/babel": "^2.0.0",
27
+ "@putout/babel": "^3.0.0",
28
28
  "@putout/engine-parser": "^11.0.1",
29
29
  "@putout/operator-filesystem": "^5.0.0",
30
30
  "@putout/operator-json": "^2.0.0"