@code-pushup/utils 0.13.2 → 0.14.0
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/index.js +4 -4
- package/package.json +1 -1
- package/src/lib/verbose-utils.d.ts +1 -1
package/index.js
CHANGED
|
@@ -1517,7 +1517,7 @@ function scoreReport(report) {
|
|
|
1517
1517
|
)?.score;
|
|
1518
1518
|
if (score == null) {
|
|
1519
1519
|
throw new Error(
|
|
1520
|
-
`Group has invalid ref - audit with slug ${slug}
|
|
1520
|
+
`Group has invalid ref - audit with slug ${ref.slug} from plugin ${slug} not found`
|
|
1521
1521
|
);
|
|
1522
1522
|
}
|
|
1523
1523
|
return score;
|
|
@@ -1638,21 +1638,21 @@ function sortPlugins(plugins) {
|
|
|
1638
1638
|
}
|
|
1639
1639
|
|
|
1640
1640
|
// packages/utils/src/lib/verbose-utils.ts
|
|
1641
|
-
function getLogVerbose(verbose) {
|
|
1641
|
+
function getLogVerbose(verbose = false) {
|
|
1642
1642
|
return (...args) => {
|
|
1643
1643
|
if (verbose) {
|
|
1644
1644
|
console.info(...args);
|
|
1645
1645
|
}
|
|
1646
1646
|
};
|
|
1647
1647
|
}
|
|
1648
|
-
function getExecVerbose(verbose) {
|
|
1648
|
+
function getExecVerbose(verbose = false) {
|
|
1649
1649
|
return (fn) => {
|
|
1650
1650
|
if (verbose) {
|
|
1651
1651
|
fn();
|
|
1652
1652
|
}
|
|
1653
1653
|
};
|
|
1654
1654
|
}
|
|
1655
|
-
var verboseUtils = (verbose) => ({
|
|
1655
|
+
var verboseUtils = (verbose = false) => ({
|
|
1656
1656
|
log: getLogVerbose(verbose),
|
|
1657
1657
|
exec: getExecVerbose(verbose)
|
|
1658
1658
|
});
|
package/package.json
CHANGED