idea-toolbox
Advanced tools
Comparing version 6.6.3 to 6.6.4
@@ -14,2 +14,5 @@ "use strict"; | ||
this.to = this.clean(x.to, Number, 0); | ||
// if "from" is set, the default value for "to" is the next midnight | ||
if (this.from && this.to === 0) | ||
this.to = 86400000; | ||
} | ||
@@ -19,3 +22,3 @@ validate() { | ||
// the starting time can't be lower than 0 | ||
if (this.iE(this.from) || this.from < 0) | ||
if (this.from < 0) | ||
e.push('from'); | ||
@@ -22,0 +25,0 @@ // the ending time can't be lower than the start and can't be higher than 24 hours |
{ | ||
"name": "idea-toolbox", | ||
"version": "6.6.3", | ||
"version": "6.6.4", | ||
"description": "IDEA's utility functions", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
241714
7127