@putout/formatter-dump 2.0.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.
- package/README.md +5 -9
- package/lib/dump.js +7 -7
- package/package.json +20 -15
package/README.md
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
# putout-formatter-dump [![NPM version][NPMIMGURL]][NPMURL]
|
|
1
|
+
# @putout/putout-formatter-dump [![NPM version][NPMIMGURL]][NPMURL]
|
|
2
2
|
|
|
3
|
-
[NPMIMGURL]:
|
|
4
|
-
[NPMURL]:
|
|
3
|
+
[NPMIMGURL]: https://img.shields.io/npm/v/@putout/formatter-dump.svg?style=flat&longCache=true
|
|
4
|
+
[NPMURL]: https://npmjs.org/package/@putout/formatter-dump "npm"
|
|
5
5
|
|
|
6
|
-
[
|
|
7
|
-
[DependencyStatusIMGURL]: https://david-dm.org/coderaiser/putout.svg?path=packages/formatter-dump
|
|
8
|
-
|
|
9
|
-
`putout` formatter stores output and dump it on end.
|
|
6
|
+
🐊[`Putout`](https://github.com/coderaiser/putout) formatter stores output and dump it on end.
|
|
10
7
|
|
|
11
8
|
## Install
|
|
12
9
|
|
|
13
10
|
```
|
|
14
|
-
npm i putout @putout/formatter-dump
|
|
11
|
+
npm i putout @putout/formatter-dump
|
|
15
12
|
```
|
|
16
13
|
|
|
17
14
|
## Usage
|
|
@@ -23,4 +20,3 @@ putout --format dump lib
|
|
|
23
20
|
## License
|
|
24
21
|
|
|
25
22
|
MIT
|
|
26
|
-
|
package/lib/dump.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const {
|
|
1
|
+
import {
|
|
4
2
|
table,
|
|
5
3
|
getBorderCharacters,
|
|
6
|
-
}
|
|
4
|
+
} from 'table';
|
|
5
|
+
|
|
6
|
+
import chalk from 'chalk';
|
|
7
7
|
|
|
8
8
|
const {
|
|
9
9
|
underline,
|
|
@@ -11,11 +11,11 @@ const {
|
|
|
11
11
|
grey,
|
|
12
12
|
bold,
|
|
13
13
|
redBright,
|
|
14
|
-
} =
|
|
14
|
+
} = chalk;
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
import {jsonFormatter} from '@putout/formatter-json';
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
export default ({name, places, index, count, filesCount, errorsCount}) => {
|
|
19
19
|
const json = jsonFormatter({
|
|
20
20
|
name, places, index, count, filesCount, errorsCount,
|
|
21
21
|
});
|
package/package.json
CHANGED
|
@@ -1,27 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/formatter-dump",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
5
|
"description": "putout formatter stores output and dump it on end",
|
|
6
|
-
"homepage": "
|
|
6
|
+
"homepage": "https://github.com/coderaiser/putout/tree/master/packages/formatter-dump",
|
|
7
7
|
"main": "lib/dump.js",
|
|
8
8
|
"release": false,
|
|
9
9
|
"tag": false,
|
|
10
10
|
"changelog": false,
|
|
11
|
+
"type": "module",
|
|
11
12
|
"repository": {
|
|
12
13
|
"type": "git",
|
|
13
14
|
"url": "git://github.com/coderaiser/putout.git"
|
|
14
15
|
},
|
|
15
16
|
"scripts": {
|
|
16
17
|
"test": "madrun test",
|
|
18
|
+
"watch:test": "madrun watch:test",
|
|
17
19
|
"lint": "madrun lint",
|
|
20
|
+
"fresh:lint": "madrun fresh:lint",
|
|
21
|
+
"lint:fresh": "madrun lint:fresh",
|
|
18
22
|
"fix:lint": "madrun fix:lint",
|
|
19
|
-
"coverage": "madrun coverage"
|
|
23
|
+
"coverage": "madrun coverage",
|
|
24
|
+
"report": "madrun report"
|
|
20
25
|
},
|
|
21
26
|
"dependencies": {
|
|
22
|
-
"@putout/formatter-json": "^
|
|
23
|
-
"chalk": "^
|
|
24
|
-
"table": "^
|
|
27
|
+
"@putout/formatter-json": "^2.0.0",
|
|
28
|
+
"chalk": "^5.0.0",
|
|
29
|
+
"table": "^6.0.1"
|
|
25
30
|
},
|
|
26
31
|
"keywords": [
|
|
27
32
|
"putout",
|
|
@@ -30,21 +35,21 @@
|
|
|
30
35
|
"dump"
|
|
31
36
|
],
|
|
32
37
|
"devDependencies": {
|
|
33
|
-
"@putout/plugin-remove-unused-variables": "
|
|
34
|
-
"@putout/test": "^
|
|
35
|
-
"
|
|
36
|
-
"eslint": "^
|
|
38
|
+
"@putout/plugin-remove-unused-variables": "*",
|
|
39
|
+
"@putout/test": "^4.0.0",
|
|
40
|
+
"c8": "^7.5.0",
|
|
41
|
+
"eslint": "^8.0.1",
|
|
37
42
|
"eslint-plugin-node": "^11.0.0",
|
|
38
|
-
"eslint-plugin-putout": "^
|
|
39
|
-
"madrun": "^
|
|
40
|
-
"
|
|
43
|
+
"eslint-plugin-putout": "^12.0.0",
|
|
44
|
+
"madrun": "^8.0.1",
|
|
45
|
+
"simport": "^1.2.0"
|
|
41
46
|
},
|
|
42
47
|
"peerDependencies": {
|
|
43
|
-
"putout": ">=
|
|
48
|
+
"putout": ">=22.5"
|
|
44
49
|
},
|
|
45
50
|
"license": "MIT",
|
|
46
51
|
"engines": {
|
|
47
|
-
"node": ">=
|
|
52
|
+
"node": ">=14"
|
|
48
53
|
},
|
|
49
54
|
"publishConfig": {
|
|
50
55
|
"access": "public"
|