@emeryld/rrroutes-export 1.0.12 → 1.0.13

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.
@@ -58,6 +58,7 @@ export type SourceSchemaPathDelta = {
58
58
  export type ChangelogCommit = {
59
59
  sha: string;
60
60
  authorDate: string;
61
+ authorName: string;
61
62
  subject: string;
62
63
  };
63
64
  export type RouteChangeType = 'route_added' | 'route_removed' | 'schema_changed' | 'cfg_changed';
package/dist/index.cjs CHANGED
@@ -1661,14 +1661,15 @@ async function filterCommits(cwd, commits, moduleCandidates, tsconfigRel) {
1661
1661
  return keep;
1662
1662
  }
1663
1663
  async function getCommitMetadata(cwd, commit) {
1664
- const out = await runGit(cwd, ["show", "-s", "--format=%H%x1f%aI%x1f%s", commit]);
1665
- const [sha, authorDate, subject] = out.split("");
1666
- if (!sha || !authorDate) {
1664
+ const out = await runGit(cwd, ["show", "-s", "--format=%H%x1f%aI%x1f%an%x1f%s", commit]);
1665
+ const [sha, authorDate, authorName, subject] = out.split("");
1666
+ if (!sha || !authorDate || !authorName) {
1667
1667
  throw new Error(`Unable to read commit metadata for ${commit}`);
1668
1668
  }
1669
1669
  return {
1670
1670
  sha,
1671
1671
  authorDate,
1672
+ authorName,
1672
1673
  subject: subject ?? ""
1673
1674
  };
1674
1675
  }