@code-pushup/core 0.14.1 → 0.14.3

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 +9 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1369,6 +1369,13 @@ function deepClone(obj) {
1369
1369
  }
1370
1370
 
1371
1371
  // packages/utils/src/lib/reports/scoring.ts
1372
+ var GroupRefInvalidError = class extends Error {
1373
+ constructor(auditSlug, pluginSlug) {
1374
+ super(
1375
+ `Group has invalid ref - audit with slug ${auditSlug} from plugin ${pluginSlug} not found`
1376
+ );
1377
+ }
1378
+ };
1372
1379
  function scoreReport(report) {
1373
1380
  const allScoredAuditsAndGroups = /* @__PURE__ */ new Map();
1374
1381
  const scoredPlugins = report.plugins.map((plugin) => {
@@ -1382,9 +1389,7 @@ function scoreReport(report) {
1382
1389
  `${slug}-${ref.slug}-audit`
1383
1390
  )?.score;
1384
1391
  if (score == null) {
1385
- throw new Error(
1386
- `Group has invalid ref - audit with slug ${ref.slug} from plugin ${slug} not found`
1387
- );
1392
+ throw new GroupRefInvalidError(ref.slug, slug);
1388
1393
  }
1389
1394
  return score;
1390
1395
  }
@@ -1525,7 +1530,7 @@ var verboseUtils = (verbose = false) => ({
1525
1530
 
1526
1531
  // packages/core/package.json
1527
1532
  var name = "@code-pushup/core";
1528
- var version = "0.14.1";
1533
+ var version = "0.14.3";
1529
1534
 
1530
1535
  // packages/core/src/lib/implementation/execute-plugin.ts
1531
1536
  import chalk4 from "chalk";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/core",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "@code-pushup/models": "*",