@idm-plugin/meteo2 0.8.9 → 0.9.0

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/dist/index.js CHANGED
@@ -1824,7 +1824,7 @@ class b0 {
1824
1824
  };
1825
1825
  let Y;
1826
1826
  const a = this.timezoneOffset(z, p);
1827
- b && (Y = L.utc(b).utcOffset(a), Y.subtract(a > 0 ? a : -a, "h"), A.selfHistory = !(Y != null && Y.isBefore(L.utc().subtract(120, "days")))), W && (q.daily = ((U = this.FORECAST.WEATHER_VARIABLES.NORMAL.DAILY) == null ? void 0 : U.split(",")) || []), Y || (A.forecastDays = A.forecastDays || 1, A.pastDays = 0, o = !0), o && (q.hourly = ((s = this.FORECAST.WEATHER_VARIABLES.NORMAL.HOURLY) == null ? void 0 : s.split(",")) || []), A.maxDays = A.maxDays || 14, A.pastDays = A.pastDays || 0, A.pastDays = A.pastDays > 7 ? 7 : A.pastDays < 0 ? 0 : A.pastDays, A.forecastDays = A.forecastDays ?? 1, A.forecastDays = A.forecastDays > A.maxDays ? A.maxDays : A.forecastDays < 0 ? 1 : A.forecastDays, await this.prepare(Y == null ? void 0 : Y.utc().format(), !1, q, A);
1827
+ b && (Y = L.utc(b).utcOffset(a), Y.subtract(a > 0 ? a : -a, "h"), A.selfHistory = !(Y != null && Y.isBefore(L.utc().subtract(240, "days")))), W && (q.daily = ((U = this.FORECAST.WEATHER_VARIABLES.NORMAL.DAILY) == null ? void 0 : U.split(",")) || []), Y || (A.forecastDays = A.forecastDays || 1, A.pastDays = 0, o = !0), o && (q.hourly = ((s = this.FORECAST.WEATHER_VARIABLES.NORMAL.HOURLY) == null ? void 0 : s.split(",")) || []), A.maxDays = A.maxDays || 14, A.pastDays = A.pastDays || 0, A.pastDays = A.pastDays > 7 ? 7 : A.pastDays < 0 ? 0 : A.pastDays, A.forecastDays = A.forecastDays ?? 1, A.forecastDays = A.forecastDays > A.maxDays ? A.maxDays : A.forecastDays < 0 ? 1 : A.forecastDays, await this.prepare(Y == null ? void 0 : Y.utc().format(), !1, q, A);
1828
1828
  const e = await this.weatherForecast(q, void 0, A), d = {
1829
1829
  apikey: this.apikey,
1830
1830
  latitude: z,