Skip to content

Commit cdb2047

Browse files
committed
feat(trends): add support for historical contribution views
1 parent ddc719b commit cdb2047

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

lib/github.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ type FetchOptions = {
241241
bypassCache?: boolean;
242242
from?: string;
243243
to?: string;
244+
rangeLabel?: string;
244245
signal?: AbortSignal;
245246
};
246247

utils/dashboardPeriod.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ function addDaysUtc(date: Date, offset: number): Date {
3939
}
4040

4141
function isValidIsoDate(value?: string): value is string {
42-
return Boolean(value) && !Number.isNaN(Date.parse(value));
42+
if (!value) return false;
43+
return !Number.isNaN(Date.parse(value));
4344
}
4445

4546
function toIsoDayStart(date: Date): string {

0 commit comments

Comments
 (0)