technical-debt-radar 1.3.2 → 1.3.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/dist/index.js +5 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -14517,7 +14517,7 @@ var require_perf_pattern_detector = __commonJS({
14517
14517
  return closest;
14518
14518
  }
14519
14519
  var VOLUME_SEVERITY = {
14520
- S: "info",
14520
+ S: "warning",
14521
14521
  M: "warning",
14522
14522
  L: "critical",
14523
14523
  XL: "critical",
@@ -14573,16 +14573,17 @@ var require_perf_pattern_detector = __commonJS({
14573
14573
  candidates.add(origLower + "s");
14574
14574
  candidates.add(origSnaked + "s");
14575
14575
  }
14576
- for (const candidate of candidates) {
14576
+ for (const candidate of [...candidates]) {
14577
14577
  const match = policy.volumes.find((v) => v.entity.toLowerCase() === candidate);
14578
14578
  if (match)
14579
14579
  return match;
14580
14580
  }
14581
- return void 0;
14581
+ const defaultVol = policy.volumes.find((v) => v.entity.toLowerCase() === "default");
14582
+ return defaultVol ?? void 0;
14582
14583
  }
14583
14584
  function severityForVolume(vol) {
14584
14585
  if (!vol)
14585
- return "info";
14586
+ return "warning";
14586
14587
  return VOLUME_SEVERITY[vol.size];
14587
14588
  }
14588
14589
  function gateForVolume(vol) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "technical-debt-radar",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "Stop Node.js production crashes before merge. 47 detection patterns across 5 categories.",
5
5
  "bin": {
6
6
  "radar": "dist/index.js",