@appannie/react-infinite-calendar
Advanced tools
Comparing version 3.6.5 to 3.6.6
@@ -72,6 +72,10 @@ import * as dateFn from 'date-fns'; | ||
return dateFn.isWithinInterval(parseDate(date), { | ||
start: parseDate(dateStart), | ||
end: parseDate(dateEnd) | ||
}); | ||
try { | ||
return dateFn.isWithinInterval(parseDate(date), { | ||
start: parseDate(dateStart), | ||
end: parseDate(dateEnd) | ||
}); | ||
} catch (error) { | ||
return false; | ||
} | ||
}; | ||
@@ -78,0 +82,0 @@ var min = function min() { |
@@ -97,6 +97,10 @@ 'use strict'; | ||
return dateFn__namespace.isWithinInterval(parse.parseDate(date), { | ||
start: parse.parseDate(dateStart), | ||
end: parse.parseDate(dateEnd) | ||
}); | ||
try { | ||
return dateFn__namespace.isWithinInterval(parse.parseDate(date), { | ||
start: parse.parseDate(dateStart), | ||
end: parse.parseDate(dateEnd) | ||
}); | ||
} catch (error) { | ||
return false; | ||
} | ||
}; | ||
@@ -103,0 +107,0 @@ var min = function min() { |
{ | ||
"name": "@appannie/react-infinite-calendar", | ||
"version": "3.6.5", | ||
"version": "3.6.6", | ||
"description": "Infinite scrolling date-picker built with React, with localization, themes, keyboard support, and more.", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1606455
10991