jcal-zmanim 1.2.1 → 1.2.3

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.d.cts CHANGED
@@ -31,8 +31,8 @@ declare class Location {
31
31
  static getLakewood(): Location;
32
32
  }
33
33
 
34
- type Time = { hour: number, minute: number, second?: number };
35
- type SunTimes = { sunrise?: Time, sunset?: Time };
34
+ type Time = { hour: number, minute: number, second?: number };
35
+ type SunTimes = { sunrise?: Time, sunset?: Time };
36
36
  type ZmanToShow = { id: number, desc: string, eng: string, heb: string, offset?: number, whichDaysFlags?: number };
37
37
 
38
38
  /**
@@ -176,6 +176,11 @@ declare class jDate {
176
176
  * @param {jDate} jd
177
177
  * */
178
178
  diffMonths(jd: jDate): number;
179
+ /**Gets the number of full months separating this Jewish Date and the given one.
180
+ * If the given date is before this one, the number will be negative.
181
+ * @param {jDate} jd
182
+ * */
183
+ diffFullMonths(jd: jDate): number;
179
184
  /**Gets the number of years separating this Jewish Date and the given one.
180
185
  *
181
186
  * Ignores the Day and Month properties:
@@ -185,6 +190,10 @@ declare class jDate {
185
190
  * If the given date is before this one, the number will be negative.
186
191
  * @param {jDate} jd*/
187
192
  diffYears(jd: jDate): number;
193
+ /**Gets the number of full years separating this Jewish Date and the given one.
194
+ * If the given date is before this one, the number will be negative.
195
+ * @param {jDate} jd*/
196
+ diffFullYears(jd: jDate): number;
188
197
  /**
189
198
  * Returns the current Jewish date in the format: Thursday, the 3rd of Kislev 5776.
190
199
  * @param {boolean} hideDayOfWeek
@@ -309,6 +318,21 @@ declare const DaysOfWeek: Readonly<{
309
318
  FRIDAY: 5;
310
319
  SHABBOS: 6;
311
320
  }>;
321
+ declare const JewishMonthsNames: Readonly<{
322
+ NISSAN: 1;
323
+ IYAR: 2;
324
+ SIVAN: 3;
325
+ TAMUZ: 4;
326
+ AV: 5;
327
+ ELLUL: 6;
328
+ TISHREI: 7;
329
+ CHESHVAN: 8;
330
+ KISLEV: 9;
331
+ TEVES: 10;
332
+ SHVAT: 11;
333
+ ADAR: 12;
334
+ ADAR_SHEINI: 13;
335
+ }>;
312
336
  declare const JewishMonthsEng: string[];
313
337
  declare const JewishMonthsHeb: string[];
314
338
  declare const SecularMonthsEng: string[];
@@ -895,4 +919,4 @@ declare function getNotifications(date: jDate | Date, time: Time, location: Loca
895
919
  tefillahNotes: string[];
896
920
  };
897
921
 
898
- export { Dafyomi, DaysOfWeek, DaysOfWeekEng, DaysOfWeekHeb, JewishMonthsEng, JewishMonthsHeb, Location, Locations, Molad, PirkeiAvos, SecularMonthsEng, Sedra, Utils, ZmanTypeIds, ZmanTypes, Zmanim, ZmanimUtils, closestDistanceMatch, closestNameMatch, findLocation, getNotifications, getZmanType, jDate };
922
+ export { Dafyomi, DaysOfWeek, DaysOfWeekEng, DaysOfWeekHeb, JewishMonthsEng, JewishMonthsHeb, JewishMonthsNames, Location, Locations, Molad, PirkeiAvos, SecularMonthsEng, Sedra, Utils, ZmanTypeIds, ZmanTypes, Zmanim, ZmanimUtils, closestDistanceMatch, closestNameMatch, findLocation, getNotifications, getZmanType, jDate };
package/dist/index.d.ts CHANGED
@@ -31,8 +31,8 @@ declare class Location {
31
31
  static getLakewood(): Location;
32
32
  }
33
33
 
34
- type Time = { hour: number, minute: number, second?: number };
35
- type SunTimes = { sunrise?: Time, sunset?: Time };
34
+ type Time = { hour: number, minute: number, second?: number };
35
+ type SunTimes = { sunrise?: Time, sunset?: Time };
36
36
  type ZmanToShow = { id: number, desc: string, eng: string, heb: string, offset?: number, whichDaysFlags?: number };
37
37
 
38
38
  /**
@@ -176,6 +176,11 @@ declare class jDate {
176
176
  * @param {jDate} jd
177
177
  * */
