jcal-zmanim 1.2.5 → 1.2.7

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
@@ -132,7 +132,7 @@ declare class jDate {
132
132
  /**Sets the current Jewish date from the given absolute date*/
133
133
  fromAbs(absolute: number): void;
134
134
  /**Returns a valid javascript Date object that represents the Gregorian date
135
- that starts at midnight of the current Jewish date.*/
135
+ that starts at midnight of the current Jewish date.*/
136
136
  getDate(): Date;
137
137
  /**
138
138
  * @returns {number} The day of the week for the current Jewish date. Sunday is 0 and Shabbos is 6.
package/dist/index.d.ts CHANGED
@@ -132,7 +132,7 @@ declare class jDate {
132
132
  /**Sets the current Jewish date from the given absolute date*/
133
133
  fromAbs(absolute: number): void;
134
134
  /**Returns a valid javascript Date object that represents the Gregorian date
135
- that starts at midnight of the current Jewish date.*/
135
+ that starts at midnight of the current Jewish date.*/
136
136
  getDate(): Date;
137
137
  /**
138
138
  * @returns {number} The day of the week for the current Jewish date. Sunday is 0 and Shabbos is 6.
package/dist/index.js CHANGED
@@ -470,7 +470,7 @@ var jDate = class _jDate {
470
470
  this.Abs = absolute;
471
471
  }
472
472
  /**Returns a valid javascript Date object that represents the Gregorian date
473
- that starts at midnight of the current Jewish date.*/
473
+ that starts at midnight of the current Jewish date.*/
474
474
  getDate() {
475
475
  return _jDate.sdFromAbs(this.Abs);
476
476
  }
@@ -658,11 +658,11 @@ var jDate = class _jDate {
658
658
  * @param {boolean} showYear - show the year number?
659
659
  */
660
660
  monthName(showYear = true) {
661
- return JewishMonthsEng[this.Month] + (showYear ? " " + this.Year.toString() : "");
661
+ return JewishMonthsEng[this.Month] + (this.Month === 12 && _jDate.isJdLeapY(this.Year) ? " Rishon " : " ") + (showYear ? this.Year.toString() : "");
662
662
  }
663
663
  /**Returns the current Jewish date in the format: יום חמישי כ"א כסלו תשע"ו.*/
664
664
  toStringHeb() {
665
- return DaysOfWeekHeb[this.getDayOfWeek()] + " " + Utils.toJewishNumber(this.Day) + " " + JewishMonthsHeb[this.Month] + " " + Utils.toJewishNumber(this.Year % 1e3);
665
+ return DaysOfWeekHeb[this.getDayOfWeek()] + " " + Utils.toJewishNumber(this.Day) + " " + JewishMonthsHeb[this.Month] + (this.Month === 12 && _jDate.isJdLeapY(this.Year) ? " \u05E8\u05D0\u05E9\u05D5\u05DF " : " ") + Utils.toJewishNumber(this.Year % 1e3);
666
666
  }
667
667
  /**Gets the day of the omer for the current Jewish date. If the date is not during sefira, 0 is returned.*/
668
668
  getDayOfOmer() {