@code-pushup/core 0.28.0 → 0.30.0-alpha

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.
Files changed (2) hide show
  1. package/index.js +5 -10
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1238,7 +1238,7 @@ var ProcessError = class extends Error {
1238
1238
  }
1239
1239
  };
1240
1240
  function executeProcess(cfg) {
1241
- const { observer, cwd, command, args, alwaysResolve = false } = cfg;
1241
+ const { observer, cwd, command, args, ignoreExitCode = false } = cfg;
1242
1242
  const { onStdout, onError, onComplete } = observer ?? {};
1243
1243
  const date = (/* @__PURE__ */ new Date()).toISOString();
1244
1244
  const start = performance.now();
@@ -1258,7 +1258,7 @@ function executeProcess(cfg) {
1258
1258
  });
1259
1259
  process2.on("close", (code) => {
1260
1260
  const timings = { date, duration: calcDuration(start) };
1261
- if (code === 0 || alwaysResolve) {
1261
+ if (code === 0 || ignoreExitCode) {
1262
1262
  onComplete?.();
1263
1263
  resolve({ code, stdout, stderr, ...timings });
1264
1264
  } else {
@@ -1517,7 +1517,7 @@ function reportToDetailsSection(audit) {
1517
1517
  function reportToAboutSection(report) {
1518
1518
  const date = formatDate(/* @__PURE__ */ new Date());
1519
1519
  const { duration, version: version2, commit, plugins, categories } = report;
1520
- const commitInfo = commit ? `${commit.message} (${commit.hash.slice(0, 7)})` : "N/A";
1520
+ const commitInfo = commit ? `${commit.message} (${commit.hash})` : "N/A";
1521
1521
  const reportMetaTable = [
1522
1522
  reportMetaTableHeaders,
1523
1523
  [
@@ -1593,12 +1593,7 @@ function formatDiffHeaderSection(diff) {
1593
1593
  ...diff.audits.changed
1594
1594
  ])
1595
1595
  );
1596
- const styleCommit = (commit) => style(commit.hash.slice(0, 7), ["c"]);
1597
- const styleCommits = (commits) => {
1598
- const src = styleCommit(commits.before);
1599
- const tgt = styleCommit(commits.after);
1600
- return `compared target commit ${tgt} with source commit ${src}`;
1601
- };
1596
+ const styleCommits = (commits) => `compared target commit ${commits.after.hash} with source commit ${commits.before.hash}`;
1602
1597
  return paragraphs(
1603
1598
  h1("Code PushUp"),
1604
1599
  diff.commits ? `${outcomeTexts[outcome]} \u2013 ${styleCommits(diff.commits)}.` : `${outcomeTexts[outcome]}.`
@@ -2039,7 +2034,7 @@ var verboseUtils = (verbose = false) => ({
2039
2034
 
2040
2035
  // packages/core/package.json
2041
2036
  var name = "@code-pushup/core";
2042
- var version = "0.28.0";
2037
+ var version = "0.29.0";
2043
2038
 
2044
2039
  // packages/core/src/lib/implementation/execute-plugin.ts
2045
2040
  import chalk5 from "chalk";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/core",
3
- "version": "0.28.0",
3
+ "version": "0.30.0-alpha",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "@code-pushup/models": "*",