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.cjs CHANGED
@@ -153,8 +153,8 @@ var __toCommonJS = function(mod) {
153
153
  }), mod);
154
154
  };
155
155
  // src/index.ts
156
- var src_exports = {};
157
- __export(src_exports, {
156
+ var index_exports = {};
157
+ __export(index_exports, {
158
158
  Dafyomi: function() {
159
159
  return Dafyomi;
160
160
  },
@@ -228,7 +228,7 @@ __export(src_exports, {
228
228
  return jDate;
229
229
  }
230
230
  });
231
- module.exports = __toCommonJS(src_exports);
231
+ module.exports = __toCommonJS(index_exports);
232
232
  // src/JCal/Sedra.ts
233
233
  var _Sedra = /*#__PURE__*/ function() {
234
234
  function _Sedra(jd, israel2) {
@@ -271,7 +271,7 @@ var _Sedra = /*#__PURE__*/ function() {
271
271
  * Gets the sedra/s as a string. If there are two, they are seperated by a " - "
272
272
  */ key: "toString",
273
273
  value: function toString() {
274
- return this.sedras.map(function(s) {
274
+ return this.sedras.length > 0 && this.sedras.map(function(s) {
275
275
  return s.eng;
276
276
  }).join(" - ");
277
277
  }
@@ -281,7 +281,7 @@ var _Sedra = /*#__PURE__*/ function() {
281
281
  * Gets the sedra/s as a string. If there are two, they are seperated by a " - "
282
282
  */ key: "toStringHeb",
283
283
  value: function toStringHeb() {
284
- return this.sedras.map(function(s) {
284
+ return this.sedras.length > 0 && this.sedras.map(function(s) {
285
285
  return s.heb;
286
286
  }).join(" - ");
287
287
  }
@@ -13629,6 +13629,8 @@ function getShabbosNotifications() {
13629
13629
  addDayNote("Shabbos Shuva", "\u05E9\u05D1\u05EA \u05E9\u05D5\u05D1\u05D4");
13630
13630
  } else if (month === JewishMonthsNames.AV && day > 2 && day < 10) {
13631
13631
  addDayNote("Shabbos Chazon", "\u05E9\u05D1\u05EA \u05D7\u05D6\u05D5\u05DF");
13632
+ } else if (month === JewishMonthsNames.AV && day > 10 && day < 18) {
13633
+ addDayNote("Shabbos Nachamu", "\u05E9\u05D1\u05EA \u05E0\u05D7\u05DE\u05D5");
13632
13634
  } else if (month === (isLeapYear ? JewishMonthsNames.ADAR : JewishMonthsNames.SHVAT) && day > 24 || month === (isLeapYear ? JewishMonthsNames.ADAR_SHEINI : JewishMonthsNames.ADAR) && day === 1) {
13633
13635
  addDayNote("Parshas Shkalim", "\u05E4\u05E8\u05E9\u05EA \u05E9\u05E7\u05DC\u05D9\u05DD");
13634
13636
  } else if (month === (isLeapYear ? JewishMonthsNames.ADAR_SHEINI : JewishMonthsNames.ADAR) && day > 7 && day < 14) {
@@ -13638,9 +13640,12 @@ function getShabbosNotifications() {
13638
13640
  } else if (month === (isLeapYear ? JewishMonthsNames.ADAR_SHEINI : JewishMonthsNames.ADAR) && day > 23 && day < 30 || month === JewishMonthsNames.NISSAN && day === 1) {
13639
13641
  addDayNote("Parshas Hachodesh", "\u05E4\u05E8\u05E9\u05EA \u05D4\u05D7\u05D5\u05D3\u05E9");
13640
13642
  }
13641
- if (isMorning && !isYomTov) {
13643
+ if (!isYomTov) {
13642
13644
  var sedra = jdate.getSedra(israel);
13643
- if (sedra.sedras.length > 0) {
13645
+ if (sedra.sedras.length > 0 && sedra.toStringHeb() === "\u05D1\u05E9\u05DC\u05D7") {
13646
+ addDayNote("Shabbos Shira", "\u05E9\u05D1\u05EA \u05E9\u05D9\u05E8\u05D4");
13647
+ }
13648
+ if (isMorning && sedra.sedras.length > 0) {
13644
13649
  addTefillahNote("Kriyas Hatorah Parshas ".concat(sedra.toString()), 'קה"ת פרשת '.concat(sedra.toStringHeb()));
13645
13650
  }
13646
13651
  if (month !== JewishMonthsNames.ELLUL && day > 22 && day < 30) {