@date-io/date-fns
Advanced tools
Comparing version 2.13.2 to 2.14.0
@@ -38,2 +38,4 @@ import { IUtils, DateIOFormats, Unit } from "@date-io/core/IUtils"; | ||
isSameHour: (value: Date, comparing: Date) => boolean; | ||
startOfYear: (value: Date) => Date; | ||
endOfYear: (value: Date) => Date; | ||
startOfMonth: (value: Date) => Date; | ||
@@ -40,0 +42,0 @@ endOfMonth: (value: Date) => Date; |
@@ -206,2 +206,8 @@ import addDays from 'date-fns/addDays'; | ||
}; | ||
this.startOfYear = function (value) { | ||
return startOfYear(value); | ||
}; | ||
this.endOfYear = function (value) { | ||
return endOfYear(value); | ||
}; | ||
this.startOfMonth = function (value) { | ||
@@ -208,0 +214,0 @@ return startOfMonth(value); |
@@ -261,2 +261,8 @@ 'use strict'; | ||
}; | ||
this.startOfYear = function (value) { | ||
return startOfYear__default["default"](value); | ||
}; | ||
this.endOfYear = function (value) { | ||
return endOfYear__default["default"](value); | ||
}; | ||
this.startOfMonth = function (value) { | ||
@@ -263,0 +269,0 @@ return startOfMonth__default["default"](value); |
{ | ||
"name": "@date-io/date-fns", | ||
"version": "2.13.2", | ||
"version": "2.14.0", | ||
"description": "Abstraction over common javascript date management libraries", | ||
@@ -41,3 +41,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@date-io/core": "^2.13.2" | ||
"@date-io/core": "^2.14.0" | ||
}, | ||
@@ -49,3 +49,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "c83bcc817b3589b4fe0d031e065f9ccd36a4d4c1" | ||
"gitHead": "77f89b4859d228ed8f34c740e3defc78d52bdba1" | ||
} |
@@ -244,2 +244,10 @@ import addDays from "date-fns/addDays"; | ||
public startOfYear = (value: Date) => { | ||
return startOfYear(value); | ||
}; | ||
public endOfYear = (value: Date) => { | ||
return endOfYear(value); | ||
}; | ||
public startOfMonth = (value: Date) => { | ||
@@ -246,0 +254,0 @@ return startOfMonth(value); |
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found
Found 1 instance in 1 package
52142
1216
2
80
Updated@date-io/core@^2.14.0