putout 39.6.0 → 39.7.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 +19 -0
- package/lib/cli/index.js +20 -5
- package/package.json +5 -5
package/ChangeLog
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
2025.04.02, v39.7.1
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- de3d3173b putout: @putout/plugin-merge-duplicate-functions v3.0.0
|
|
5
|
+
- 94d163aa4 @putout/plugin-merge-duplicate-functions: convert to ESM
|
|
6
|
+
|
|
7
|
+
2025.04.01, v39.7.0
|
|
8
|
+
|
|
9
|
+
feature:
|
|
10
|
+
- 30aab90cc putout: @putout/engine-reporter v4.0.0
|
|
11
|
+
- 9fae392f7 @putout/engine-reporter: drop support of node < 20
|
|
12
|
+
- a9993f599 @putout/engine-reporter: @putout/cli-keypress v3.0.0
|
|
13
|
+
- f62697b27 putout: @putout/cli-keypress v3.0.0
|
|
14
|
+
- 2d063cb10 putout: @putout/plugin-apply-flat-map v3.0.0
|
|
15
|
+
- ff4fb02f4 @putout/cli-keypress: migrate to ESM
|
|
16
|
+
- b465fb4e6 @putout/plugin-apply-flat-map: migrate to ESM
|
|
17
|
+
- 38327a9dd @putout/engine-parser: estree-to-babel v11.0.0
|
|
18
|
+
- 3b6864c1c @putout/plugin-eslint: remove-suffix-config: add support of CommonJS
|
|
19
|
+
|
|
1
20
|
2025.03.31, v39.6.0
|
|
2
21
|
|
|
3
22
|
feature:
|
package/lib/cli/index.js
CHANGED
|
@@ -15,7 +15,7 @@ const {
|
|
|
15
15
|
defaultProcessors,
|
|
16
16
|
} = require('@putout/engine-processor');
|
|
17
17
|
|
|
18
|
-
const
|
|
18
|
+
const {keypress: _keypress} = require('@putout/cli-keypress');
|
|
19
19
|
|
|
20
20
|
const supportedFiles = require('./supported-files');
|
|
21
21
|
const getOptions = require('./get-options');
|
|
@@ -56,17 +56,32 @@ const getExitCode = (wasStop) => wasStop() ? WAS_STOP : OK;
|
|
|
56
56
|
const isStr = (a) => typeof a === 'string';
|
|
57
57
|
const isNoop = (a) => String(a) === String(noop);
|
|
58
58
|
|
|
59
|
-
const parseIsStop = (passedIsStop) => {
|
|
59
|
+
const parseIsStop = (passedIsStop, {keypress}) => {
|
|
60
60
|
if (!isNoop(passedIsStop))
|
|
61
61
|
return passedIsStop;
|
|
62
62
|
|
|
63
|
-
const {isStop} =
|
|
63
|
+
const {isStop} = keypress();
|
|
64
64
|
|
|
65
65
|
return isStop;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
module.exports = async (
|
|
69
|
-
|
|
68
|
+
module.exports = async (overrides = {}) => {
|
|
69
|
+
const {
|
|
70
|
+
argv,
|
|
71
|
+
halt,
|
|
72
|
+
log,
|
|
73
|
+
write,
|
|
74
|
+
logError,
|
|
75
|
+
readFile,
|
|
76
|
+
writeFile,
|
|
77
|
+
trace = noop,
|
|
78
|
+
keypress = _keypress,
|
|
79
|
+
} = overrides;
|
|
80
|
+
|
|
81
|
+
const isStop = parseIsStop(overrides.isStop || noop, {
|
|
82
|
+
keypress,
|
|
83
|
+
});
|
|
84
|
+
|
|
70
85
|
trace('start');
|
|
71
86
|
|
|
72
87
|
const wasStop = fullstore();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "39.
|
|
3
|
+
"version": "39.7.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",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@putout/babel": "^3.0.0",
|
|
55
55
|
"@putout/cli-cache": "^5.0.0",
|
|
56
56
|
"@putout/cli-choose-formatter": "^4.0.0",
|
|
57
|
-
"@putout/cli-keypress": "^
|
|
57
|
+
"@putout/cli-keypress": "^3.0.0",
|
|
58
58
|
"@putout/cli-match": "^2.0.0",
|
|
59
59
|
"@putout/cli-process-file": "^3.0.0",
|
|
60
60
|
"@putout/cli-ruler": "^4.0.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@putout/engine-loader": "^15.0.0",
|
|
65
65
|
"@putout/engine-parser": "^13.0.0",
|
|
66
66
|
"@putout/engine-processor": "^13.0.0",
|
|
67
|
-
"@putout/engine-reporter": "^
|
|
67
|
+
"@putout/engine-reporter": "^4.0.0",
|
|
68
68
|
"@putout/engine-runner": "^24.0.0",
|
|
69
69
|
"@putout/formatter-codeframe": "^8.0.0",
|
|
70
70
|
"@putout/formatter-dump": "^5.0.0",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@putout/plugin-apply-at": "^2.0.0",
|
|
92
92
|
"@putout/plugin-apply-destructuring": "^8.0.0",
|
|
93
93
|
"@putout/plugin-apply-dot-notation": "^2.0.0",
|
|
94
|
-
"@putout/plugin-apply-flat-map": "^
|
|
94
|
+
"@putout/plugin-apply-flat-map": "^3.0.0",
|
|
95
95
|
"@putout/plugin-apply-overrides": "^2.0.0",
|
|
96
96
|
"@putout/plugin-apply-shorthand-properties": "^6.0.0",
|
|
97
97
|
"@putout/plugin-apply-starts-with": "^1.0.0",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"@putout/plugin-math": "^3.0.0",
|
|
131
131
|
"@putout/plugin-maybe": "^3.0.0",
|
|
132
132
|
"@putout/plugin-merge-destructuring-properties": "^11.0.0",
|
|
133
|
-
"@putout/plugin-merge-duplicate-functions": "^
|
|
133
|
+
"@putout/plugin-merge-duplicate-functions": "^3.0.0",
|
|
134
134
|
"@putout/plugin-montag": "^4.0.0",
|
|
135
135
|
"@putout/plugin-new": "^4.0.0",
|
|
136
136
|
"@putout/plugin-nodejs": "^15.0.0",
|