jcal-zmanim 1.5.3 → 1.5.5

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
@@ -3632,6 +3632,9 @@ var _jDate = /*#__PURE__*/ function() {
3632
3632
  {
3633
3633
  key: "daysJYear",
3634
3634
  value: /**number of days in the given Jewish Year.*/ function daysJYear(year) {
3635
+ if (!year || year < 0) {
3636
+ return 0;
3637
+ }
3635
3638
  if (year >= 5e3) {
3636
3639
  return _jDate.yearType(year).daysInYear;
3637
3640
  } else {
@@ -3642,6 +3645,9 @@ var _jDate = /*#__PURE__*/ function() {
3642
3645
  {
3643
3646
  key: "isLongCheshvan",
3644
3647
  value: /**Does Cheshvan for the given Jewish Year have 30 days?*/ function isLongCheshvan(year) {
3648
+ if (!year || year < 0) {
3649
+ return false;
3650
+ }
3645
3651
  if (year >= 5e3) {
3646
3652
  return _jDate.yearType(year).isLongCheshvan;
3647
3653
  } else {
@@ -3652,6 +3658,9 @@ var _jDate = /*#__PURE__*/ function() {
3652
3658
  {
3653
3659
  key: "isShortKislev",
3654
3660
  value: /**Does Kislev for the given Jewish Year have 29 days?*/ function isShortKislev(year) {
3661
+ if (!year || year < 0) {
3662
+ return false;
3663
+ }
3655
3664
  if (year >= 5e3) {
3656
3665
  return !_jDate.yearType(year).isLongKislev;
3657
3666
  } else {
@@ -14095,6 +14104,7 @@ function getAroundTheYearNotifications() {
14095
14104
  if (isNightTime) {
14096
14105
  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");
14097
14106
  }
14107
+ break;
14098
14108
  case 15:
14099
14109
  addDayNote("First day of Sukkos", '\u05D9\u05D5"\u05D8 \u05E8\u05D0\u05E9\u05D5\u05DF \u05E9\u05DC \u05E1\u05D5\u05DB\u05D5\u05EA');
14100
14110
  addTefillahNote("Ya`aleh V`yavo", "\u05D9\u05E2\u05DC\u05D4 \u05D5\u05D9\u05D1\u05D0");