@code-pushup/utils 0.10.4 → 0.10.5

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/index.js CHANGED
@@ -1039,6 +1039,7 @@ var mpb;
1039
1039
  function getSingletonProgressBars(options) {
1040
1040
  if (!mpb) {
1041
1041
  mpb = new MultiProgressBars({
1042
+ progressWidth: TERMINAL_WIDTH,
1042
1043
  initMessage: "",
1043
1044
  border: true,
1044
1045
  ...options
@@ -1374,6 +1375,8 @@ function reportToOverviewSection2({
1374
1375
  plugins
1375
1376
  }) {
1376
1377
  const table = new CliTable3({
1378
+ // eslint-disable-next-line no-magic-numbers
1379
+ colWidths: [TERMINAL_WIDTH - 7 - 8 - 4, 7, 8],
1377
1380
  head: reportRawOverviewTableHeaders,
1378
1381
  colAligns: ["left", "right", "right"],
1379
1382
  style: {
@@ -1613,6 +1616,7 @@ export {
1613
1616
  FOOTER_PREFIX,
1614
1617
  ProcessError,
1615
1618
  README_LINK,
1619
+ TERMINAL_WIDTH,
1616
1620
  calcDuration,
1617
1621
  compareIssueSeverity,
1618
1622
  countOccurrences,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/utils",
3
- "version": "0.10.4",
3
+ "version": "0.10.5",
4
4
  "dependencies": {
5
5
  "@code-pushup/models": "*",
6
6
  "bundle-require": "^4.0.1",
package/src/index.d.ts CHANGED
@@ -11,5 +11,6 @@ export { generateStdoutSummary } from './lib/reports/generate-stdout-summary';
11
11
  export { ScoredReport, scoreReport } from './lib/reports/scoring';
12
12
  export { sortReport } from './lib/reports/sorting';
13
13
  export { CODE_PUSHUP_DOMAIN, FOOTER_PREFIX, README_LINK, calcDuration, compareIssueSeverity, loadReport, } from './lib/reports/utils';
14
+ export { TERMINAL_WIDTH } from './lib/reports/constants';
14
15
  export { CliArgsObject, countOccurrences, distinct, factorOf, objectToCliArgs, objectToEntries, objectToKeys, toArray, toUnixPath, } from './lib/transform';
15
16
  export { verboseUtils } from './lib/verbose-utils';