putout 33.8.0 → 33.8.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/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2023.11.18, v33.8.1
2
+
3
+ feature:
4
+ - 970b3b33b putout: supported-files: fullstore
5
+
1
6
  2023.11.18, v33.8.0
2
7
 
3
8
  fix:
@@ -2,8 +2,10 @@
2
2
 
3
3
  const {normalize} = require('path');
4
4
  const picomatch = require('picomatch');
5
+ const fullstore = require('fullstore');
6
+
7
+ const isMatchStore = fullstore();
5
8
 
6
- let isMatch = Boolean;
7
9
  let patterns = [];
8
10
 
9
11
  const rmDuplicates = (a) => Array.from(new Set(a));
@@ -11,13 +13,18 @@ const rmDuplicates = (a) => Array.from(new Set(a));
11
13
  module.exports.add = (array) => {
12
14
  patterns = rmDuplicates(patterns.concat(array));
13
15
 
14
- isMatch = picomatch(patterns, {
16
+ const isMatch = picomatch(patterns, {
15
17
  dot: true,
16
18
  matchBase: true,
17
19
  });
20
+
21
+ isMatchStore(isMatch);
18
22
  };
19
23
 
20
- module.exports.isSupported = (name) => isMatch(name);
24
+ module.exports.isSupported = (name) => {
25
+ const isMatch = isMatchStore();
26
+ return isMatch(name);
27
+ };
21
28
 
22
29
  module.exports.getSupportedGlob = (file) => normalize(`${file}/**/{${patterns.join(',')}}`);
23
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "33.8.0",
3
+ "version": "33.8.1",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊 Pluggable and configurable code transformer with built-in ESLint, Babel and support of js, jsx, typescript, flow, markdown, yaml and json",