@date-io/dayjs
Advanced tools
Comparing version 2.10.11 to 2.11.0
@@ -21,3 +21,5 @@ import defaultDayjs from "dayjs"; | ||
getFormatHelperText: (format: string) => string; | ||
parse: (value: any, format: any) => TDate; | ||
parseISO: (isoString: string) => TDate; | ||
toISO: (value: Dayjs) => string; | ||
parse: (value: any, format: string) => TDate; | ||
date: (value?: any) => TDate; | ||
@@ -24,0 +26,0 @@ toJsDate: (value: Dayjs) => Date; |
@@ -76,2 +76,8 @@ import defaultDayjs from 'dayjs'; | ||
}; | ||
this.parseISO = function (isoString) { | ||
return _this.dayjs(isoString); | ||
}; | ||
this.toISO = function (value) { | ||
return value.toISOString(); | ||
}; | ||
this.parse = function (value, format) { | ||
@@ -78,0 +84,0 @@ if (value === "") { |
@@ -85,2 +85,8 @@ 'use strict'; | ||
}; | ||
this.parseISO = function (isoString) { | ||
return _this.dayjs(isoString); | ||
}; | ||
this.toISO = function (value) { | ||
return value.toISOString(); | ||
}; | ||
this.parse = function (value, format) { | ||
@@ -87,0 +93,0 @@ if (value === "") { |
{ | ||
"name": "@date-io/dayjs", | ||
"version": "2.10.11", | ||
"version": "2.11.0", | ||
"description": "Abstraction over common javascript date management libraries", | ||
@@ -17,3 +17,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@date-io/core": "^2.10.11" | ||
"@date-io/core": "^2.11.0" | ||
}, | ||
@@ -50,3 +50,3 @@ "devDependencies": { | ||
"license": "MIT", | ||
"gitHead": "8e4af1bfc24249273484070d5dac479258ea2416" | ||
"gitHead": "383185d28e3e2636b2796bb198de50ea8891a2b9" | ||
} |
@@ -100,3 +100,11 @@ import defaultDayjs, { QUnitType } from "dayjs"; | ||
public parse = (value: any, format: any) => { | ||
public parseISO = (isoString: string) => { | ||
return this.dayjs(isoString); | ||
}; | ||
public toISO = (value: Dayjs) => { | ||
return value.toISOString(); | ||
}; | ||
public parse = (value: any, format: string) => { | ||
if (value === "") { | ||
@@ -103,0 +111,0 @@ return null; |
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
39347
990
Updated@date-io/core@^2.11.0