putout 34.2.0 → 34.2.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 +13 -0
- package/lib/cli/report.js +5 -0
- package/package.json +2 -2
package/ChangeLog
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
2023.12.19, v34.2.1
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 3c57c56ee putout: cli: report: handle case when no places passed
|
|
5
|
+
- fffa6857e root: redlint v3.1.2
|
|
6
|
+
- d36abc4e5 putout: @putout/plugin-putout-config v5.0.0
|
|
7
|
+
- 131463cba @putout/plugin-filesystem: read-all-files: add
|
|
8
|
+
- 125690c2d @putout/plugin-putout-config: drop support of node < 18
|
|
9
|
+
- 264d4b3e2 @putout/plugin-putout-config: convert-boolean-to-string: exclude arrays
|
|
10
|
+
- 2cfb08ca7 @putout/plugin-filesystem: convert-filesystem-to-simple-filesystem: empty content
|
|
11
|
+
- 95beb62a9 @putout/operator-filesystem: readFileContent: directory
|
|
12
|
+
- d8f1799ff @putout/plugin-filesystem: report: improve
|
|
13
|
+
|
|
1
14
|
2023.12.18, v34.2.0
|
|
2
15
|
|
|
3
16
|
fix:
|
package/lib/cli/report.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const {isArray} = Array;
|
|
4
|
+
|
|
3
5
|
module.exports = () => {
|
|
4
6
|
let filesCount = 0;
|
|
5
7
|
let errorsCount = 0;
|
|
@@ -15,6 +17,9 @@ module.exports = () => {
|
|
|
15
17
|
formatterOptions = {},
|
|
16
18
|
} = options;
|
|
17
19
|
|
|
20
|
+
if (!isArray(places))
|
|
21
|
+
throw Error(`☝️ Looks like for 'places: Places[]' you passed the wrong type: '${typeof places}'`);
|
|
22
|
+
|
|
18
23
|
if (places.length)
|
|
19
24
|
++filesCount;
|
|
20
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "34.2.
|
|
3
|
+
"version": "34.2.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",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"@putout/plugin-package-json": "^6.0.0",
|
|
128
128
|
"@putout/plugin-promises": "^14.0.0",
|
|
129
129
|
"@putout/plugin-putout": "^18.0.0",
|
|
130
|
-
"@putout/plugin-putout-config": "^
|
|
130
|
+
"@putout/plugin-putout-config": "^5.0.0",
|
|
131
131
|
"@putout/plugin-regexp": "^8.0.0",
|
|
132
132
|
"@putout/plugin-remove-console": "^6.0.0",
|
|
133
133
|
"@putout/plugin-remove-constant-conditions": "^4.0.0",
|