putout 21.4.0 → 21.5.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 +10 -0
- package/lib/cli/index.js +6 -2
- package/package.json +1 -1
package/ChangeLog
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
2021.11.10, v21.5.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- (putout) terminal: add support of WebStorm, VS Code
|
|
5
|
+
- (@putout/plugin-tape) add remove-stop-all
|
|
6
|
+
- (@putout/plugin-tape) add add-await-to-re-import
|
|
7
|
+
- (@putout/plugin-tape) add-stop-all: add support of async functions
|
|
8
|
+
- (eslint-plugin-putout) add add-newlines-between-types-in-union
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
2021.11.08, v21.4.0
|
|
2
12
|
|
|
3
13
|
feature:
|
package/lib/cli/index.js
CHANGED
|
@@ -16,6 +16,10 @@ const {version} = require('../../package.json');
|
|
|
16
16
|
|
|
17
17
|
const simport = createSimport(__filename);
|
|
18
18
|
|
|
19
|
+
const {env} = process;
|
|
20
|
+
const isIDE = env.TERMINAL_EMULATOR || env.TERM_PROGRAM === 'vscode';
|
|
21
|
+
const chooseName = (name, resolvedName) => !isIDE ? name : resolvedName;
|
|
22
|
+
|
|
19
23
|
const {
|
|
20
24
|
runProcessors,
|
|
21
25
|
getFilePatterns,
|
|
@@ -322,7 +326,7 @@ module.exports = async ({argv, halt, log, write, logError, readFile, writeFile})
|
|
|
322
326
|
const formatterProxy = createFormatterProxy({
|
|
323
327
|
report,
|
|
324
328
|
formatterOptions,
|
|
325
|
-
name,
|
|
329
|
+
name: chooseName(name, resolvedName),
|
|
326
330
|
places,
|
|
327
331
|
index: currentIndex,
|
|
328
332
|
count: length,
|
|
@@ -372,7 +376,7 @@ module.exports = async ({argv, halt, log, write, logError, readFile, writeFile})
|
|
|
372
376
|
const line = report(currentFormat, {
|
|
373
377
|
report,
|
|
374
378
|
formatterOptions,
|
|
375
|
-
name,
|
|
379
|
+
name: chooseName(name, resolvedName),
|
|
376
380
|
source: rawSource,
|
|
377
381
|
places,
|
|
378
382
|
index: currentIndex,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.5.0",
|
|
4
4
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
5
|
"description": "🐊 Pluggable and configurable code transformer with built-in eslint, babel plugins and jscodeshift codemods support of js, jsx typescript, flow files, markdown, yaml and json",
|
|
6
6
|
"homepage": "http://github.com/coderaiser/putout",
|