jcal-zmanim 1.2.4 → 1.2.6

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 CHANGED
@@ -67,7 +67,7 @@ console.log(`Your jewish Birthday is the ${Utils.toSuffixed(jewishDob.Day)} day
67
67
  On ${Utils.toStringDate(nextBirthdayDate)} you will become ${age + 1} in Jewish.`);
68
68
  ```
69
69
  The code above prints out to the console:
70
- >Your Jewish Birthday is the 20th day of Tamuz.
70
+ >Your Jewish Birthday is the 20th day of Tamuz.<br>
71
71
  >On Wednesday, the 16th of July 2025 you will become 29 in Jewish.
72
72
 
73
73
  ##### Get the current Jewish Date in Hong Kong - taking into consideration that it may be after sunset there right now.
@@ -541,7 +541,7 @@ The above code prints out:
541
541
  |Parameter|Type|Description|
542
542
  |-----:|:-------:|:--------|
543
543
  |**date**|`Date` or `jDate`|Either a jDate or a javascript Date|
544
- |**time**|`{hour, minute}}`|The time of day for which to show notifications for. <br>For example, "Hallel" will not be shown at night etc.|
544
+ |**time**|`{hour, minute}`|The time of day for which to show notifications for. <br>For example, "Hallel" will not be shown at night etc.|
545
545
  |**location**|`Location`|Where in the world to show notifications for?|
546
546
  |**english**|`boolean`|Should the notifications be in English or Hebrew?|
547
547
  |**showGaonShir**|`boolean`|Should the *Shir Shel Yom* of the Gr"a be shown?<br>If this paremeter is undefined, it will not be shown, unless the location is in Israel.|
@@ -594,4 +594,4 @@ It also has some extremely useful general functions.
594
594
  |**Utils.setDefault(paramValue, defValue)**|`any`|Returns the first value unless it is undefined, null or NaN.<br>This is very useful for boolean, string and integer parameters<br>where we want to keep false, "" and 0 if they were supplied.<br>Similar purpose to default parameters with the difference being that this function will return the second value if the first is NaN or null, while default params will give give you the NaN or the null.|
595
595
  |**Utils.log(string, ...optionalItems)**||Log message to console|
596
596
  |**Utils.warn(string, ...optionalItems)**||Warn message to console|
597
- |**Utils.error(string, ...optionalItems)**||Error message to console|
597
+ |**Utils.error(string, ...optionalItems)**||Error message to console|
package/dist/README.md CHANGED
@@ -67,7 +67,7 @@ console.log(`Your jewish Birthday is the ${Utils.toSuffixed(jewishDob.Day)} day
67
67
  On ${Utils.toStringDate(nextBirthdayDate)} you will become ${age + 1} in Jewish.`);
68
68
  ```
69
69
  The code above prints out to the console:
70
- >Your Jewish Birthday is the 20th day of Tamuz.
70
+ >Your Jewish Birthday is the 20th day of Tamuz.<br>
71
71
  >On Wednesday, the 16th of July 2025 you will become 29 in Jewish.
72
72
 
73
73
  ##### Get the current Jewish Date in Hong Kong - taking into consideration that it may be after sunset there right now.
@@ -541,7 +541,7 @@ The above code prints out:
541
541
  |Parameter|Type|Description|
542
542
  |-----:|:-------:|:--------|
543
543
  |**date**|`Date` or `jDate`|Either a jDate or a javascript Date|
544
- |**time**|`{hour, minute}}`|The time of day for which to show notifications for. <br>For example, "Hallel" will not be shown at night etc.|
544
+ |**time**|`{hour, minute}`|The time of day for which to show notifications for. <br>For example, "Hallel" will not be shown at night etc.|
545
545
  |**location**|`Location`|Where in the world to show notifications for?|
546
546
  |**english**|`boolean`|Should the notifications be in English or Hebrew?|
547
547
  |**showGaonShir**|`boolean`|Should the *Shir Shel Yom* of the Gr"a be shown?<br>If this paremeter is undefined, it will not be shown, unless the location is in Israel.|
@@ -594,4 +594,4 @@ It also has some extremely useful general functions.
594
594
  |**Utils.setDefault(paramValue, defValue)**|`any`|Returns the first value unless it is undefined, null or NaN.<br>This is very useful for boolean, string and integer parameters<br>where we want to keep false, "" and 0 if they were supplied.<br>Similar purpose to default parameters with the difference being that this function will return the second value if the first is NaN or null, while default params will give give you the NaN or the null.|
595
595
  |**Utils.log(string, ...optionalItems)**||Log message to console|
596
596
  |**Utils.warn(string, ...optionalItems)**||Warn message to console|
597
- |**Utils.error(string, ...optionalItems)**||Error message to console|
597
+ |**Utils.error(string, ...optionalItems)**||Error message to console|
package/dist/index.cjs CHANGED
@@ -1970,7 +1970,7 @@ var jDate = /*#__PURE__*/ function() {
1970
1970
  },
1971
1971
  {
1972
1972
  /**Returns a valid javascript Date object that represents the Gregorian date
1973
- that starts at midnight of the current Jewish date.*/ key: "getDate",
1973
+ that starts at midnight of the current Jewish date.*/ key: "getDate",
1974
1974
  value: function getDate() {
1975
1975
  return _jDate.sdFromAbs(this.Abs);
1976
1976
  }
@@ -2191,13 +2191,13 @@ var jDate = /*#__PURE__*/ function() {
2191
2191
  */ key: "monthName",
2192
2192
  value: function monthName() {
2193
2193
  var showYear = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
2194
- return JewishMonthsEng[this.Month] + (showYear ? " " + this.Year.toString() : "");
2194
+ return JewishMonthsEng[this.Month] + (this.Month === 12 && _jDate.isJdLeapY(this.Year) ? " Rishon " : " ") + (showYear ? this.Year.toString() : "");
2195
2195
  }
2196
2196
  },
2197
2197
  {
2198
2198
  /**Returns the current Jewish date in the format: יום חמישי כ"א כסלו תשע"ו.*/ key: "toStringHeb",
2199
2199
  value: function toStringHeb() {
2200
- return DaysOfWeekHeb[this.getDayOfWeek()] + " " + Utils.toJewishNumber(this.Day) + " " + JewishMonthsHeb[this.Month] + " " + Utils.toJewishNumber(this.Year % 1e3);
2200
+ return DaysOfWeekHeb[this.getDayOfWeek()] + " " + Utils.toJewishNumber(this.Day) + " " + JewishMonthsHeb[this.Month] + (this.Month === 12 && _jDate.isJdLeapY(this.Year) ? " ראשון " : " ") + Utils.toJewishNumber(this.Year % 1e3);
2201
2201
  }
2202
2202
  },
2203
2203
  {