@hebcal/core 3.46.6 → 3.46.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/bundle.js +27 -22
- package/dist/bundle.min.js +2 -2
- package/dist/greg0.mjs +1 -1
- package/dist/hdate-bundle.js +2 -2
- package/dist/hdate-bundle.min.js +2 -2
- package/dist/hdate.js +2 -2
- package/dist/hdate.mjs +2 -2
- package/dist/hdate0-bundle.js +1 -1
- package/dist/hdate0-bundle.min.js +1 -1
- package/dist/hdate0.mjs +1 -1
- package/dist/index.js +19 -22
- package/dist/index.mjs +19 -22
- package/hebcal.d.ts +1 -1
- package/package.json +5 -5
package/dist/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v3.46.
|
|
1
|
+
/*! @hebcal/core v3.46.7 */
|
|
2
2
|
var hebcal = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -5337,14 +5337,13 @@ var OmerEvent = /*#__PURE__*/function (_Event) {
|
|
|
5337
5337
|
function OmerEvent(date, omerDay) {
|
|
5338
5338
|
var _this;
|
|
5339
5339
|
_classCallCheck(this, OmerEvent);
|
|
5340
|
-
_this = _super.call(this, date, "Omer ".concat(omerDay), flags.OMER_COUNT
|
|
5341
|
-
omer: omerDay
|
|
5342
|
-
});
|
|
5340
|
+
_this = _super.call(this, date, "Omer ".concat(omerDay), flags.OMER_COUNT);
|
|
5343
5341
|
if (omerDay < 1 || omerDay > 49) {
|
|
5344
5342
|
throw new RangeError("Invalid Omer day ".concat(omerDay));
|
|
5345
5343
|
}
|
|
5346
5344
|
_this.weekNumber = Math.floor((omerDay - 1) / 7) + 1;
|
|
5347
5345
|
_this.daysWithinWeeks = omerDay % 7 || 7;
|
|
5346
|
+
_this.omer = omerDay;
|
|
5348
5347
|
return _this;
|
|
5349
5348
|
}
|
|
5350
5349
|
/**
|
|
@@ -5682,11 +5681,12 @@ var DafYomiEvent = /*#__PURE__*/function (_Event) {
|
|
|
5682
5681
|
* @param {HDate} date
|
|
5683
5682
|
*/
|
|
5684
5683
|
function DafYomiEvent(date) {
|
|
5684
|
+
var _this;
|
|
5685
5685
|
_classCallCheck(this, DafYomiEvent);
|
|
5686
5686
|
var daf = new DafYomi(date.greg());
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5687
|
+
_this = _super.call(this, date, daf.render('en'), flags.DAF_YOMI);
|
|
5688
|
+
_this.daf = daf;
|
|
5689
|
+
return _this;
|
|
5690
5690
|
}
|
|
5691
5691
|
/**
|
|
5692
5692
|
* Returns Daf Yomi name including the 'Daf Yomi: ' prefix (e.g. "Daf Yomi: Pesachim 107").
|
|
@@ -7057,11 +7057,10 @@ var AsaraBTevetEvent = /*#__PURE__*/function (_HolidayEvent2) {
|
|
|
7057
7057
|
* @param {HDate} date Hebrew date event occurs
|
|
7058
7058
|
* @param {string} desc Description (not translated)
|
|
7059
7059
|
* @param {number} [mask=0] optional holiday flags
|
|
7060
|
-
* @param {Object} [attrs={}]
|
|
7061
7060
|
*/
|
|
7062
|
-
function AsaraBTevetEvent(date, desc, mask
|
|
7061
|
+
function AsaraBTevetEvent(date, desc, mask) {
|
|
7063
7062
|
_classCallCheck(this, AsaraBTevetEvent);
|
|
7064
|
-
return _super3.call(this, date, desc, mask
|
|
7063
|
+
return _super3.call(this, date, desc, mask);
|
|
7065
7064
|
}
|
|
7066
7065
|
/** @return {string} */
|
|
7067
7066
|
_createClass(AsaraBTevetEvent, [{
|
|
@@ -7130,9 +7129,7 @@ var RoshHashanaEvent = /*#__PURE__*/function (_HolidayEvent3) {
|
|
|
7130
7129
|
function RoshHashanaEvent(date, hyear, mask) {
|
|
7131
7130
|
var _this2;
|
|
7132
7131
|
_classCallCheck(this, RoshHashanaEvent);
|
|
7133
|
-
_this2 = _super5.call(this, date, "Rosh Hashana ".concat(hyear), mask
|
|
7134
|
-
emoji: '🍏🍯'
|
|
7135
|
-
});
|
|
7132
|
+
_this2 = _super5.call(this, date, "Rosh Hashana ".concat(hyear), mask);
|
|
7136
7133
|
_this2.hyear = hyear;
|
|
7137
7134
|
return _this2;
|
|
7138
7135
|
}
|
|
@@ -7146,12 +7143,18 @@ var RoshHashanaEvent = /*#__PURE__*/function (_HolidayEvent3) {
|
|
|
7146
7143
|
value: function render(locale) {
|
|
7147
7144
|
return Locale.gettext('Rosh Hashana', locale) + ' ' + this.hyear;
|
|
7148
7145
|
}
|
|
7146
|
+
/** @return {string} */
|
|
7147
|
+
}, {
|
|
7148
|
+
key: "getEmoji",
|
|
7149
|
+
value: function getEmoji() {
|
|
7150
|
+
return '🍏🍯';
|
|
7151
|
+
}
|
|
7149
7152
|
}]);
|
|
7150
7153
|
return RoshHashanaEvent;
|
|
7151
7154
|
}(HolidayEvent);
|
|
7152
7155
|
var ykk = 'Yom Kippur Katan';
|
|
7153
7156
|
|
|
7154
|
-
/**
|
|
7157
|
+
/** YKK is minor day of atonement on the day preceeding each Rosh Chodesh */
|
|
7155
7158
|
var YomKippurKatanEvent = /*#__PURE__*/function (_HolidayEvent4) {
|
|
7156
7159
|
_inherits(YomKippurKatanEvent, _HolidayEvent4);
|
|
7157
7160
|
var _super6 = _createSuper(YomKippurKatanEvent);
|
|
@@ -7639,10 +7642,11 @@ var MishnaYomiEvent = /*#__PURE__*/function (_Event) {
|
|
|
7639
7642
|
* @param {MishnaYomi[]} mishnaYomi
|
|
7640
7643
|
*/
|
|
7641
7644
|
function MishnaYomiEvent(date, mishnaYomi) {
|
|
7645
|
+
var _this;
|
|
7642
7646
|
_classCallCheck(this, MishnaYomiEvent);
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7647
|
+
_this = _super.call(this, date, formatMyomi(mishnaYomi, null), flags.MISHNA_YOMI);
|
|
7648
|
+
_this.mishnaYomi = mishnaYomi;
|
|
7649
|
+
return _this;
|
|
7646
7650
|
}
|
|
7647
7651
|
/**
|
|
7648
7652
|
* Returns Mishna Yomi name (e.g. "Bava Metzia 10:5-6" or "Berakhot 9:5-Peah 1:1").
|
|
@@ -7830,10 +7834,11 @@ var YerushalmiYomiEvent = /*#__PURE__*/function (_Event) {
|
|
|
7830
7834
|
* @param {any} daf
|
|
7831
7835
|
*/
|
|
7832
7836
|
function YerushalmiYomiEvent(date, daf) {
|
|
7837
|
+
var _this;
|
|
7833
7838
|
_classCallCheck(this, YerushalmiYomiEvent);
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7839
|
+
_this = _super.call(this, date, "".concat(daf.name, " ").concat(daf.blatt), flags.YERUSHALMI_YOMI);
|
|
7840
|
+
_this.daf = daf;
|
|
7841
|
+
return _this;
|
|
7837
7842
|
}
|
|
7838
7843
|
/**
|
|
7839
7844
|
* Returns name of tractate and page (e.g. "Yerushalmi Beitzah 21").
|
|
@@ -7980,7 +7985,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
|
|
|
7980
7985
|
return new HDate(day, month, hyear);
|
|
7981
7986
|
}
|
|
7982
7987
|
|
|
7983
|
-
var version="3.46.
|
|
7988
|
+
var version="3.46.7";
|
|
7984
7989
|
|
|
7985
7990
|
var headers$1={"plural-forms":"nplurals=2; plural=(n > 1);"};var contexts$1={"":{Berachot:["Berachos"],Shabbat:["Shabbos"],Taanit:["Taanis"],Yevamot:["Yevamos"],Ketubot:["Kesubos"],"Baba Batra":["Baba Basra"],Makkot:["Makkos"],Shevuot:["Shevuos"],Horayot:["Horayos"],Menachot:["Menachos"],Bechorot:["Bechoros"],Keritot:["Kerisos"],Midot:["Midos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha'aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],Tazria:["Sazria"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH''M)"],"Sukkot III (CH''M)":["Sukkos III (CH''M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH''M)"],"Sukkot V (CH''M)":["Sukkos V (CH''M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH''M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta'anis Bechoros"],"Ta'anit Esther":["Ta'anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B'Teves"],Berakhot:["Berakhos"],Sheviit:["Sheviis"],Terumot:["Terumos"],Maasrot:["Maasros"],Eduyot:["Eduyos"],Avot:["Avos"],Bekhorot:["Bekhoros"],Middot:["Middos"],Oholot:["Oholos"],Tahorot:["Tahoros"],Mikvaot:["Mikvaos"],"Alot HaShachar":["Alos HaShachar"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot hayom":["Chatzos"],"Tzeit HaKochavim":["Tzeis HaKochavim"],"Birkat Hachamah":["Birkas Hachamah"],"Shushan Purim Katan":["Shushan Purim Koton"]}};var poAshkenazi = {headers:headers$1,contexts:contexts$1};
|
|
7986
7991
|
|
|
@@ -8719,7 +8724,7 @@ function getStartAndEnd(options) {
|
|
|
8719
8724
|
// for full Hebrew year, start on Erev Rosh Hashana which
|
|
8720
8725
|
// is technically in the previous Hebrew year
|
|
8721
8726
|
// (but conveniently lets us get candle-lighting time for Erev)
|
|
8722
|
-
if (!theMonth) {
|
|
8727
|
+
if (!theMonth && theYear > 1) {
|
|
8723
8728
|
startAbs--;
|
|
8724
8729
|
}
|
|
8725
8730
|
return [startAbs, endAbs];
|