@code-pushup/cli 0.14.0 → 0.14.2

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 (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +9 -4
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -156,7 +156,7 @@ Each example is fully tested to demonstrate best practices for plugin testing as
156
156
 
157
157
  - 📏 [File Size](../../examples/plugins/src/file-size)
158
158
  - 📦 [Package Json](../../examples/plugins/src/package-json)
159
- - 🔥 [Lighthouse](../../examples/plugins/src/lighthouse)
159
+ - 🔥 [Lighthouse](../../examples/plugins/src/lighthouse) (official implementation [here](../../../../packages/plugin-lighthouse))
160
160
 
161
161
  ## CLI commands and options
162
162
 
package/index.js CHANGED
@@ -1377,6 +1377,13 @@ function deepClone(obj) {
1377
1377
  }
1378
1378
 
1379
1379
  // packages/utils/src/lib/reports/scoring.ts
1380
+ var GroupRefInvalidError = class extends Error {
1381
+ constructor(auditSlug, pluginSlug) {
1382
+ super(
1383
+ `Group has invalid ref - audit with slug ${auditSlug} from plugin ${pluginSlug} not found`
1384
+ );
1385
+ }
1386
+ };
1380
1387
  function scoreReport(report) {
1381
1388
  const allScoredAuditsAndGroups = /* @__PURE__ */ new Map();
1382
1389
  const scoredPlugins = report.plugins.map((plugin) => {
@@ -1390,9 +1397,7 @@ function scoreReport(report) {
1390
1397
  `${slug}-${ref.slug}-audit`
1391
1398
  )?.score;
1392
1399
  if (score == null) {
1393
- throw new Error(
1394
- `Group has invalid ref - audit with slug ${ref.slug} from plugin ${slug} not found`
1395
- );
1400
+ throw new GroupRefInvalidError(ref.slug, slug);
1396
1401
  }
1397
1402
  return score;
1398
1403
  }
@@ -1533,7 +1538,7 @@ var verboseUtils = (verbose = false) => ({
1533
1538
 
1534
1539
  // packages/core/package.json
1535
1540
  var name = "@code-pushup/core";
1536
- var version = "0.14.0";
1541
+ var version = "0.14.2";
1537
1542
 
1538
1543
  // packages/core/src/lib/implementation/execute-plugin.ts
1539
1544
  import chalk4 from "chalk";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/cli",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "code-pushup": "index.js"