@idm-plugin/geo 1.5.0 → 1.5.2

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
@@ -1264,7 +1264,9 @@ class d {
1264
1264
  const q = this.roundPrecision(b / 100, 0);
1265
1265
  W = b - q * 100, b = q;
1266
1266
  }
1267
- p = b + (W ?? 0) / 60, O === "S" && (p = p * -1);
1267
+ if (p = b + (W ?? 0) / 60, p > 90)
1268
+ throw new Error(`latitude out of range: ${M}${O}`);
1269
+ O === "S" && (p = p * -1);
1268
1270
  } else
1269
1271
  p = Number(M);
1270
1272
  return d.roundPrecision(p, z);
@@ -1975,6 +1977,7 @@ class l0 {
1975
1977
  for (const O of M) {
1976
1978
  if (O.forecasts) {
1977
1979
  const A = (p = O.history) == null ? void 0 : p[0];
1980
+ A && A.wind && (A.wind.spd = A.spd, A.wind.kts = A.kts);
1978
1981
  for (const b of O.forecasts) {
1979
1982
  const W = [], q = g(b.date).utc(), a = `${O.name}-${b.model}`;
1980
1983
  if (A) {