@code-pushup/cli 0.9.0 → 0.10.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 +14 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -590,6 +590,18 @@ function formatDuration(duration) {
|
|
|
590
590
|
}
|
|
591
591
|
return `${(duration / 1e3).toFixed(2)} s`;
|
|
592
592
|
}
|
|
593
|
+
function formatDate(date) {
|
|
594
|
+
const locale = "en-US";
|
|
595
|
+
return date.toLocaleString(locale, {
|
|
596
|
+
weekday: "short",
|
|
597
|
+
month: "short",
|
|
598
|
+
day: "numeric",
|
|
599
|
+
year: "numeric",
|
|
600
|
+
hour: "numeric",
|
|
601
|
+
minute: "2-digit",
|
|
602
|
+
timeZoneName: "short"
|
|
603
|
+
}).replace(/\u202F/g, " ");
|
|
604
|
+
}
|
|
593
605
|
|
|
594
606
|
// packages/utils/src/lib/guards.ts
|
|
595
607
|
function isPromiseFulfilledResult(result) {
|
|
@@ -1223,7 +1235,7 @@ function reportToDetailsSection(audit) {
|
|
|
1223
1235
|
return details(detailsTitle, detailsTable);
|
|
1224
1236
|
}
|
|
1225
1237
|
function reportToAboutSection(report, commitData) {
|
|
1226
|
-
const date = (/* @__PURE__ */ new Date())
|
|
1238
|
+
const date = formatDate(/* @__PURE__ */ new Date());
|
|
1227
1239
|
const { duration, version: version2, plugins, categories } = report;
|
|
1228
1240
|
const commitInfo = commitData ? `${commitData.message} (${commitData.hash.slice(0, 7)})` : "N/A";
|
|
1229
1241
|
const reportMetaTable = [
|
|
@@ -1676,7 +1688,7 @@ function auditOutputsCorrelateWithPluginOutput(auditOutputs, pluginConfigAudits)
|
|
|
1676
1688
|
|
|
1677
1689
|
// packages/core/package.json
|
|
1678
1690
|
var name = "@code-pushup/core";
|
|
1679
|
-
var version = "0.
|
|
1691
|
+
var version = "0.10.0";
|
|
1680
1692
|
|
|
1681
1693
|
// packages/core/src/lib/implementation/collect.ts
|
|
1682
1694
|
async function collect(options2) {
|