@amaui/date
Advanced tools
Comparing version 1.0.11427 to 1.0.11430
@@ -15,3 +15,2 @@ "use strict"; | ||
const isValidTimestamp = (value) => (Number.isInteger(value) && | ||
String(value).length >= 10 && | ||
(new Date(value).getTime() > 0 || | ||
@@ -18,0 +17,0 @@ new Date(value * 1000).getTime() > 0)); |
@@ -10,3 +10,3 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty"; | ||
const isValidTimestamp = value => Number.isInteger(value) && String(value).length >= 10 && (new Date(value).getTime() > 0 || new Date(value * 1000).getTime() > 0); | ||
const isValidTimestamp = value => Number.isInteger(value) && (new Date(value).getTime() > 0 || new Date(value * 1000).getTime() > 0); | ||
@@ -13,0 +13,0 @@ export default class AmauiDate { |
@@ -1,2 +0,2 @@ | ||
/** @license AmauiDate v1.0.11427 | ||
/** @license AmauiDate v1.0.11430 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
{ | ||
"name": "@amaui/date", | ||
"version": "1.0.11427", | ||
"version": "1.0.11430", | ||
"description": "Time and date utils library", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/amaui-org/amaui-date.git", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
444186
11039