@idm-plugin/geo 1.5.1 → 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/README.md CHANGED
@@ -1,2 +1,2 @@
1
- ## Geo Plugin
1
+ ## Geo Plugin
2
2
  Geo插件
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);