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.
@@ -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() > forecastContainer.end.getTime() ||
3073
- date.getTime() < forecastContainer.start.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 = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metar-taf-parser",
3
- "version": "8.0.2",
3
+ "version": "8.0.3",
4
4
  "description": "Parse METAR and TAF reports",
5
5
  "homepage": "https://aeharding.github.io/metar-taf-parser",
6
6
  "keywords": [