@date-io/date-fns
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -30,2 +30,4 @@ import { IUtils, DateIOFormats } from "@date-io/core/IUtils"; | ||
endOfMonth(value: Date): Date; | ||
startOfWeek(value: Date): Date; | ||
endOfWeek(value: Date): Date; | ||
getYear(value: Date): number; | ||
@@ -32,0 +34,0 @@ setYear(value: Date, count: number): Date; |
@@ -132,2 +132,8 @@ import addDays from 'date-fns/addDays'; | ||
}; | ||
DateFnsUtils.prototype.startOfWeek = function (value) { | ||
return startOfWeek(value); | ||
}; | ||
DateFnsUtils.prototype.endOfWeek = function (value) { | ||
return endOfWeek(value); | ||
}; | ||
DateFnsUtils.prototype.getYear = function (value) { | ||
@@ -134,0 +140,0 @@ return getYear(value); |
@@ -136,2 +136,8 @@ 'use strict'; | ||
}; | ||
DateFnsUtils.prototype.startOfWeek = function (value) { | ||
return startOfWeek(value); | ||
}; | ||
DateFnsUtils.prototype.endOfWeek = function (value) { | ||
return endOfWeek(value); | ||
}; | ||
DateFnsUtils.prototype.getYear = function (value) { | ||
@@ -138,0 +144,0 @@ return getYear(value); |
{ | ||
"name": "@date-io/date-fns", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "Abstraction over common javascript date management libraries", | ||
@@ -36,3 +36,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@date-io/core": "^2.3.0" | ||
"@date-io/core": "^2.4.0" | ||
}, | ||
@@ -44,3 +44,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "9073e951057d018665cdc2facd75892914cfa9bc" | ||
"gitHead": "d1b13999d15fce1c7b06d20654f1867ec6a7e096" | ||
} |
@@ -162,2 +162,10 @@ import addDays from "date-fns/addDays"; | ||
public startOfWeek(value: Date) { | ||
return startOfWeek(value); | ||
} | ||
public endOfWeek(value: Date) { | ||
return endOfWeek(value); | ||
} | ||
public getYear(value: Date) { | ||
@@ -164,0 +172,0 @@ return getYear(value); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33634
853
Updated@date-io/core@^2.4.0