Pass back well-typed Date

This commit is contained in:
Jack Jackson 2025-03-05 18:21:09 -08:00
parent cafe1d9caf
commit b450cf3888
7 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View File

@ -25683,7 +25683,7 @@ function getNLatestCommits(dir, n) {
author_name: parsed.author_name,
author_email: parsed.author_email,
repo_path: dir,
date: parsed.date,
date: new Date(parsed.date),
message: parsed.message
};
});
@ -25706,7 +25706,7 @@ function getCommitsSinceLatestBeforeGivenDate(dir, date) {
author_name: parsed.author_name,
author_email: parsed.author_email,
repo_path: dir,
date: parsed.date,
date: new Date(parsed.date),
message: parsed.message
};
});

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -33,7 +33,7 @@ export function getNLatestCommits(dir: string, n: number): Commit[] {
author_name: parsed.author_name,
author_email: parsed.author_email,
repo_path: dir,
date: parsed.date,
date: new Date(parsed.date),
message: parsed.message
}
});
@ -62,7 +62,7 @@ export function getCommitsSinceLatestBeforeGivenDate(dir: string, date: Date): C
author_name: parsed.author_name,
author_email: parsed.author_email,
repo_path: dir,
date: parsed.date,
date: new Date(parsed.date),
message: parsed.message
}
});