@hebcal/core 5.3.6 → 5.3.7
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 +103 -21
- package/dist/bundle.js +40 -11
- package/dist/bundle.min.js +2 -2
- package/dist/index.cjs +40 -11
- package/dist/index.mjs +40 -11
- package/hebcal.d.ts +21 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v5.3.
|
|
1
|
+
/*! @hebcal/core v5.3.7 */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-namespace, no-inner-declarations */
|
|
@@ -7930,8 +7930,8 @@ class Zmanim {
|
|
|
7930
7930
|
* @return {Date}
|
|
7931
7931
|
*/
|
|
7932
7932
|
getShaahZmanisBasedZman(hours) {
|
|
7933
|
-
const startOfDay = this.noaa.getSunrise();
|
|
7934
|
-
const endOfDay = this.noaa.getSunset();
|
|
7933
|
+
const startOfDay = this.useElevation ? this.noaa.getSunrise() : this.noaa.getSeaLevelSunrise();
|
|
7934
|
+
const endOfDay = this.useElevation ? this.noaa.getSunset() : this.noaa.getSeaLevelSunset();
|
|
7935
7935
|
const temporalHour = this.noaa.getTemporalHour(startOfDay, endOfDay);
|
|
7936
7936
|
const offset = Math.round(temporalHour * hours);
|
|
7937
7937
|
const zdt = NOAACalculator.getTimeOffset(startOfDay, offset);
|
|
@@ -7967,13 +7967,14 @@ class Zmanim {
|
|
|
7967
7967
|
/**
|
|
7968
7968
|
* Returns an array with alot (Date) and ms in hour (number)
|
|
7969
7969
|
* @private
|
|
7970
|
+
* @param {number} angle
|
|
7970
7971
|
* @return {any[]}
|
|
7971
7972
|
*/
|
|
7972
|
-
|
|
7973
|
-
const
|
|
7974
|
-
const
|
|
7975
|
-
const temporalHour = (
|
|
7976
|
-
return [
|
|
7973
|
+
getTemporalHourByDeg(angle) {
|
|
7974
|
+
const alot = this.timeAtAngle(angle, true);
|
|
7975
|
+
const tzeit = this.timeAtAngle(angle, false);
|
|
7976
|
+
const temporalHour = (tzeit - alot) / 12;
|
|
7977
|
+
return [alot, temporalHour];
|
|
7977
7978
|
}
|
|
7978
7979
|
/**
|
|
7979
7980
|
* Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham.
|
|
@@ -7994,7 +7995,21 @@ class Zmanim {
|
|
|
7994
7995
|
* @return {Date}
|
|
7995
7996
|
*/
|
|
7996
7997
|
sofZmanShmaMGA16Point1() {
|
|
7997
|
-
const [alot, temporalHour] = this.
|
|
7998
|
+
const [alot, temporalHour] = this.getTemporalHourByDeg(16.1);
|
|
7999
|
+
return new Date(alot.getTime() + 3 * temporalHour);
|
|
8000
|
+
}
|
|
8001
|
+
/**
|
|
8002
|
+
* Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham.
|
|
8003
|
+
* Based on the opinion of the MGA that the day is calculated from
|
|
8004
|
+
* dawn to nightfall with both being 19.8° below the horizon.
|
|
8005
|
+
*
|
|
8006
|
+
* This calculation is based on the position of the sun 90 minutes after sunset in Jerusalem
|
|
8007
|
+
* around the equinox / equilux which calculates to 19.8° below geometric zenith.
|
|
8008
|
+
* https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/
|
|
8009
|
+
* @return {Date}
|
|
8010
|
+
*/
|
|
8011
|
+
sofZmanShmaMGA19Point8() {
|
|
8012
|
+
const [alot, temporalHour] = this.getTemporalHourByDeg(19.8);
|
|
7998
8013
|
return new Date(alot.getTime() + 3 * temporalHour);
|
|
7999
8014
|
}
|
|
8000
8015
|
/**
|
|
@@ -8013,7 +8028,21 @@ class Zmanim {
|
|
|
8013
8028
|
* @return {Date}
|
|
8014
8029
|
*/
|
|
8015
8030
|
sofZmanTfillaMGA16Point1() {
|
|
8016
|
-
const [alot, temporalHour] = this.
|
|
8031
|
+
const [alot, temporalHour] = this.getTemporalHourByDeg(16.1);
|
|
8032
|
+
return new Date(alot.getTime() + 4 * temporalHour);
|
|
8033
|
+
}
|
|
8034
|
+
/**
|
|
8035
|
+
* Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham.
|
|
8036
|
+
* Based on the opinion of the MGA that the day is calculated from
|
|
8037
|
+
* dawn to nightfall with both being 19.8° below the horizon.
|
|
8038
|
+
*
|
|
8039
|
+
* This calculation is based on the position of the sun 90 minutes after sunset in Jerusalem
|
|
8040
|
+
* around the equinox / equilux which calculates to 19.8° below geometric zenith.
|
|
8041
|
+
* https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/
|
|
8042
|
+
* @return {Date}
|
|
8043
|
+
*/
|
|
8044
|
+
sofZmanTfillaMGA19Point8() {
|
|
8045
|
+
const [alot, temporalHour] = this.getTemporalHourByDeg(19.8);
|
|
8017
8046
|
return new Date(alot.getTime() + 4 * temporalHour);
|
|
8018
8047
|
}
|
|
8019
8048
|
/**
|
|
@@ -10458,7 +10487,7 @@ class DailyLearning {
|
|
|
10458
10487
|
}
|
|
10459
10488
|
|
|
10460
10489
|
// DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
10461
|
-
const version = '5.3.
|
|
10490
|
+
const version = '5.3.7';
|
|
10462
10491
|
|
|
10463
10492
|
const NONE$1 = 0;
|
|
10464
10493
|
const HALF = 1;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v5.3.
|
|
1
|
+
/*! @hebcal/core v5.3.7 */
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-namespace, no-inner-declarations */
|
|
3
3
|
/** @private */
|
|
4
4
|
const lengths = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
@@ -7928,8 +7928,8 @@ class Zmanim {
|
|
|
7928
7928
|
* @return {Date}
|
|
7929
7929
|
*/
|
|
7930
7930
|
getShaahZmanisBasedZman(hours) {
|
|
7931
|
-
const startOfDay = this.noaa.getSunrise();
|
|
7932
|
-
const endOfDay = this.noaa.getSunset();
|
|
7931
|
+
const startOfDay = this.useElevation ? this.noaa.getSunrise() : this.noaa.getSeaLevelSunrise();
|
|
7932
|
+
const endOfDay = this.useElevation ? this.noaa.getSunset() : this.noaa.getSeaLevelSunset();
|
|
7933
7933
|
const temporalHour = this.noaa.getTemporalHour(startOfDay, endOfDay);
|
|
7934
7934
|
const offset = Math.round(temporalHour * hours);
|
|
7935
7935
|
const zdt = NOAACalculator.getTimeOffset(startOfDay, offset);
|
|
@@ -7965,13 +7965,14 @@ class Zmanim {
|
|
|
7965
7965
|
/**
|
|
7966
7966
|
* Returns an array with alot (Date) and ms in hour (number)
|
|
7967
7967
|
* @private
|
|
7968
|
+
* @param {number} angle
|
|
7968
7969
|
* @return {any[]}
|
|
7969
7970
|
*/
|
|
7970
|
-
|
|
7971
|
-
const
|
|
7972
|
-
const
|
|
7973
|
-
const temporalHour = (
|
|
7974
|
-
return [
|
|
7971
|
+
getTemporalHourByDeg(angle) {
|
|
7972
|
+
const alot = this.timeAtAngle(angle, true);
|
|
7973
|
+
const tzeit = this.timeAtAngle(angle, false);
|
|
7974
|
+
const temporalHour = (tzeit - alot) / 12;
|
|
7975
|
+
return [alot, temporalHour];
|
|
7975
7976
|
}
|
|
7976
7977
|
/**
|
|
7977
7978
|
* Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham.
|
|
@@ -7992,7 +7993,21 @@ class Zmanim {
|
|
|
7992
7993
|
* @return {Date}
|
|
7993
7994
|
*/
|
|
7994
7995
|
sofZmanShmaMGA16Point1() {
|
|
7995
|
-
const [alot, temporalHour] = this.
|
|
7996
|
+
const [alot, temporalHour] = this.getTemporalHourByDeg(16.1);
|
|
7997
|
+
return new Date(alot.getTime() + 3 * temporalHour);
|
|
7998
|
+
}
|
|
7999
|
+
/**
|
|
8000
|
+
* Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham.
|
|
8001
|
+
* Based on the opinion of the MGA that the day is calculated from
|
|
8002
|
+
* dawn to nightfall with both being 19.8° below the horizon.
|
|
8003
|
+
*
|
|
8004
|
+
* This calculation is based on the position of the sun 90 minutes after sunset in Jerusalem
|
|
8005
|
+
* around the equinox / equilux which calculates to 19.8° below geometric zenith.
|
|
8006
|
+
* https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/
|
|
8007
|
+
* @return {Date}
|
|
8008
|
+
*/
|
|
8009
|
+
sofZmanShmaMGA19Point8() {
|
|
8010
|
+
const [alot, temporalHour] = this.getTemporalHourByDeg(19.8);
|
|
7996
8011
|
return new Date(alot.getTime() + 3 * temporalHour);
|
|
7997
8012
|
}
|
|
7998
8013
|
/**
|
|
@@ -8011,7 +8026,21 @@ class Zmanim {
|
|
|
8011
8026
|
* @return {Date}
|
|
8012
8027
|
*/
|
|
8013
8028
|
sofZmanTfillaMGA16Point1() {
|
|
8014
|
-
const [alot, temporalHour] = this.
|
|
8029
|
+
const [alot, temporalHour] = this.getTemporalHourByDeg(16.1);
|
|
8030
|
+
return new Date(alot.getTime() + 4 * temporalHour);
|
|
8031
|
+
}
|
|
8032
|
+
/**
|
|
8033
|
+
* Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham.
|
|
8034
|
+
* Based on the opinion of the MGA that the day is calculated from
|
|
8035
|
+
* dawn to nightfall with both being 19.8° below the horizon.
|
|
8036
|
+
*
|
|
8037
|
+
* This calculation is based on the position of the sun 90 minutes after sunset in Jerusalem
|
|
8038
|
+
* around the equinox / equilux which calculates to 19.8° below geometric zenith.
|
|
8039
|
+
* https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/
|
|
8040
|
+
* @return {Date}
|
|
8041
|
+
*/
|
|
8042
|
+
sofZmanTfillaMGA19Point8() {
|
|
8043
|
+
const [alot, temporalHour] = this.getTemporalHourByDeg(19.8);
|
|
8015
8044
|
return new Date(alot.getTime() + 4 * temporalHour);
|
|
8016
8045
|
}
|
|
8017
8046
|
/**
|
|
@@ -10456,7 +10485,7 @@ class DailyLearning {
|
|
|
10456
10485
|
}
|
|
10457
10486
|
|
|
10458
10487
|
// DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
10459
|
-
const version = '5.3.
|
|
10488
|
+
const version = '5.3.7';
|
|
10460
10489
|
|
|
10461
10490
|
const NONE$1 = 0;
|
|
10462
10491
|
const HALF = 1;
|
package/hebcal.d.ts
CHANGED
|
@@ -484,15 +484,35 @@ declare module '@hebcal/core' {
|
|
|
484
484
|
* dawn to nightfall with both being 16.1° below the horizon.
|
|
485
485
|
*/
|
|
486
486
|
sofZmanShmaMGA16Point1(): Date;
|
|
487
|
+
/**
|
|
488
|
+
* Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham.
|
|
489
|
+
* Based on the opinion of the MGA that the day is calculated from
|
|
490
|
+
* dawn to nightfall with both being 19.8° below the horizon.
|
|
491
|
+
*
|
|
492
|
+
* This calculation is based on the position of the sun 90 minutes after sunset in Jerusalem
|
|
493
|
+
* around the equinox / equilux which calculates to 19.8° below geometric zenith.
|
|
494
|
+
* https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/
|
|
495
|
+
*/
|
|
496
|
+
sofZmanShmaMGA19Point8(): Date;
|
|
487
497
|
/** Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham */
|
|
488
498
|
sofZmanTfillaMGA(): Date;
|
|
489
|
-
/** Earliest Mincha – Mincha Gedola; Sunrise plus 6.5 halachic hours */
|
|
490
499
|
/**
|
|
491
500
|
* Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham.
|
|
492
501
|
* Based on the opinion of the MGA that the day is calculated from
|
|
493
502
|
* dawn to nightfall with both being 16.1° below the horizon.
|
|
494
503
|
*/
|
|
495
504
|
sofZmanTfillaMGA16Point1(): Date;
|
|
505
|
+
/**
|
|
506
|
+
* Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham.
|
|
507
|
+
* Based on the opinion of the MGA that the day is calculated from
|
|
508
|
+
* dawn to nightfall with both being 19.8° below the horizon.
|
|
509
|
+
*
|
|
510
|
+
* This calculation is based on the position of the sun 90 minutes after sunset in Jerusalem
|
|
511
|
+
* around the equinox / equilux which calculates to 19.8° below geometric zenith.
|
|
512
|
+
* https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/
|
|
513
|
+
*/
|
|
514
|
+
sofZmanTfillaMGA19Point8(): Date;
|
|
515
|
+
/** Earliest Mincha – Mincha Gedola; Sunrise plus 6.5 halachic hours */
|
|
496
516
|
minchaGedola(): Date;
|
|
497
517
|
/** Preferable earliest time to recite Minchah – Mincha Ketana; Sunrise plus 9.5 halachic hours */
|
|
498
518
|
minchaKetana(): Date;
|