technical-debt-radar 1.3.1 → 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.
- package/dist/index.js +5 -4
- 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: "
|
|
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
|
-
|
|
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 "
|
|
14586
|
+
return "warning";
|
|
14586
14587
|
return VOLUME_SEVERITY[vol.size];
|
|
14587
14588
|
}
|
|
14588
14589
|
function gateForVolume(vol) {
|