putout 39.5.0 → 39.7.0
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 +21 -0
- package/lib/cli/index.js +20 -5
- package/package.json +6 -6
package/ChangeLog
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
2025.04.01, v39.7.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 30aab90cc putout: @putout/engine-reporter v4.0.0
|
|
5
|
+
- 9fae392f7 @putout/engine-reporter: drop support of node < 20
|
|
6
|
+
- a9993f599 @putout/engine-reporter: @putout/cli-keypress v3.0.0
|
|
7
|
+
- f62697b27 putout: @putout/cli-keypress v3.0.0
|
|
8
|
+
- 2d063cb10 putout: @putout/plugin-apply-flat-map v3.0.0
|
|
9
|
+
- ff4fb02f4 @putout/cli-keypress: migrate to ESM
|
|
10
|
+
- b465fb4e6 @putout/plugin-apply-flat-map: migrate to ESM
|
|
11
|
+
- 38327a9dd @putout/engine-parser: estree-to-babel v11.0.0
|
|
12
|
+
- 3b6864c1c @putout/plugin-eslint: remove-suffix-config: add support of CommonJS
|
|
13
|
+
|
|
14
|
+
2025.03.31, v39.6.0
|
|
15
|
+
|
|
16
|
+
feature:
|
|
17
|
+
- 751537f78 putout: @putout/plugin-new v4.0.0
|
|
18
|
+
- 9d8d469bc putout: @putout/plugin-optional-chaining v2.0.0
|
|
19
|
+
- c0cc06e33 @putout/plugin-new: convert to ESM
|
|
20
|
+
- 060716f67 @putout/plugin-optional-chaining: convert to ESM
|
|
21
|
+
|
|
1
22
|
2025.03.29, v39.5.0
|
|
2
23
|
|
|
3
24
|
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.0",
|
|
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",
|
|
@@ -132,10 +132,10 @@
|
|
|
132
132
|
"@putout/plugin-merge-destructuring-properties": "^11.0.0",
|
|
133
133
|
"@putout/plugin-merge-duplicate-functions": "^2.0.0",
|
|
134
134
|
"@putout/plugin-montag": "^4.0.0",
|
|
135
|
-
"@putout/plugin-new": "^
|
|
135
|
+
"@putout/plugin-new": "^4.0.0",
|
|
136
136
|
"@putout/plugin-nodejs": "^15.0.0",
|
|
137
137
|
"@putout/plugin-npmignore": "^5.0.0",
|
|
138
|
-
"@putout/plugin-optional-chaining": "^
|
|
138
|
+
"@putout/plugin-optional-chaining": "^2.0.0",
|
|
139
139
|
"@putout/plugin-package-json": "^9.0.0",
|
|
140
140
|
"@putout/plugin-parens": "^2.0.0",
|
|
141
141
|
"@putout/plugin-promises": "^17.0.0",
|