@date-io/date-fns-jalali
Advanced tools
Comparing version 2.13.2 to 2.14.0
@@ -36,2 +36,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; | ||
@@ -38,0 +40,0 @@ endOfMonth: (value: Date) => Date; |
@@ -214,2 +214,8 @@ import addSeconds from 'date-fns-jalali/addSeconds'; | ||
}; | ||
this.startOfYear = function (value) { | ||
return startOfYear(value); | ||
}; | ||
this.endOfYear = function (value) { | ||
return endOfYear(value); | ||
}; | ||
this.startOfMonth = function (value) { | ||
@@ -216,0 +222,0 @@ return startOfMonth(value); |
@@ -271,2 +271,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) { | ||
@@ -273,0 +279,0 @@ return startOfMonth__default["default"](value); |
{ | ||
"name": "@date-io/date-fns-jalali", | ||
"version": "2.13.2", | ||
"version": "2.14.0", | ||
"description": "Abstraction over common javascript date management libraries", | ||
@@ -43,3 +43,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@date-io/core": "^2.13.2" | ||
"@date-io/core": "^2.14.0" | ||
}, | ||
@@ -51,3 +51,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "c83bcc817b3589b4fe0d031e065f9ccd36a4d4c1" | ||
"gitHead": "77f89b4859d228ed8f34c740e3defc78d52bdba1" | ||
} |
@@ -251,2 +251,10 @@ import addSeconds from "date-fns-jalali/addSeconds"; | ||
public startOfYear = (value: Date) => { | ||
return startOfYear(value); | ||
}; | ||
public endOfYear = (value: Date) => { | ||
return endOfYear(value); | ||
}; | ||
public startOfMonth = (value: Date) => { | ||
@@ -253,0 +261,0 @@ return startOfMonth(value); |
54722
1267
Updated@date-io/core@^2.14.0