@putout/cli-process-file 2.4.0 → 3.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.
@@ -2,11 +2,11 @@
2
2
 
3
3
  const process = require('node:process');
4
4
  const tryToCatch = require('try-to-catch');
5
- const eslint = require('@putout/eslint');
5
+ const _eslint = require('@putout/eslint');
6
6
  const {parseMatch} = require('putout/parse-match');
7
7
  const {mergeOptions} = require('putout/merge-options');
8
8
  const parseError = require('putout/parse-error');
9
- const {putoutAsync} = require('putout');
9
+ const {putoutAsync: _putoutAsync} = require('putout');
10
10
  const once = require('once');
11
11
 
12
12
  const {simpleImport: _simpleImport} = require('./simple-import');
@@ -29,6 +29,8 @@ module.exports = ({fix, fixCount, logError, raw}) => async function processFile(
29
29
  again,
30
30
  env = getEnv(),
31
31
  simpleImport = _simpleImport,
32
+ eslint = _eslint,
33
+ putoutAsync = _putoutAsync,
32
34
  } = overrides;
33
35
 
34
36
  const {configurePrinter} = await import('./printer/printer.mjs');
@@ -1,6 +1,5 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports.simpleImport = async (url) => {
4
- const result = await import(url);
5
- return result.default;
4
+ return await import(url);
6
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/cli-process-file",
3
- "version": "2.4.0",
3
+ "version": "3.0.1",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "Run all 🐊Putout linters",
6
6
  "homepage": "https://github.com/coderaiser/putout/tree/master/packages/cli-process-file#readme",
@@ -28,7 +28,7 @@
28
28
  "@putout/formatter-eslint": "^2.0.2",
29
29
  "deepmerge": "^4.3.1",
30
30
  "once": "^1.4.0",
31
- "samadhi": "^2.14.1",
31
+ "samadhi": "^3.0.0",
32
32
  "try-catch": "^3.0.0",
33
33
  "try-to-catch": "^3.0.0"
34
34
  },
@@ -37,26 +37,23 @@
37
37
  "cli"
38
38
  ],
39
39
  "devDependencies": {
40
- "@putout/eslint-flat": "^2.0.0",
41
40
  "@putout/operate": "^13.0.0",
42
41
  "c8": "^10.0.0",
43
42
  "eslint": "^9.0.0",
44
43
  "eslint-plugin-n": "^17.0.0",
45
- "eslint-plugin-putout": "^25.0.1",
46
- "madrun": "^10.0.0",
47
- "mock-import": "^4.2.1",
48
- "mock-require": "^3.0.3",
44
+ "eslint-plugin-putout": "^26.0.0",
45
+ "madrun": "^11.0.0",
49
46
  "montag": "^1.2.1",
50
47
  "nodemon": "^3.0.1",
51
48
  "putout": "*",
52
- "supertape": "^10.0.0"
49
+ "supertape": "^11.0.3"
53
50
  },
54
51
  "peerDependencies": {
55
- "putout": ">=38"
52
+ "putout": ">=39"
56
53
  },
57
54
  "license": "MIT",
58
55
  "engines": {
59
- "node": ">=18"
56
+ "node": ">=20"
60
57
  },
61
58
  "publishConfig": {
62
59
  "access": "public"