@lavalogic/scoria 0.16.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -260,12 +260,12 @@ export function hasQuery(customFilter) {
|
|
|
260
260
|
export function isDateTuple(value) {
|
|
261
261
|
return (Array.isArray(value) &&
|
|
262
262
|
value.length == 2 &&
|
|
263
|
-
(value[0] === null || typeof value[0] == '
|
|
264
|
-
(value[1] === null || typeof value[1] == '
|
|
263
|
+
(value[0] === null || (typeof value[0] == 'object' && value[0] instanceof Date)) &&
|
|
264
|
+
(value[1] === null || (typeof value[1] == 'object' && value[1] instanceof Date)));
|
|
265
265
|
}
|
|
266
266
|
export function isNumberTuple(value) {
|
|
267
267
|
return (Array.isArray(value) &&
|
|
268
268
|
value.length == 2 &&
|
|
269
|
-
(value[0] === null ||
|
|
270
|
-
(value[1] === null ||
|
|
269
|
+
(value[0] === null || typeof value[0] == 'number') &&
|
|
270
|
+
(value[1] === null || typeof value[1] == 'number'));
|
|
271
271
|
}
|