@naturalcycles/nodejs-lib 13.31.0 → 13.31.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.
|
@@ -41,9 +41,9 @@ class NDJsonStats {
|
|
|
41
41
|
toPretty(name) {
|
|
42
42
|
return [
|
|
43
43
|
`Processed ${name ? (0, colors_1.boldWhite)(name) + ': ' : ''}${(0, colors_1.dimWhite)(this.rows)} rows, ${(0, colors_1.dimWhite)((0, js_lib_1._hb)(this.sizeBytes))} in ${(0, colors_1.dimWhite)((0, js_lib_1._ms)(this.tookMillis))}`,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
(0, colors_1.dimWhite)(this.rpsTotal + ' rows/sec'),
|
|
45
|
+
(0, colors_1.dimWhite)((0, js_lib_1._hb)(this.avgBytesPerRow) + '/row'),
|
|
46
|
+
(0, colors_1.dimWhite)((0, js_lib_1._hb)(this.bpsTotal) + '/sec'),
|
|
47
47
|
].join(', ');
|
|
48
48
|
}
|
|
49
49
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/nodejs-lib",
|
|
3
|
-
"version": "13.31.
|
|
3
|
+
"version": "13.31.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"prepare": "husky",
|
|
6
|
+
"build": "dev-lib build",
|
|
7
|
+
"test": "dev-lib test",
|
|
8
|
+
"lint": "dev-lib lint",
|
|
9
|
+
"bt": "dev-lib bt",
|
|
10
|
+
"lbt": "dev-lib lbt",
|
|
6
11
|
"docs-serve": "vuepress dev docs",
|
|
7
12
|
"docs-build": "vuepress build docs",
|
|
8
13
|
"slack-this-debug": "tsn ./src/bin/slack-this.ts --channel test --msg 'Hello slack!'",
|
|
@@ -35,7 +40,7 @@
|
|
|
35
40
|
},
|
|
36
41
|
"devDependencies": {
|
|
37
42
|
"@naturalcycles/bench-lib": "^3.0.0",
|
|
38
|
-
"@naturalcycles/dev-lib": "^
|
|
43
|
+
"@naturalcycles/dev-lib": "^15.0.3",
|
|
39
44
|
"@types/node": "^20.1.0",
|
|
40
45
|
"@types/yargs": "^16.0.0",
|
|
41
46
|
"jest": "^29.0.0"
|
|
@@ -46,9 +46,9 @@ export class NDJsonStats {
|
|
|
46
46
|
`Processed ${name ? boldWhite(name) + ': ' : ''}${dimWhite(this.rows)} rows, ${dimWhite(
|
|
47
47
|
_hb(this.sizeBytes),
|
|
48
48
|
)} in ${dimWhite(_ms(this.tookMillis))}`,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
dimWhite(this.rpsTotal + ' rows/sec'),
|
|
50
|
+
dimWhite(_hb(this.avgBytesPerRow) + '/row'),
|
|
51
|
+
dimWhite(_hb(this.bpsTotal) + '/sec'),
|
|
52
52
|
].join(', ')
|
|
53
53
|
}
|
|
54
54
|
}
|