@code-pushup/core 0.22.8 → 0.23.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.
Files changed (2) hide show
  1. package/index.js +3 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -966,10 +966,9 @@ function formatGitPath(path, gitRoot) {
966
966
  return toUnixPath(relativePath);
967
967
  }
968
968
  function validateCommitData(commitData, options = {}) {
969
- const { throwError = false } = options;
970
969
  if (!commitData) {
971
970
  const msg = "no commit data available";
972
- if (throwError) {
971
+ if (options?.throwError) {
973
972
  throw new Error(msg);
974
973
  } else {
975
974
  console.warn(msg);
@@ -1536,7 +1535,7 @@ var verboseUtils = (verbose = false) => ({
1536
1535
 
1537
1536
  // packages/core/package.json
1538
1537
  var name = "@code-pushup/core";
1539
- var version = "0.22.8";
1538
+ var version = "0.23.1";
1540
1539
 
1541
1540
  // packages/core/src/lib/implementation/execute-plugin.ts
1542
1541
  import chalk5 from "chalk";
@@ -1860,9 +1859,7 @@ function auditToGQL(audit) {
1860
1859
  formattedValue: audit.displayValue,
1861
1860
  ...audit.details && {
1862
1861
  details: {
1863
- ...audit.details.issues && {
1864
- issues: audit.details.issues.map(issueToGQL)
1865
- }
1862
+ issues: audit.details.issues.map(issueToGQL)
1866
1863
  }
1867
1864
  }
1868
1865
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/core",
3
- "version": "0.22.8",
3
+ "version": "0.23.1",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "@code-pushup/models": "*",