@principal-ade/code-quality-panels 0.1.21 → 0.1.22
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/panels.bundle.js
CHANGED
|
@@ -455,9 +455,12 @@ const LENS_TO_METRIC_MAP = {
|
|
|
455
455
|
alexandria: "documentation"
|
|
456
456
|
};
|
|
457
457
|
function isMetricConfigured(metricKey, lensesRan) {
|
|
458
|
-
if (
|
|
458
|
+
if (lensesRan === void 0) {
|
|
459
459
|
return true;
|
|
460
460
|
}
|
|
461
|
+
if (lensesRan.length === 0) {
|
|
462
|
+
return false;
|
|
463
|
+
}
|
|
461
464
|
return lensesRan.some((lensId) => LENS_TO_METRIC_MAP[lensId] === metricKey);
|
|
462
465
|
}
|
|
463
466
|
const getMetricConfig = (themeColors) => [
|