Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "edtf", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Extended Date Time Format (EDTF) / ISO 8601-2 Parser and Library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -69,6 +69,6 @@ 'use strict' | ||
if (value == null) | ||
return this.values[1] = null | ||
return this.values[0] = null | ||
if (value === Infinity || value === -Infinity) | ||
return this.values[1] = Infinity | ||
return this.values[0] = Infinity | ||
@@ -96,3 +96,3 @@ value = getDateOrSeasonFrom(value) | ||
if (value <= this.lower) | ||
if (this.lower !== Infinity && value <= this.lower) | ||
throw new RangeError(`invalid upper bound: ${value}`) | ||
@@ -130,4 +130,4 @@ | ||
.map(v => { | ||
if (v === Infinity) return '..' | ||
if (!v) return '' | ||
if (v === Infinity) return '*' | ||
return v.edtf | ||
@@ -134,0 +134,0 @@ }) |
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
126135