@bodar/totallylazy
Advanced tools
Comparing version
@@ -40,4 +40,4 @@ import { NamedMatch, NamedRegExp } from "../characters"; | ||
export declare class InferYear implements DateFactory { | ||
private date; | ||
private direction; | ||
private readonly date; | ||
private constructor(); | ||
@@ -44,0 +44,0 @@ static before(date: Date): DateFactory; |
@@ -146,4 +146,4 @@ "use strict"; | ||
constructor(date, direction) { | ||
this.date = date; | ||
this.direction = direction; | ||
this.date = Days.startOf(date); | ||
} | ||
@@ -212,3 +212,3 @@ static before(date) { | ||
if (typeof year === "undefined") { | ||
return InferYear.after(Days.startOf(this.clock.now())).create(year, month, day); | ||
return InferYear.after(this.clock.now()).create(year, month, day); | ||
} | ||
@@ -215,0 +215,0 @@ return InferYear.sliding(this.clock).create(year, month, day); |
{ | ||
"name": "@bodar/totallylazy", | ||
"version": "0.436.279", | ||
"version": "0.437.280", | ||
"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
439482
0.01%