@code-pushup/cli 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -551,7 +551,8 @@ function slugify(text) {
551
551
  return text.trim().toLowerCase().replace(/\s+|\//g, "-").replace(/[^a-z0-9-]/g, "");
552
552
  }
553
553
  function formatBytes(bytes, decimals = 2) {
554
- if (!+bytes)
554
+ bytes = Math.max(bytes, 0);
555
+ if (!bytes)
555
556
  return "0 B";
556
557
  const k = 1024;
557
558
  const dm = decimals < 0 ? 0 : decimals;
@@ -1595,7 +1596,7 @@ function auditOutputsCorrelateWithPluginOutput(auditOutputs, pluginConfigAudits)
1595
1596
 
1596
1597
  // packages/core/package.json
1597
1598
  var name = "@code-pushup/core";
1598
- var version = "0.1.0";
1599
+ var version = "0.1.1";
1599
1600
 
1600
1601
  // packages/core/src/lib/implementation/collect.ts
1601
1602
  async function collect(options2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "bin": {
5
5
  "code-pushup": "index.js"
6
6
  },