@putout/operator-match-files 9.0.1 → 10.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.
@@ -137,7 +137,7 @@ const createScan = ({files, exclude, defaultFilename}) => (mainPath, {push, prog
137
137
  };
138
138
 
139
139
  function magicParse(name, content) {
140
- if (/\.json$/.test(name)) {
140
+ if (name.endsWith('.json')) {
141
141
  const js = toJS(content);
142
142
  const ast = parse(js);
143
143
 
@@ -156,7 +156,7 @@ function magicParse(name, content) {
156
156
  }
157
157
 
158
158
  function magicPrint(name, ast) {
159
- if (/\.json$/.test(name)) {
159
+ if (name.endsWith('.json')) {
160
160
  const js = print(ast);
161
161
 
162
162
  return fromJS(js);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/operator-match-files",
3
- "version": "9.0.1",
3
+ "version": "10.0.1",
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,9 +24,9 @@
24
24
  "report": "madrun report"
25
25
  },
26
26
  "dependencies": {
27
- "@putout/babel": "^4.0.1",
28
- "@putout/engine-parser": "^14.0.1",
29
- "@putout/operator-filesystem": "^9.0.1",
27
+ "@putout/babel": "^5.0.0",
28
+ "@putout/engine-parser": "^15.0.1",
29
+ "@putout/operator-filesystem": "^10.0.0",
30
30
  "@putout/operator-json": "^2.0.0"
31
31
  },
32
32
  "keywords": [
@@ -38,10 +38,10 @@
38
38
  "devDependencies": {
39
39
  "@putout/eslint-flat": "^3.0.0",
40
40
  "@putout/plugin-nodejs": "*",
41
- "@putout/test": "^13.0.0",
41
+ "@putout/test": "^14.0.0",
42
42
  "c8": "^10.0.0",
43
- "eslint": "^9.0.0",
44
- "eslint-plugin-putout": "^27.0.0",
43
+ "eslint": "^10.0.0-alpha.0",
44
+ "eslint-plugin-putout": "^29.0.0",
45
45
  "madrun": "^11.0.0",
46
46
  "montag": "^1.2.1",
47
47
  "nodemon": "^3.0.1",
@@ -49,7 +49,7 @@
49
49
  "try-catch": "^3.0.0"
50
50
  },
51
51
  "peerDependencies": {
52
- "putout": ">=40"
52
+ "putout": ">=41"
53
53
  },
54
54
  "license": "MIT",
55
55
  "engines": {