jcal-zmanim 1.5.2 → 1.5.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
@@ -28,11 +28,11 @@ declare class Sedra {
28
28
  /**
29
29
  * Gets the sedra/s as a string. If there are two, they are seperated by a " - "
30
30
  */
31
- toString(): string;
31
+ toString(): string | false;
32
32
  /**
33
33
  * Gets the sedra/s as a string. If there are two, they are seperated by a " - "
34
34
  */
35
- toStringHeb(): string;
35
+ toStringHeb(): string | false;
36
36
  static lastCalculatedYear: {
37
37
  firstSatInYear: number;
38
38
  sedraArray?: number[];
package/dist/index.d.ts CHANGED
@@ -28,11 +28,11 @@ declare class Sedra {
28
28
  /**
29
29
  * Gets the sedra/s as a string. If there are two, they are seperated by a " - "
30
30
  */
31
- toString(): string;
31
+ toString(): string | false;
32
32
  /**
33
33
  * Gets the sedra/s as a string. If there are two, they are seperated by a " - "
34
34
  */
35
- toStringHeb(): string;
35
+ toStringHeb(): string | false;
36
36
  static lastCalculatedYear: {
37
37
  firstSatInYear: number;
38
38
  sedraArray?: number[];
package/dist/index.js CHANGED
@@ -148,7 +148,7 @@ var _Sedra = /*#__PURE__*/ function() {
148
148
  * Gets the sedra/s as a string. If there are two, they are seperated by a " - "
149
149
  */ key: "toString",
150
150
  value: function toString() {
151
- return this.sedras.map(function(s) {
151
+ return this.sedras.length > 0 && this.sedras.map(function(s) {
152
152
  return s.eng;
153
153
  }).join(" - ");
154
154
  }
@@ -158,7 +158,7 @@ var _Sedra = /*#__PURE__*/ function() {
158
158
  * Gets the sedra/s as a string. If there are two, they are seperated by a " - "
159
159
  */ key: "toStringHeb",
160
160
  value: function toStringHeb() {
161
- return this.sedras.map(function(s) {
161
+ return this.sedras.length > 0 && this.sedras.map(function(s) {
162
162
  return s.heb;
163
163
  }).join(" - ");
164
164
  }
@@ -13514,6 +13514,8 @@ function getShabbosNotifications() {
13514
13514
  addDayNote("Shabbos Shuva", "\u05E9\u05D1\u05EA \u05E9\u05D5\u05D1\u05D4");
13515
13515
  } else if (month === JewishMonthsNames.AV && day > 2 && day < 10) {
13516
13516
  addDayNote("Shabbos Chazon", "\u05E9\u05D1\u05EA \u05D7\u05D6\u05D5\u05DF");
13517
+ } else if (month === JewishMonthsNames.AV && day > 10 && day < 18) {
13518
+ addDayNote("Shabbos Nachamu", "\u05E9\u05D1\u05EA \u05E0\u05D7\u05DE\u05D5");
13517
13519
  } else if (month === (isLeapYear ? JewishMonthsNames.ADAR : JewishMonthsNames.SHVAT) && day > 24 || month === (isLeapYear ? JewishMonthsNames.ADAR_SHEINI : JewishMonthsNames.ADAR) && day === 1) {
13518
13520
  addDayNote("Parshas Shkalim", "\u05E4\u05E8\u05E9\u05EA \u05E9\u05E7\u05DC\u05D9\u05DD");
13519
13521
  } else if (month === (isLeapYear ? JewishMonthsNames.ADAR_SHEINI : JewishMonthsNames.ADAR) && day > 7 && day < 14) {
@@ -13523,9 +13525,12 @@ function getShabbosNotifications() {
13523
13525
  } else if (month === (isLeapYear ? JewishMonthsNames.ADAR_SHEINI : JewishMonthsNames.ADAR) && day > 23 && day < 30 || month === JewishMonthsNames.NISSAN && day === 1) {
13524
13526
  addDayNote("Parshas Hachodesh", "\u05E4\u05E8\u05E9\u05EA \u05D4\u05D7\u05D5\u05D3\u05E9");
13525
13527
  }
13526
- if (isMorning && !isYomTov) {
13528
+ if (!isYomTov) {
13527
13529
  var sedra = jdate.getSedra(israel);
13528
- if (sedra.sedras.length > 0) {
13530
+ if (sedra.sedras.length > 0 && sedra.toStringHeb() === "\u05D1\u05E9\u05DC\u05D7") {
13531
+ addDayNote("Shabbos Shira", "\u05E9\u05D1\u05EA \u05E9\u05D9\u05E8\u05D4");
13532
+ }
13533
+ if (isMorning && sedra.sedras.length > 0) {
13529
13534
  addTefillahNote("Kriyas Hatorah Parshas ".concat(sedra.toString()), 'קה"ת פרשת '.concat(sedra.toStringHeb()));
13530
13535
  }
13531
13536
  if (month !== JewishMonthsNames.ELLUL && day > 22 && day < 30) {