178
178
  diffMonths(jd: jDate): number;
179
+ /**Gets the number of full months separating this Jewish Date and the given one.
180
+ * If the given date is before this one, the number will be negative.
181
+ * @param {jDate} jd
182
+ * */
183
+ diffFullMonths(jd: jDate): number;
179
184
  /**Gets the number of years separating this Jewish Date and the given one.
180
185
  *
181
186
  * Ignores the Day and Month properties:
@@ -185,6 +190,10 @@ declare class jDate {
185
190
  * If the given date is before this one, the number will be negative.
186
191
  * @param {jDate} jd*/
187
192
  diffYears(jd: jDate): number;
193
+ /**Gets the number of full years separating this Jewish Date and the given one.
194
+ * If the given date is before this one, the number will be negative.
195
+ * @param {jDate} jd*/
196
+ diffFullYears(jd: jDate): number;
188
197
  /**
189
198
  * Returns the current Jewish date in the format: Thursday, the 3rd of Kislev 5776.
190
199
  * @param {boolean} hideDayOfWeek
@@ -309,6 +318,21 @@ declare const DaysOfWeek: Readonly<{
309
318
  FRIDAY: 5;
310
319
  SHABBOS: 6;
311
320
  }>;
321
+ declare const JewishMonthsNames: Readonly<{
322
+ NISSAN: 1;
323
+ IYAR: 2;
324
+ SIVAN: 3;
325
+ TAMUZ: 4;
326
+ AV: 5;
327
+ ELLUL: 6;
328
+ TISHREI: 7;
329
+ CHESHVAN: 8;
330
+ KISLEV: 9;
331
+ TEVES: 10;
332
+ SHVAT: 11;
333
+ ADAR: 12;
334
+ ADAR_SHEINI: 13;
335
+ }>;
312
336
  declare const JewishMonthsEng: string[];
313
337
  declare const JewishMonthsHeb: string[];
314
338
  declare const SecularMonthsEng: string[];
@@ -895,4 +919,4 @@ declare function getNotifications(date: jDate | Date, time: Time, location: Loca
895
919
  tefillahNotes: string[];
896
920
  };
897
921
 
898
- export { Dafyomi, DaysOfWeek, DaysOfWeekEng, DaysOfWeekHeb, JewishMonthsEng, JewishMonthsHeb, Location, Locations, Molad, PirkeiAvos, SecularMonthsEng, Sedra, Utils, ZmanTypeIds, ZmanTypes, Zmanim, ZmanimUtils, closestDistanceMatch, closestNameMatch, findLocation, getNotifications, getZmanType, jDate };
922
+ export { Dafyomi, DaysOfWeek, DaysOfWeekEng, DaysOfWeekHeb, JewishMonthsEng, JewishMonthsHeb, JewishMonthsNames, Location, Locations, Molad, PirkeiAvos, SecularMonthsEng, Sedra, Utils, ZmanTypeIds, ZmanTypes, Zmanim, ZmanimUtils, closestDistanceMatch, closestNameMatch, findLocation, getNotifications, getZmanType, jDate };
package/dist/index.js CHANGED
@@ -598,6 +598,19 @@ var jDate = class _jDate {
598
598
  }
599
599
  return months;
600
600
  }
601
+ /**Gets the number of full months separating this Jewish Date and the given one.
602
+ * If the given date is before this one, the number will be negative.
603
+ * @param {jDate} jd
604
+ * */
605
+ diffFullMonths(jd) {
606
+ let months = this.diffMonths(jd);
607
+ if (months >= 0 && this.Day > jd.Day) {
608
+ months--;
609
+ } else if (months < 0 && this.Day < jd.Day) {
610
+ months++;
611
+ }
612
+ return months;
613
+ }
601
614
  /**Gets the number of years separating this Jewish Date and the given one.
602
615
  *
603
616
  * Ignores the Day and Month properties:
@@ -607,7 +620,23 @@ var jDate = class _jDate {
607
620
  * If the given date is before this one, the number will be negative.
608
621
  * @param {jDate} jd*/
