metar-taf-parser 8.0.2 → 8.0.3
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.
- package/metar-taf-parser.js +2 -2
- package/package.json +1 -1
package/metar-taf-parser.js
CHANGED
|
@@ -3069,8 +3069,8 @@ class TimestampOutOfBoundsError extends ParseError {
|
|
|
3069
3069
|
}
|
|
3070
3070
|
function getCompositeForecastForDate(date, forecastContainer) {
|
|
3071
3071
|
// Validity bounds check
|
|
3072
|
-
if (date.getTime()
|
|
3073
|
-
date.getTime()
|
|
3072
|
+
if (date.getTime() < forecastContainer.start.getTime() ||
|
|
3073
|
+
date.getTime() >= forecastContainer.end.getTime())
|
|
3074
3074
|
throw new TimestampOutOfBoundsError("Provided timestamp is outside the report validity period");
|
|
3075
3075
|
let prevailing;
|
|
3076
3076
|
let supplemental = [];
|