@putout/formatter-memory 2.0.1 → 3.0.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/README.md +1 -1
- package/lib/memory.js +2 -3
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[NPMIMGURL]: https://img.shields.io/npm/v/@putout/formatter-memory.svg?style=flat&longCache=true
|
|
4
4
|
[NPMURL]: https://npmjs.org/package/@putout/formatter-memory "npm"
|
|
5
5
|
|
|
6
|
-
🐊[
|
|
6
|
+
🐊[**Putout**](https://github.com/coderaiser/putout) formatter shows memory used.
|
|
7
7
|
|
|
8
8
|
## Install
|
|
9
9
|
|
package/lib/memory.js
CHANGED
|
@@ -76,8 +76,7 @@ const getColorFn = (color) => {
|
|
|
76
76
|
return chalk[color];
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
const
|
|
80
|
-
export const _getStream = getStream;
|
|
79
|
+
export const _getStream = () => PUTOUT_PROGRESS_BAR !== '1' ? new Writable() : stderr;
|
|
81
80
|
|
|
82
81
|
const createProgress = once(({count, color, rss}) => {
|
|
83
82
|
const colorFn = getColorFn(color);
|
|
@@ -87,7 +86,7 @@ const createProgress = once(({count, color, rss}) => {
|
|
|
87
86
|
barIncompleteChar: '\u2591',
|
|
88
87
|
clearOnComplete: true,
|
|
89
88
|
stopOnComplete: true,
|
|
90
|
-
stream:
|
|
89
|
+
stream: _getStream(),
|
|
91
90
|
hideCursor: true,
|
|
92
91
|
}, cliProgress.Presets.react);
|
|
93
92
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/formatter-memory",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
5
|
"description": "putout formatter shows memory usage",
|
|
6
|
-
"homepage": "https://github.com/coderaiser/putout/tree/master/packages/formatter-memory",
|
|
6
|
+
"homepage": "https://github.com/coderaiser/putout/tree/master/packages/formatter-memory#readme",
|
|
7
7
|
"main": "lib/memory.js",
|
|
8
8
|
"release": false,
|
|
9
9
|
"tag": false,
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"report": "madrun report"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@putout/formatter-dump": "^
|
|
30
|
-
"chalk": "^
|
|
29
|
+
"@putout/formatter-dump": "^4.0.0",
|
|
30
|
+
"chalk": "^5.0.1",
|
|
31
31
|
"cli-progress": "^3.8.2",
|
|
32
32
|
"format-io": "^2.0.0",
|
|
33
33
|
"montag": "^1.1.0",
|
|
@@ -41,20 +41,20 @@
|
|
|
41
41
|
],
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@putout/plugin-remove-unused-variables": "*",
|
|
44
|
-
"@putout/test": "^
|
|
44
|
+
"@putout/test": "^5.0.0",
|
|
45
45
|
"c8": "^7.5.0",
|
|
46
46
|
"eslint": "^8.0.1",
|
|
47
47
|
"eslint-plugin-node": "^11.0.0",
|
|
48
|
-
"eslint-plugin-putout": "^
|
|
49
|
-
"madrun": "^
|
|
48
|
+
"eslint-plugin-putout": "^14.0.0",
|
|
49
|
+
"madrun": "^9.0.0",
|
|
50
50
|
"mock-require": "^3.0.3"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"putout": ">=
|
|
53
|
+
"putout": ">=25"
|
|
54
54
|
},
|
|
55
55
|
"license": "MIT",
|
|
56
56
|
"engines": {
|
|
57
|
-
"node": ">=
|
|
57
|
+
"node": ">=16"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|