609
622
  diffYears(jd) {
610
- return jd.Year - this.Year;
623
+ let diff = jd.Year - this.Year;
624
+ if (this.Month < jd.Month || this.Month === jd.Month && this.Day < jd.Day) {
625
+ diff--;
626
+ }
627
+ return diff;
628
+ }
629
+ /**Gets the number of full years separating this Jewish Date and the given one.
630
+ * If the given date is before this one, the number will be negative.
631
+ * @param {jDate} jd*/
632
+ diffFullYears(jd) {
633
+ let diff = jd.Year - this.Year;
634
+ if (diff >= 0 && (this.Month > jd.Month || this.Month === jd.Month && this.Day > jd.Day)) {
635
+ diff--;
636
+ } else if (diff < 0 && (this.Month < jd.Month || this.Month === jd.Month && this.Day < jd.Day)) {
637
+ diff++;
638
+ }
639
+ return diff;
611
640
  }
612
641
  /**
613
642
  * Returns the current Jewish date in the format: Thursday, the 3rd of Kislev 5776.
@@ -1137,6 +1166,21 @@ var DaysOfWeek = Object.freeze({
1137
1166
  FRIDAY: 5,
1138
1167
  SHABBOS: 6
1139
1168
  });
1169
+ var JewishMonthsNames = Object.freeze({
1170
+ NISSAN: 1,
1171
+ IYAR: 2,
1172
+ SIVAN: 3,
1173
+ TAMUZ: 4,
1174
+ AV: 5,
1175
+ ELLUL: 6,
1176
+ TISHREI: 7,
1177
+ CHESHVAN: 8,
1178
+ KISLEV: 9,
1179
+ TEVES: 10,
1180
+ SHVAT: 11,
1181
+ ADAR: 12,
1182
+ ADAR_SHEINI: 13
1183
+ });
1140
1184
  var JewishMonthsEng = [
1141
1185
  "",
1142
1186
  "Nissan",
@@ -2578,14 +2622,14 @@ function getNotifications(date, time, location, english, showGaonShir, showDafYo
2578
2622
  addTefillahNote("No Tachnun", '\u05D0"\u05D0 \u05EA\u05D7\u05E0\u05D5\u05DF');
2579
2623
  } else if (isAfternoon) {
2580
2624
  addTefillahNote("No Tzidkascha", '\u05D0"\u05D0 \u05E6\u05D3\u05E7\u05EA\u05DA');
2581
- } else if (!(month === 1 && day > 21 || month === 2 || month === 3 && day < 6)) {
2625
+ } else if (!(month === JewishMonthsNames.NISSAN && day > 21 || month === JewishMonthsNames.IYAR || month === JewishMonthsNames.SIVAN && day < 6)) {
2582
2626
  addTefillahNote("No Av Harachamim", '\u05D0"\u05D0 \u05D0\u05D1 \u05D4\u05E8\u05D7\u05DE\u05D9\u05DD');
2583
2627
  }
2584
2628
  }
2585
2629
  if (showDafYomi !== false) {
2586
2630
  addDayNote(jdate.getDafYomi(), jdate.getDafyomiHeb());
2587
2631
  }
2588
- if (isNotBeinHasmashos && (month === 1 && day > 15 || month === 2 || month === 3 && day < 6)) {
2632
+ if (isNotBeinHasmashos && (month === JewishMonthsNames.NISSAN && day > 15 || month === JewishMonthsNames.IYAR || month === JewishMonthsNames.SIVAN && day < 6)) {
2589
2633
  const dayOfSefirah = jdate.getDayOfOmer();
2590
2634
  if (dayOfSefirah > 0) {
2591
2635
  addTefillahNote(Utils.getOmerNusach(dayOfSefirah, "ashkenaz"));
@@ -2607,19 +2651,19 @@ function getShabbosNotifications() {
2607
2651
  isDaytime,
2608
2652
  isAfternoon
2609
2653
  } = dayInfo;
2610
- if (month === 1 && day > 7 && day < 15) {
2654
+ if (month === JewishMonthsNames.NISSAN && day > 7 && day < 15) {
2611
2655
  addDayNote("Shabbos Hagadol", "\u05E9\u05D1\u05EA \u05D4\u05D2\u05D3\u05D5\u05DC");
2612
- } else if (month === 7 && day > 2 && day < 10) {
2656
+ } else if (month === JewishMonthsNames.TISHREI && day > 2 && day < 10) {
2613
2657
  addDayNote("Shabbos Shuva", "\u05E9\u05D1\u05EA \u05E9\u05D5\u05D1\u05D4");
2614
- } else if (month === 5 && day > 2 && day < 10) {
2658
+ } else if (month === JewishMonthsNames.AV && day > 2 && day < 10) {
2615
2659
  addDayNote("Shabbos Chazon", "\u05E9\u05D1\u05EA \u05D7\u05D6\u05D5\u05DF");
2616
- } else if (month === (isLeapYear ? 12 : 11) && day > 24 || month === (isLeapYear ? 13 : 12) && day === 1) {
2660
+ } else if (month === (isLeapYear ? JewishMonthsNames.ADAR : JewishMonthsNames.SHVAT) && day > 24 || month === (isLeapYear ? JewishMonthsNames.ADAR_SHEINI : JewishMonthsNames.ADAR) && day === 1) {
2617
2661
  addDayNote("Parshas Shkalim", "\u05E4\u05E8\u05E9\u05EA \u05E9\u05E7\u05DC\u05D9\u05DD");
2618
- } else if (month === (isLeapYear ? 13 : 12) && day > 7 && day < 14) {
2662
+ } else if (month === (isLeapYear ? JewishMonthsNames.ADAR_SHEINI : JewishMonthsNames.ADAR) && day > 7 && day < 14) {
2619
2663
  addDayNote("Parshas Zachor", "\u05E4\u05E8\u05E9\u05EA \u05D6\u05DB\u05D5\u05E8");
2620
- } else if (month === (isLeapYear ? 13 : 12) && day > 16 && day < 24) {
2664
+ } else if (month === (isLeapYear ? JewishMonthsNames.ADAR_SHEINI : JewishMonthsNames.ADAR) && day > 16 && day < 24) {
2621
2665
  addDayNote("Parshas Parah", "\u05E4\u05E8\u05E9\u05EA \u05E4\u05E8\u05D4");
2622
- } else if (month === (isLeapYear ? 13 : 12) && day > 23 && day < 30 || month === 1 && day === 1) {
2666
+ } else if (month === (isLeapYear ? JewishMonthsNames.ADAR_SHEINI : JewishMonthsNames.ADAR) && day > 23 && day < 30 || month === JewishMonthsNames.NISSAN && day === 1) {
2623
2667
  addDayNote("Parshas Hachodesh", "\u05E4\u05E8\u05E9\u05EA \u05D4\u05D7\u05D5\u05D3\u05E9");
2624
2668
  }
2625
2669
  if (isMorning && !isYomTov) {
@@ -2630,25 +2674,25 @@ function getShabbosNotifications() {
2630
2674
  `\u05E7\u05D4"\u05EA \u05E4\u05E8\u05E9\u05EA ${sedra.toStringHeb()}`
2631
2675
  );
2632
2676
  }
2633
- if (month !== 6 && day > 22 && day < 30) {
2677
+ if (month !== JewishMonthsNames.ELLUL && day > 22 && day < 30) {
2634
2678
  const nextMonth = jdate.addMonths(1);
2635
2679
  addTefillahNote(
2636
2680
  "The molad will be " + Molad.getString(nextMonth.Year, nextMonth.Month),
2637
2681
  "\u05D4\u05DE\u05D5\u05DC\u05D3 \u05D9\u05D4\u05D9\u05D4 \u05D1" + Molad.getStringHeb(nextMonth.Year, nextMonth.Month)
2638
2682
  );
2639
2683
  addTefillahNote("Bircas Hachodesh", "\u05DE\u05D1\u05E8\u05DB\u05D9\u05DD \u05D4\u05D7\u05D5\u05D3\u05E9");
2640
- if (month !== 1 && month !== 2) {
2684
+ if (month !== JewishMonthsNames.NISSAN && month !== JewishMonthsNames.IYAR) {
2641
2685
  addTefillahNote("No Av Harachamim", '\u05D0"\u05D0 \u05D0\u05D1 \u05D4\u05E8\u05D7\u05DE\u05D9\u05DD');
2642
2686
  }
2643
2687
  }
2644
2688
  }
2645
- if (month !== 7 && (day === 1 || day === 30)) {
2689
+ if (month !== JewishMonthsNames.TISHREI && (day === 1 || day === 30)) {
2646
2690
  addDayNote("Rosh Chodesh", "\u05E8\u05D0\u05E9 \u05D7\u05D5\u05D3\u05E9");
2647
2691
  addTefillahNote("Ya`aleh Viyavo", "\u05D9\u05E2\u05DC\u05D4 \u05D5\u05D9\u05D1\u05D0");
2648
2692
  if (showGaonShirShelYom && isDaytime) {
2649
2693
  addTefillahNote("Barchi Nafshi", '\u05E9\u05D9\u05E8 \u05E9\u05DC \u05D9\u05D5\u05DD - \u05E7\u05D9"\u05D3 - \u05D1\u05E8\u05DB\u05D9 \u05E0\u05E4\u05E9\u05D9');
2650
2694
  }
2651
- if (isDaytime && month !== 10 && !(month === 9 && day === 30)) {
2695
+ if (isDaytime && month !== JewishMonthsNames.TEVES && !(month === JewishMonthsNames.KISLEV && day === 30)) {
2652
2696
  addTefillahNote("Chatzi Hallel", "\u05D7\u05E6\u05D9 \u05D4\u05DC\u05DC");
2653
2697
  }
2654
2698
  addTefillahNote("No Av Harachamim", '\u05D0"\u05D0 \u05D0\u05D1 \u05D4\u05E8\u05D7\u05DE\u05D9\u05DD');
@@ -2658,14 +2702,14 @@ function getShabbosNotifications() {
2658
2702
  addTefillahNote("\u05E9\u05D9\u05E8 \u05E9\u05DC \u05D9\u05D5\u05DD - \u05DE\u05D6\u05DE\u05D5\u05E8 \u05E9\u05D9\u05E8 \u05DC\u05D9\u05D5\u05DD \u05D4\u05E9\u05D1\u05EA");
2659
2703
  }
2660
2704
  }
2661
- if (isAfternoon && !(month === 7 && day === 10)) {
2705
+ if (isAfternoon && !(month === JewishMonthsNames.TISHREI && day === 10)) {
2662
2706
  const sedra = jdate.addDays(1).getSedra(israel);
2663
2707
  addTefillahNote(
2664
2708
  "Kriyas Hatorah Mincha Parshas " + sedra.sedras[0].eng,
2665
2709
  '\u05E7\u05D4"\u05EA \u05D1\u05DE\u05E0\u05D7\u05D4 \u05E4\u05E8\u05E9\u05EA ' + sedra.sedras[0].heb
2666
2710
  );
2667
2711
  }
2668
- if (isAfternoon && (month === 1 && day > 21 || month <= 6 && !(month === 5 && [8, 9].includes(day)))) {
2712
+ if (isAfternoon && (month === JewishMonthsNames.NISSAN && day > 21 || month <= JewishMonthsNames.ELLUL && !(month === JewishMonthsNames.AV && [8, 9].includes(day)))) {
2669
2713
  const prakim = PirkeiAvos.getPrakim(jdate, israel);
2670
2714
  if (prakim.length > 0) {
2671
2715
  addDayNote(
@@ -2690,12 +2734,12 @@ function getWeekDayNotifications() {
2690
2734
  } = dayInfo;
2691
2735
  if (isNightTime && dow === DaysOfWeek.SUNDAY) {
2692
2736
  addTefillahNote(
2693
- month === 1 && day === 15 || month === 3 && day === 6 ? "\u05D5\u05EA\u05D5\u05D3\u05D9\u05E2\u05D9\u05E0\u05D5" : "\u05D0\u05EA\u05D4 \u05D7\u05D5\u05E0\u05E0\u05EA\u05E0\u05D5"
2737
+ 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"
2694
2738
  );
2695
- if (month === 6 && day > 22 || month === 7 && day < 22 && day !== 3 || month === 1 && day > 8 && day < 15 || month === 3 && day < 6) {
2739
+ if (month === JewishMonthsNames.ELLUL && day > 22 || month === JewishMonthsNames.TISHREI && day < 22 && day !== 3 || month === JewishMonthsNames.NISSAN && day > 8 && day < 15 || month === JewishMonthsNames.SIVAN && day < 6) {
2696
2740
  addTefillahNote("No Vihi Noam", '\u05D0"\u05D0 \u05D5\u05D9\u05D4\u05D9 \u05E0\u05D5\u05E2\u05DD');
2697
2741
  }
2698
- } else if (isNightTime && (month === 1 && (day === 16 || day === 22) || month === 3 && day === 7 || month === 7 && [3, 11, 16, 23].includes(day))) {
2742
+ } else if (isNightTime && (month === JewishMonthsNames.NISSAN && (day === 16 || day === 22) || month === JewishMonthsNames.SIVAN && day === 7 || month === JewishMonthsNames.TISHREI && [3, 11, 16, 23].includes(day))) {
2699
2743
  addTefillahNote("Ata Chonantanu", "\u05D0\u05EA\u05D4 \u05D7\u05D5\u05E0\u05E0\u05EA\u05E0\u05D5");
2700
2744
  }
2701
2745
  if (isMorning && !isYomTov && (dow === DaysOfWeek.MONDAY || dow === DaysOfWeek.THURSDAY) && !hasOwnKriyasHatorah(jdate, location)) {
@@ -2707,20 +2751,20 @@ function getWeekDayNotifications() {
2707
2751
  );
2708
2752
  }
2709
2753
  }
2710
- if (month !== 7 && day === 1 || day === 30) {
2754
+ if (month !== JewishMonthsNames.TISHREI && day === 1 || day === 30) {
2711
2755
  dayInfo.noTachnun = true;
2712
2756
  addDayNote("Rosh Chodesh", "\u05E8\u05D0\u05E9 \u05D7\u05D5\u05D3\u05E9");
2713
2757
  addTefillahNote("Ya`aleh Viyavo", "\u05D9\u05E2\u05DC\u05D4 \u05D5\u05D9\u05D1\u05D0");
2714
2758
  if (showGaonShirShelYom && isDaytime) {
2715
2759
  addTefillahNote("Barchi Nafshi", '\u05E9\u05D9\u05E8 \u05E9\u05DC \u05D9\u05D5\u05DD - \u05E7\u05D9"\u05D3 - \u05D1\u05E8\u05DB\u05D9 \u05E0\u05E4\u05E9\u05D9');
2716
2760
  }
2717
- if (isDaytime && month !== 10 && !(month === 9 && day === 30)) {
2761
+ if (isDaytime && month !== JewishMonthsNames.TEVES && !(month === JewishMonthsNames.KISLEV && day === 30)) {
2718
2762
  addTefillahNote("Chatzi Hallel", "\u05D7\u05E6\u05D9 \u05D4\u05DC\u05DC");
2719
2763
  if (isMorning && dow !== DaysOfWeek.SHABBOS) {
2720
2764
  noLaminatzeach();
2721
2765
  }
2722
2766
  }
2723
- } else if (month !== 6 && (dow < DaysOfWeek.FRIDAY && day === 29 || dow === DaysOfWeek.THURSDAY && day === 28) && isAfternoon) {
2767
+ } else if (month !== JewishMonthsNames.ELLUL && (dow < DaysOfWeek.FRIDAY && day === 29 || dow === DaysOfWeek.THURSDAY && day === 28) && isAfternoon) {
2724
2768
  addTefillahNote("Yom Kippur Kattan", '\u05D9\u05D5"\u05DB \u05E7\u05D8\u05DF');
2725
2769
  }
2726
2770
  if (jdate.hasEiruvTavshilin(israel)) {
@@ -3363,7 +3407,7 @@ function getAroundTheYearNotifications() {
3363
3407
  break;
3364
3408
  case 12:
3365
3409
  case 13:
3366
- if (month === 12 && isLeapYear) {
3410
+ if (month === JewishMonthsNames.ADAR && isLeapYear) {
3367
3411
  if ((day === 13 && isAfternoon || [14, 15].includes(day)) && isDaytime) {
3368
3412
  addDayNote(
3369
3413
  day === 14 ? showEnglish ? "Purim Katan" : "\u05E4\u05D5\u05E8\u05D9\u05DD \u05E7\u05D8\u05DF" : showEnglish ? "Shushan Purim Katan" : "\u05E9\u05D5\u05E9\u05DF \u05E4\u05D5\u05E8\u05D9\u05DD \u05E7\u05D8\u05DF"
@@ -3487,7 +3531,7 @@ function hasOwnKriyasHatorah(jdate, location) {
3487
3531
  return Day === 10 || Day < 3 || Day === 3 && jDate.isShortKislev(jdate.Year);
3488
3532
  case 12:
3489
3533
  case 13:
3490
- return Month === (jDate.isJdLeapY(jdate.Year) ? 13 : 12) && (Day === 13 || Day === (location.Name === "\u05D9\u05E8\u05D5\u05E9\u05DC\u05D9\u05DD" ? 15 : 14));
3534
+ return Month === (jDate.isJdLeapY(jdate.Year) ? JewishMonthsNames.ADAR_SHEINI : JewishMonthsNames.ADAR) && (Day === 13 || Day === (location.Name === "\u05D9\u05E8\u05D5\u05E9\u05DC\u05D9\u05DD" ? 15 : 14));
3491
3535
  default:
3492
3536
  return false;
3493
3537
  }
@@ -3499,6 +3543,7 @@ export {
3499
3543
  DaysOfWeekHeb,
3500
3544
  JewishMonthsEng,
3501
3545
  JewishMonthsHeb,
3546
+ JewishMonthsNames,
3502
3547
  Location,
3503
3548
  Locations,
3504
3549
  Molad,