@hebcal/core 5.0.0-rc6 → 5.0.0
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 +9 -19
- package/dist/bundle.min.js +2 -2
- package/dist/index.js +7 -16
- package/dist/index.mjs +7 -16
- package/package.json +7 -7
package/dist/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v5.0.0
|
|
1
|
+
/*! @hebcal/core v5.0.0 */
|
|
2
2
|
var hebcal = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -781,7 +781,6 @@ function monthFromName(monthName) {
|
|
|
781
781
|
if (c[1] == 'o') {
|
|
782
782
|
break; /* this catches "november" */
|
|
783
783
|
}
|
|
784
|
-
|
|
785
784
|
return months.NISAN;
|
|
786
785
|
case 'i':
|
|
787
786
|
return months.IYYAR;
|
|
@@ -1098,7 +1097,7 @@ class HDate {
|
|
|
1098
1097
|
* @private
|
|
1099
1098
|
* @type {number}
|
|
1100
1099
|
*/
|
|
1101
|
-
this.
|
|
1100
|
+
this.rd = abs0;
|
|
1102
1101
|
}
|
|
1103
1102
|
}
|
|
1104
1103
|
}
|
|
@@ -1199,10 +1198,10 @@ class HDate {
|
|
|
1199
1198
|
* @return {number}
|
|
1200
1199
|
*/
|
|
1201
1200
|
abs() {
|
|
1202
|
-
if (typeof this.
|
|
1203
|
-
this.
|
|
1201
|
+
if (typeof this.rd !== 'number') {
|
|
1202
|
+
this.rd = hebrew2abs(this.yy, this.mm, this.dd);
|
|
1204
1203
|
}
|
|
1205
|
-
return this.
|
|
1204
|
+
return this.rd;
|
|
1206
1205
|
}
|
|
1207
1206
|
|
|
1208
1207
|
/**
|
|
@@ -1694,7 +1693,7 @@ function fixMonth(date) {
|
|
|
1694
1693
|
date.yy += 1;
|
|
1695
1694
|
fix(date);
|
|
1696
1695
|
}
|
|
1697
|
-
delete date.
|
|
1696
|
+
delete date.rd;
|
|
1698
1697
|
}
|
|
1699
1698
|
|
|
1700
1699
|
/**
|
|
@@ -7092,7 +7091,6 @@ function makeCandleEvent(e, hd, dow, location, options) {
|
|
|
7092
7091
|
if (isNaN(time.getTime())) {
|
|
7093
7092
|
return null; // no sunset
|
|
7094
7093
|
}
|
|
7095
|
-
|
|
7096
7094
|
if (havdalahTitle) {
|
|
7097
7095
|
return new HavdalahEvent(hd, mask, time, location, options.havdalahMins, e);
|
|
7098
7096
|
} else {
|
|
@@ -7728,7 +7726,6 @@ class Sedra {
|
|
|
7728
7726
|
if (idx === -1) {
|
|
7729
7727
|
return null; // doesn't occur this year
|
|
7730
7728
|
}
|
|
7731
|
-
|
|
7732
7729
|
return new HDate(this.firstSaturday + idx * 7);
|
|
7733
7730
|
} else if (typeof parsha === 'string') {
|
|
7734
7731
|
const num = parsha2id.get(parsha);
|
|
@@ -7742,7 +7739,6 @@ class Sedra {
|
|
|
7742
7739
|
if (idx === -1) {
|
|
7743
7740
|
return null; // doesn't occur this year
|
|
7744
7741
|
}
|
|
7745
|
-
|
|
7746
7742
|
return new HDate(this.firstSaturday + idx * 7);
|
|
7747
7743
|
}
|
|
7748
7744
|
} else if (Array.isArray(parsha) && parsha.length === 1 && typeof parsha[0] === 'string') {
|
|
@@ -7799,7 +7795,6 @@ class Sedra {
|
|
|
7799
7795
|
const sedra = new Sedra(this.year + 1, this.il);
|
|
7800
7796
|
return sedra.lookup(saturday); // must be next year
|
|
7801
7797
|
}
|
|
7802
|
-
|
|
7803
7798
|
if (typeof index === 'string') {
|
|
7804
7799
|
// Shabbat has a chag. Return a description
|
|
7805
7800
|
return {
|
|
@@ -8434,10 +8429,10 @@ var store$1 = sharedStore;
|
|
|
8434
8429
|
(shared$3.exports = function (key, value) {
|
|
8435
8430
|
return store$1[key] || (store$1[key] = value !== undefined ? value : {});
|
|
8436
8431
|
})('versions', []).push({
|
|
8437
|
-
version: '3.
|
|
8432
|
+
version: '3.34.0',
|
|
8438
8433
|
mode: 'global',
|
|
8439
8434
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
8440
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
8435
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE',
|
|
8441
8436
|
source: 'https://github.com/zloirock/core-js'
|
|
8442
8437
|
});
|
|
8443
8438
|
|
|
@@ -9808,7 +9803,7 @@ class DailyLearning {
|
|
|
9808
9803
|
}
|
|
9809
9804
|
}
|
|
9810
9805
|
|
|
9811
|
-
const version="5.0.0
|
|
9806
|
+
const version="5.0.0";
|
|
9812
9807
|
|
|
9813
9808
|
const headers$1={"plural-forms":"nplurals=2; plural=(n > 1);"};const contexts$1={"":{Shabbat:["Shabbos"],"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"],"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"],"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};
|
|
9814
9809
|
|
|
@@ -10500,7 +10495,6 @@ function tachanunYear(year, il) {
|
|
|
10500
10495
|
// Purim
|
|
10501
10496
|
shushPurim, leap ? new HDate(14, months.ADAR_I, year) : [] // Purim Katan
|
|
10502
10497
|
);
|
|
10503
|
-
|
|
10504
10498
|
const some = [].concat(
|
|
10505
10499
|
// Until 14 Sivan
|
|
10506
10500
|
range(1, 13).map(mday => new HDate(mday, months.SIVAN, year)),
|
|
@@ -10517,7 +10511,6 @@ function tachanunYear(year, il) {
|
|
|
10517
10511
|
// Erev Yom Kippur
|
|
10518
10512
|
new HDate(14, months.IYYAR, year) // Pesach Sheini
|
|
10519
10513
|
);
|
|
10520
|
-
|
|
10521
10514
|
return {
|
|
10522
10515
|
none: none.map(hd => hd.abs()).sort((a, b) => a - b),
|
|
10523
10516
|
some: some.map(hd => hd.abs()).sort((a, b) => a - b),
|
|
@@ -11477,12 +11470,10 @@ function appendHolidayAndRelated(events, ev, options, candlesEv, dow) {
|
|
|
11477
11470
|
if (!ev.observedIn(il)) {
|
|
11478
11471
|
return candlesEv; // holiday isn't observed here; bail out early
|
|
11479
11472
|
}
|
|
11480
|
-
|
|
11481
11473
|
const eFlags = ev.getFlags();
|
|
11482
11474
|
if (!options.yomKippurKatan && eFlags & YOM_KIPPUR_KATAN || options.noModern && eFlags & MODERN_HOLIDAY) {
|
|
11483
11475
|
return candlesEv; // bail out early
|
|
11484
11476
|
}
|
|
11485
|
-
|
|
11486
11477
|
const location = options.location;
|
|
11487
11478
|
const isMajorFast = Boolean(eFlags & MAJOR_FAST);
|
|
11488
11479
|
const isMinorFast = Boolean(eFlags & MINOR_FAST);
|
|
@@ -11515,7 +11506,6 @@ function appendHolidayAndRelated(events, ev, options, candlesEv, dow) {
|
|
|
11515
11506
|
events.push(ev); // the original event itself
|
|
11516
11507
|
}
|
|
11517
11508
|
}
|
|
11518
|
-
|
|
11519
11509
|
if (ev.endEvent && (isMajorFast || isMinorFast && !options.noMinorFast)) {
|
|
11520
11510
|
events.push(ev.endEvent);
|
|
11521
11511
|
}
|