@hebcal/noaa 0.8.0 → 0.8.1

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/cjs/index.js CHANGED
@@ -42,9 +42,6 @@ class GeoLocation {
42
42
  * The elevation to set in Meters. An IllegalArgumentException will be thrown if the value is a negative.
43
43
  */
44
44
  setElevation(elevation) {
45
- if (elevation < 0) {
46
- throw new Error('Elevation cannot be negative');
47
- }
48
45
  this.elevation = elevation;
49
46
  }
50
47
  constructor(name = 'Greenwich, England', latitude = 51.4772, longitude = 0, elevationOrTimeZoneId, timeZoneId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/noaa",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "sunrise and sunset via NOAA algorithm with elevation, based on KosherJava",
5
5
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
6
6
  "contributors": [
@@ -40,7 +40,7 @@
40
40
  "dist/*"
41
41
  ],
42
42
  "devDependencies": {
43
- "@types/node": "20.8.2",
43
+ "@types/node": "20.9.2",
44
44
  "gts": "^5.2.0",
45
45
  "typescript": "^5.2.2"
46
46
  },