@date-io/moment
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -32,6 +32,3 @@ import defaultMoment from 'moment'; | ||
MomentUtils.prototype.isNull = function (date) { | ||
if (date === null) { | ||
return true; | ||
} | ||
return date.parsingFlags().nullInput; | ||
return date === null; | ||
}; | ||
@@ -38,0 +35,0 @@ MomentUtils.prototype.getDiff = function (date, comparing) { |
@@ -36,6 +36,3 @@ 'use strict'; | ||
MomentUtils.prototype.isNull = function (date) { | ||
if (date === null) { | ||
return true; | ||
} | ||
return date.parsingFlags().nullInput; | ||
return date === null; | ||
}; | ||
@@ -42,0 +39,0 @@ MomentUtils.prototype.getDiff = function (date, comparing) { |
@@ -5,2 +5,4 @@ import defaultMoment from "moment"; | ||
locale?: string; | ||
instance?: typeof defaultMoment; | ||
/** @deprecated */ | ||
moment?: typeof defaultMoment; | ||
@@ -7,0 +9,0 @@ } |
{ | ||
"name": "@date-io/moment", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Abstraction over common javascript date management libraries", | ||
@@ -11,10 +11,7 @@ "main": "build/index.js", | ||
}, | ||
"dependencies": { | ||
"@date-io/core": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"@date-io/core": "^0.0.1", | ||
"moment": "^2.22.2", | ||
"@date-io/core": "^1.2.0", | ||
"moment": "^2.24.0", | ||
"rollup": "^0.66.6", | ||
"typescript": "^3.2.4" | ||
"typescript": "^3.4.4" | ||
}, | ||
@@ -45,3 +42,3 @@ "scripts": { | ||
"license": "MIT", | ||
"gitHead": "75f08408e702874235295cf283747ed5c02193f0" | ||
"gitHead": "dc8ace95621e7f1a14024dbfd5b9d42fa18f4e88" | ||
} |
@@ -6,2 +6,4 @@ import defaultMoment from "moment"; | ||
locale?: string; | ||
instance?: typeof defaultMoment; | ||
/** @deprecated */ | ||
moment?: typeof defaultMoment; | ||
@@ -57,7 +59,3 @@ } | ||
public isNull(date: Moment) { | ||
if (date === null) { | ||
return true; | ||
} | ||
return date.parsingFlags().nullInput; | ||
return date === null; | ||
} | ||
@@ -64,0 +62,0 @@ |
1
26738
713
- Removed@date-io/core@^1.1.0
- Removed@date-io/core@1.3.13(transitive)