jcal-zmanim 1.2.9 → 1.3.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 +2 -2
- package/dist/README.md +2 -2
- package/dist/index.cjs +16 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.d.cts
CHANGED
|
@@ -236,7 +236,7 @@ declare class jDate {
|
|
|
236
236
|
/**Is the current Jewish Date the day before a yomtov that contains a Friday?*/
|
|
237
237
|
hasEiruvTavshilin(israel: boolean): boolean;
|
|
238
238
|
/**Gets the candle lighting time for the current Jewish date for the given Location object.*/
|
|
239
|
-
getCandleLighting(location: Location, nullIfNoCandles
|
|
239
|
+
getCandleLighting(location: Location, nullIfNoCandles?: boolean): Time | null | undefined;
|
|
240
240
|
/**Get the sedra of the week for the current Jewish date.*/
|
|
241
241
|
getSedra(israel: boolean): Sedra;
|
|
242
242
|
/**Get the prakim of Pirkei Avos for the current Jewish date.*/
|
package/dist/index.d.ts
CHANGED
|
@@ -236,7 +236,7 @@ declare class jDate {
|
|
|
236
236
|
/**Is the current Jewish Date the day before a yomtov that contains a Friday?*/
|
|
237
237
|
hasEiruvTavshilin(israel: boolean): boolean;
|
|
238
238
|
/**Gets the candle lighting time for the current Jewish date for the given Location object.*/
|
|
239
|
-
getCandleLighting(location: Location, nullIfNoCandles
|
|
239
|
+
getCandleLighting(location: Location, nullIfNoCandles?: boolean): Time | null | undefined;
|
|
240
240
|
/**Get the sedra of the week for the current Jewish date.*/
|
|
241
241
|
getSedra(israel: boolean): Sedra;
|
|
242
242
|
/**Get the prakim of Pirkei Avos for the current Jewish date.*/
|
package/dist/index.js
CHANGED
|
@@ -2730,7 +2730,7 @@ function getWeekDayNotifications() {
|
|
|
2730
2730
|
addTefillahNote(
|
|
2731
2731
|
month === JewishMonthsNames.NISSAN && day === 15 || month === JewishMonthsNames.SIVAN && day === 6 ? "\u05D5\u05EA\u05D5\u05D3\u05D9\u05E2\u05D9\u05E0\u05D5" : "\u05D0\u05EA\u05D4 \u05D7\u05D5\u05E0\u05E0\u05EA\u05E0\u05D5"
|
|
2732
2732
|
);
|
|
2733
|
-
if (month === JewishMonthsNames.ELLUL && day > 22 || month === JewishMonthsNames.TISHREI && day
|
|
2733
|
+
if (month === JewishMonthsNames.ELLUL && day > 22 || month === JewishMonthsNames.TISHREI && day > 4 && day < 22 || month === JewishMonthsNames.NISSAN && day > 8 && day < 15 || month === JewishMonthsNames.SIVAN && day < 6) {
|
|
2734
2734
|
addTefillahNote("No Vihi Noam", '\u05D0"\u05D0 \u05D5\u05D9\u05D4\u05D9 \u05E0\u05D5\u05E2\u05DD');
|
|
2735
2735
|
}
|
|
2736
2736
|
} else if (isNightTime && (month === JewishMonthsNames.NISSAN && (day === 16 || day === 22) || month === JewishMonthsNames.SIVAN && day === 7 || month === JewishMonthsNames.TISHREI && [3, 11, 16, 23].includes(day))) {
|
|
@@ -2776,9 +2776,15 @@ function getAroundTheYearNotifications() {
|
|
|
2776
2776
|
isMorning,
|
|
2777
2777
|
isAfterChatzosHalayla,
|
|
2778
2778
|
jdate,
|
|
2779
|
+
sdate,
|
|
2779
2780
|
isLeapYear,
|
|
2780
2781
|
location
|
|
2781
2782
|
} = dayInfo;
|
|
2783
|
+
let showVsainTalUmatarInChul = false;
|
|
2784
|
+
if (!location.Israel && sdate.getMonth() === 11 && sdate.getDate() > 4) {
|
|
2785
|
+
const startVsainTalUmatar = jdate.Year % 4 === 0 ? 6 : 5;
|
|
2786
|
+
showVsainTalUmatarInChul = sdate.getDate() >= startVsainTalUmatar && sdate.getDate() <= startVsainTalUmatar + 14;
|
|
2787
|
+
}
|
|
2782
2788
|
switch (month) {
|
|
2783
2789
|
case JewishMonthsNames.NISSAN:
|
|
2784
2790
|
dayInfo.noTachnun = true;
|
|
@@ -3109,6 +3115,10 @@ function getAroundTheYearNotifications() {
|
|
|
3109
3115
|
addTefillahNote('\u05E7\u05D4"\u05EA \u05D1\u05DE\u05E0\u05D7\u05D4 \u05E1\u05D5\u05E3 \u05E4\u05E8\u05E9\u05EA \u05D0\u05D7"\u05DE');
|
|
3110
3116
|
}
|
|
3111
3117
|
break;
|
|
3118
|
+
case 11:
|
|
3119
|
+
if (isNightTime) {
|
|
3120
|
+
addDayNote("\u05DC\u05DA \u05D0\u05DB\u05DC \u05D1\u05E9\u05DE\u05D7\u05D4 \u05DC\u05D7\u05DE\u05DA \u05DB\u05D9 \u05DB\u05D1\u05E8 \u05E8\u05E6\u05D4 \u05D4\u05D0\u05DC\u05E7\u05D9\u05DD \u05D0\u05EA \u05DE\u05E2\u05E9\u05D9\u05DA");
|
|
3121
|
+
}
|
|
3112
3122
|
case 15:
|
|
3113
3123
|
addDayNote("First day of Sukkos", '\u05D9\u05D5"\u05D8 \u05E8\u05D0\u05E9\u05D5\u05DF \u05E9\u05DC \u05E1\u05D5\u05DB\u05D5\u05EA');
|
|
3114
3124
|
addTefillahNote("Ya`aleh V`yavo", "\u05D9\u05E2\u05DC\u05D4 \u05D5\u05D9\u05D1\u05D0");
|
|
@@ -3270,12 +3280,12 @@ function getAroundTheYearNotifications() {
|
|
|
3270
3280
|
if (day <= 22) {
|
|
3271
3281
|
addTefillahNote("Mashiv Haruach U`Morid Hageshem", "\u05DE\u05E9\u05D9\u05D1 \u05D4\u05E8\u05D5\u05D7 \u05D5\u05DE\u05D5\u05E8\u05D9\u05D3 \u05D4\u05D2\u05E9\u05DD");
|
|
3272
3282
|
}
|
|
3273
|
-
if (day >= 7 && dow !== DaysOfWeek.SHABBOS) {
|
|
3283
|
+
if ((location.Israel && day >= 7 || !location.Israel && showVsainTalUmatarInChul) && dow !== DaysOfWeek.SHABBOS) {
|
|
3274
3284
|
addTefillahNote("V`sain Tal U`matar", "\u05D5\u05EA\u05DF \u05D8\u05DC \u05D5\u05DE\u05D8\u05E8");
|
|
3275
3285
|
}
|
|
3276
3286
|
break;
|
|
3277
3287
|
case JewishMonthsNames.KISLEV:
|
|
3278
|
-
if (day <= 7 && dow !== DaysOfWeek.SHABBOS) {
|
|
3288
|
+
if ((location.Israel && day <= 7 || !location.Israel && showVsainTalUmatarInChul) && dow !== DaysOfWeek.SHABBOS) {
|
|
3279
3289
|
addTefillahNote("V`sain Tal U`matar", "\u05D5\u05EA\u05DF \u05D8\u05DC \u05D5\u05DE\u05D8\u05E8");
|
|
3280
3290
|
} else if (day === 24 && dow !== DaysOfWeek.SHABBOS && isAfternoon) {
|
|
3281
3291
|
dayInfo.noTachnun = true;
|
|
@@ -3294,6 +3304,9 @@ function getAroundTheYearNotifications() {
|
|
|
3294
3304
|
}
|
|
3295
3305
|
break;
|
|
3296
3306
|
case JewishMonthsNames.TEVES:
|
|
3307
|
+
if (!location.Israel && showVsainTalUmatarInChul && dow !== DaysOfWeek.SHABBOS) {
|
|
3308
|
+
addTefillahNote("V`sain Tal U`matar", "\u05D5\u05EA\u05DF \u05D8\u05DC \u05D5\u05DE\u05D8\u05E8");
|
|
3309
|
+
}
|
|
3297
3310
|
if (day <= (jDate.isShortKislev(jdate.Year) ? 3 : 2)) {
|
|
3298
3311
|
dayInfo.noTachnun = true;
|
|
3299
3312
|
addDayNote("Chanukah", "\u05D7\u05E0\u05D5\u05DB\u05D4");
|