jcal-zmanim 1.2.5 → 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/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
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
|
-
|
|
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] + (
|
|
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
|
{
|