@code-pushup/core 0.1.0 → 0.1.1
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 -2
- package/package.json +1 -1
- package/src/index.d.ts +1 -1
package/index.js
CHANGED
|
@@ -543,7 +543,8 @@ function slugify(text) {
|
|
|
543
543
|
return text.trim().toLowerCase().replace(/\s+|\//g, "-").replace(/[^a-z0-9-]/g, "");
|
|
544
544
|
}
|
|
545
545
|
function formatBytes(bytes, decimals = 2) {
|
|
546
|
-
|
|
546
|
+
bytes = Math.max(bytes, 0);
|
|
547
|
+
if (!bytes)
|
|
547
548
|
return "0 B";
|
|
548
549
|
const k = 1024;
|
|
549
550
|
const dm = decimals < 0 ? 0 : decimals;
|
|
@@ -1587,7 +1588,7 @@ function auditOutputsCorrelateWithPluginOutput(auditOutputs, pluginConfigAudits)
|
|
|
1587
1588
|
|
|
1588
1589
|
// packages/core/package.json
|
|
1589
1590
|
var name = "@code-pushup/core";
|
|
1590
|
-
var version = "0.1.
|
|
1591
|
+
var version = "0.1.1";
|
|
1591
1592
|
|
|
1592
1593
|
// packages/core/src/lib/implementation/collect.ts
|
|
1593
1594
|
async function collect(options) {
|
|
@@ -1750,6 +1751,7 @@ export {
|
|
|
1750
1751
|
PluginOutputMissingAuditError,
|
|
1751
1752
|
collect,
|
|
1752
1753
|
collectAndPersistReports,
|
|
1754
|
+
executePlugin,
|
|
1753
1755
|
executePlugins,
|
|
1754
1756
|
persistReport,
|
|
1755
1757
|
readCodePushupConfig,
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { persistReport, PersistError, PersistDirError, } from './lib/implementation/persist';
|
|
2
|
-
export { executePlugins, PluginOutputMissingAuditError, } from './lib/implementation/execute-plugin';
|
|
2
|
+
export { executePlugin, executePlugins, PluginOutputMissingAuditError, } from './lib/implementation/execute-plugin';
|
|
3
3
|
export { collect, CollectOptions } from './lib/implementation/collect';
|
|
4
4
|
export { upload, UploadOptions } from './lib/upload';
|
|
5
5
|
export { GlobalOptions } from './lib/types';
|