@date-io/date-fns
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -33,2 +33,3 @@ import { IUtils, DateIOFormats } from "@date-io/core/IUtils"; | ||
date(value?: any): Date; | ||
toJsDate(value: Date): Date; | ||
parse(value: string, formatString: string): Date; | ||
@@ -35,0 +36,0 @@ format(date: Date, formatKey: keyof DateIOFormats): string; |
@@ -147,2 +147,5 @@ import addDays from 'date-fns/addDays'; | ||
}; | ||
DateFnsUtils.prototype.toJsDate = function (value) { | ||
return value; | ||
}; | ||
DateFnsUtils.prototype.parse = function (value, formatString) { | ||
@@ -149,0 +152,0 @@ if (value === "") { |
@@ -151,2 +151,5 @@ 'use strict'; | ||
}; | ||
DateFnsUtils.prototype.toJsDate = function (value) { | ||
return value; | ||
}; | ||
DateFnsUtils.prototype.parse = function (value, formatString) { | ||
@@ -153,0 +156,0 @@ if (value === "") { |
{ | ||
"name": "@date-io/date-fns", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "Abstraction over common javascript date management libraries", | ||
@@ -36,3 +36,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@date-io/core": "^2.2.0" | ||
"@date-io/core": "^2.3.0" | ||
}, | ||
@@ -44,3 +44,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "fb544fcb8d281ae4642eb1677a3dc147d626c592" | ||
"gitHead": "9073e951057d018665cdc2facd75892914cfa9bc" | ||
} |
@@ -182,2 +182,6 @@ import addDays from "date-fns/addDays"; | ||
public toJsDate(value: Date) { | ||
return value; | ||
} | ||
public parse(value: string, formatString: string) { | ||
@@ -184,0 +188,0 @@ if (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
33024
833
Updated@date-io/core@^2.3.0