@hebcal/noaa 0.9.1 → 0.9.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -0
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -127,6 +127,9 @@ export class GeoLocation {
127
127
  * The timeZone to set.
128
128
  */
129
129
  setTimeZone(timeZoneId) {
130
+ if (!timeZoneId) {
131
+ throw new RangeError('Invalid timeZoneId');
132
+ }
130
133
  this.timeZoneId = timeZoneId;
131
134
  }
132
135
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/noaa",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
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": [
@@ -43,11 +43,11 @@
43
43
  "dist/*"
44
44
  ],
45
45
  "devDependencies": {
46
- "@types/node": "22.13.14",
47
- "ava": "^6.2.0",
46
+ "@types/node": "22.15.11",
47
+ "ava": "^6.3.0",
48
48
  "gts": "^5.3.1",
49
- "typedoc": "^0.28.1",
50
- "typescript": "^5.8.2"
49
+ "typedoc": "^0.28.4",
50
+ "typescript": "^5.8.3"
51
51
  },
52
52
  "dependencies": {
53
53
  "temporal-polyfill": "^0.3.0"