@hebcal/noaa 0.8.15 → 0.8.16
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.cjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NOAACalculator = exports.GeoLocation = void 0;
|
|
4
|
-
|
|
4
|
+
require("temporal-polyfill/global");
|
|
5
5
|
/**
|
|
6
6
|
* java.lang.Math.toRadians
|
|
7
7
|
* @private
|
|
@@ -675,7 +675,7 @@ class NOAACalculator {
|
|
|
675
675
|
return cal
|
|
676
676
|
.toZonedDateTime({
|
|
677
677
|
timeZone: 'UTC',
|
|
678
|
-
plainTime: new
|
|
678
|
+
plainTime: new Temporal.PlainTime(hours, minutes, seconds, Math.trunc(calculatedTime * 1000)),
|
|
679
679
|
})
|
|
680
680
|
.withTimeZone(this.geoLocation.getTimeZone());
|
|
681
681
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import 'temporal-polyfill/global';
|
|
2
2
|
/**
|
|
3
3
|
* A class that contains location information such as latitude and longitude required for astronomical calculations. The
|
|
4
4
|
* elevation field may not be used by some calculation engines and would be ignored if set.
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED