@bodar/totallylazy
Advanced tools
Comparing version 0.454.296 to 0.455.297
@@ -178,5 +178,7 @@ "use strict"; | ||
} | ||
// Dates repeat every 5,6 or 11 years so we choose a 12 year range | ||
// Then start with today's date (0) and alternate between the future (+1) and the past (-1) | ||
candidates(month, day) { | ||
const now = Days.startOf(this.clock.now()); | ||
return collections_1.array(sequence_1.range(0, 5), transducers_1.zip(sequence_1.range(-1, -5)), transducers_1.flatMap(a => a), parsing_1.mapIgnoreError(inc => index_1.date(index_1.yearOf(now) + inc, month, day))); | ||
return collections_1.array(sequence_1.range(0, -6), transducers_1.zip(sequence_1.range(1, 6)), transducers_1.flatMap(a => a), parsing_1.mapIgnoreError(inc => index_1.date(index_1.yearOf(now) + inc, month, day))); | ||
} | ||
@@ -183,0 +185,0 @@ } |
{ | ||
"name": "@bodar/totallylazy", | ||
"version": "0.454.296", | ||
"version": "0.455.297", | ||
"description": "Totallylazy", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:bodar/totallylazy.js.git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
455610
6674