@date-io/date-fns
Advanced tools
Comparing version 2.9.2 to 2.10.0
{ | ||
"name": "@date-io/date-fns", | ||
"version": "2.9.2", | ||
"version": "2.10.0", | ||
"description": "Abstraction over common javascript date management libraries", | ||
@@ -36,10 +36,10 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@date-io/core": "^2.9.2" | ||
"@date-io/core": "^2.10.0" | ||
}, | ||
"devDependencies": { | ||
"date-fns": "2.15.0", | ||
"date-fns": "2.16.1", | ||
"rollup": "^2.0.2", | ||
"typescript": "^3.7.2" | ||
}, | ||
"gitHead": "4712b8927e09e6bb5378436783e15d48e174584d" | ||
"gitHead": "3b596e88e257510621c56883233ebc7676161e9f" | ||
} |
import addDays from "date-fns/addDays"; | ||
import addSeconds from "date-fns/addSeconds"; | ||
import addMinutes from "date-fns/addMinutes"; | ||
import addHours from "date-fns/addHours"; | ||
import addWeeks from "date-fns/addWeeks"; | ||
import addMonths from "date-fns/addMonths"; | ||
@@ -125,2 +129,14 @@ import addYears from "date-fns/addYears"; | ||
public addSeconds(value: Date, count: number) { | ||
return addSeconds(value, count); | ||
} | ||
public addMinutes(value: Date, count: number) { | ||
return addMinutes(value, count); | ||
} | ||
public addHours(value: Date, count: number) { | ||
return addHours(value, count); | ||
} | ||
public addDays(value: Date, count: number) { | ||
@@ -130,2 +146,6 @@ return addDays(value, count); | ||
public addWeeks(value: Date, count: number) { | ||
return addWeeks(value, count); | ||
} | ||
public addMonths(value: Date, count: number) { | ||
@@ -132,0 +152,0 @@ return addMonths(value, count); |
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
47099
1109
0
Updated@date-io/core@^2.10.0