@putout/operator-filesystem 11.0.0 → 11.0.1

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/lib/filesystem.js CHANGED
@@ -110,7 +110,7 @@ export function findFile(node, name, options) {
110
110
 
111
111
  checkName(name);
112
112
 
113
- const filePaths = [];
113
+ const filePaths = new Set();
114
114
  const names = maybeArray(name);
115
115
 
116
116
  for (const filenamePath of crawled) {
@@ -129,12 +129,12 @@ export function findFile(node, name, options) {
129
129
  if (excluded)
130
130
  continue;
131
131
 
132
- filePaths.push(path);
132
+ filePaths.add(path);
133
133
  }
134
134
  }
135
135
  }
136
136
 
137
- return filePaths;
137
+ return Array.from(filePaths);
138
138
  }
139
139
 
140
140
  function checkName(name) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/operator-filesystem",
3
- "version": "11.0.0",
3
+ "version": "11.0.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout operator adds ability to filesystem referenced variables that was not defined",
@@ -46,7 +46,7 @@
46
46
  "@putout/eslint-flat": "^4.0.0",
47
47
  "@putout/test": "^15.0.0",
48
48
  "c8": "^10.0.0",
49
- "eslint": "^10.0.0-alpha.0",
49
+ "eslint": "^10.0.0",
50
50
  "eslint-plugin-n": "^17.0.0",
51
51
  "eslint-plugin-putout": "^30.0.0",
52
52
  "madrun": "^12.0.0",