@amaui/date
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -74,3 +74,4 @@ "use strict"; | ||
get valid() { | ||
return (this.value_ === undefined || this.value_ instanceof Date || this.value_ instanceof AmauiDate || typeof this.value_ === 'number') && !Number.isNaN(this.unix); | ||
var _a; | ||
return (this.value_ === undefined || this.value_ instanceof Date || this.value_ instanceof AmauiDate || typeof this.value_ === 'number') && !Number.isNaN(Math.floor(((_a = this.value) === null || _a === void 0 ? void 0 : _a.getTime()) / 1000)); | ||
} | ||
@@ -77,0 +78,0 @@ get local() { |
@@ -132,3 +132,5 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty"; | ||
get valid() { | ||
return (this.value_ === undefined || this.value_ instanceof Date || this.value_ instanceof AmauiDate || typeof this.value_ === 'number') && !Number.isNaN(this.unix); | ||
var _this$value; | ||
return (this.value_ === undefined || this.value_ instanceof Date || this.value_ instanceof AmauiDate || typeof this.value_ === 'number') && !Number.isNaN(Math.floor(((_this$value = this.value) === null || _this$value === void 0 ? void 0 : _this$value.getTime()) / 1000)); | ||
} | ||
@@ -135,0 +137,0 @@ |
@@ -1,2 +0,2 @@ | ||
/** @license AmauiDate v1.1.1 | ||
/** @license AmauiDate v1.1.2 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
{ | ||
"name": "@amaui/date", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"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
444292
11044