@date-io/dayjs
Advanced tools
Comparing version 2.11.0 to 2.13.1
@@ -27,3 +27,3 @@ import defaultDayjs from "dayjs"; | ||
isValid: (value: any) => boolean; | ||
isNull: (date: Dayjs) => boolean; | ||
isNull: (date: Dayjs | null) => boolean; | ||
getDiff: (date: TDate, comparing: TDate, units?: Unit) => number; | ||
@@ -30,0 +30,0 @@ isAfter: (date: TDate, value: TDate) => boolean; |
@@ -297,2 +297,2 @@ import defaultDayjs from 'dayjs'; | ||
export default DayjsUtils; | ||
export { DayjsUtils as default }; |
@@ -15,5 +15,5 @@ 'use strict'; | ||
defaultDayjs__default['default'].extend(customParseFormatPlugin__default['default']); | ||
defaultDayjs__default['default'].extend(localizedFormatPlugin__default['default']); | ||
defaultDayjs__default['default'].extend(isBetweenPlugin__default['default']); | ||
defaultDayjs__default["default"].extend(customParseFormatPlugin__default["default"]); | ||
defaultDayjs__default["default"].extend(localizedFormatPlugin__default["default"]); | ||
defaultDayjs__default["default"].extend(isBetweenPlugin__default["default"]); | ||
var withLocale = function (dayjs, locale) { return (!locale ? dayjs : function () { | ||
@@ -299,3 +299,3 @@ var args = []; | ||
}; | ||
this.rawDayJsInstance = instance || defaultDayjs__default['default']; | ||
this.rawDayJsInstance = instance || defaultDayjs__default["default"]; | ||
this.dayjs = withLocale(this.rawDayJsInstance, locale); | ||
@@ -302,0 +302,0 @@ this.locale = locale; |
{ | ||
"name": "@date-io/dayjs", | ||
"version": "2.11.0", | ||
"version": "2.13.1", | ||
"description": "Abstraction over common javascript date management libraries", | ||
@@ -17,3 +17,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@date-io/core": "^2.11.0" | ||
"@date-io/core": "^2.13.1" | ||
}, | ||
@@ -50,3 +50,3 @@ "devDependencies": { | ||
"license": "MIT", | ||
"gitHead": "383185d28e3e2636b2796bb198de50ea8891a2b9" | ||
"gitHead": "687eba751bd706e7d704a39a7caa3e0afbfa40aa" | ||
} |
@@ -132,3 +132,3 @@ import defaultDayjs, { QUnitType } from "dayjs"; | ||
public isNull = (date: Dayjs) => { | ||
public isNull = (date: Dayjs | null) => { | ||
return date === null; | ||
@@ -135,0 +135,0 @@ }; |
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
38294
12
Updated@date-io/core@^2.13.1