@hebcal/core 5.9.3 → 5.9.5
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 +36 -12
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +3 -3
- package/dist/bundle.min.js.map +1 -1
- package/dist/esm/DailyLearning.js +1 -1
- package/dist/esm/HebrewDateEvent.js +1 -1
- package/dist/esm/HolidayEvent.js +1 -1
- package/dist/esm/MevarchimChodeshEvent.js +1 -1
- package/dist/esm/ParshaEvent.js +1 -1
- package/dist/esm/TimedEvent.js +1 -1
- package/dist/esm/YomKippurKatanEvent.js +1 -1
- package/dist/esm/ashkenazi.po.js +1 -1
- package/dist/esm/calendar.js +1 -1
- package/dist/esm/candles.js +1 -1
- package/dist/esm/event.js +1 -1
- package/dist/esm/getStartAndEnd.js +1 -1
- package/dist/esm/hallel.js +1 -1
- package/dist/esm/he.po.js +1 -1
- package/dist/esm/hebcal.js +1 -1
- package/dist/esm/holidays.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/locale.js +1 -1
- package/dist/esm/location.js +4 -1
- package/dist/esm/location.js.map +1 -1
- package/dist/esm/modern.js +1 -1
- package/dist/esm/molad.js +1 -1
- package/dist/esm/omer.d.ts +6 -1
- package/dist/esm/omer.js +27 -9
- package/dist/esm/omer.js.map +1 -1
- package/dist/esm/parshaName.js +1 -1
- package/dist/esm/parshaYear.js +1 -1
- package/dist/esm/pkgVersion.d.ts +1 -1
- package/dist/esm/pkgVersion.js +2 -2
- package/dist/esm/pkgVersion.js.map +1 -1
- package/dist/esm/reformatTimeStr.js +1 -1
- package/dist/esm/sedra.js +1 -1
- package/dist/esm/staticHolidays.js +1 -1
- package/dist/esm/tachanun.js +1 -1
- package/dist/esm/zmanim.js +1 -1
- package/dist/index.cjs +31 -10
- package/dist/index.cjs.map +1 -1
- package/dist/omer.d.ts +6 -1
- package/dist/pkgVersion.d.ts +1 -1
- package/package.json +11 -11
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v5.9.
|
|
1
|
+
/*! @hebcal/core v5.9.5, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var hdate = require('@hebcal/hdate');
|
|
@@ -6,7 +6,7 @@ var noaa = require('@hebcal/noaa');
|
|
|
6
6
|
require('temporal-polyfill/global');
|
|
7
7
|
|
|
8
8
|
/** DO NOT EDIT THIS AUTO-GENERATED FILE! */
|
|
9
|
-
const version = '5.9.
|
|
9
|
+
const version = '5.9.5';
|
|
10
10
|
|
|
11
11
|
var poAshkenazi = { "headers": { "plural-forms": "nplurals=2; plural=(n > 1);", "language": "en_CA@ashkenazi" }, "contexts": { "": { "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"], "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"] } } };
|
|
12
12
|
|
|
@@ -487,6 +487,9 @@ class Location extends noaa.GeoLocation {
|
|
|
487
487
|
if (isNaN(long) || long < -180 || long > 180) {
|
|
488
488
|
throw new RangeError(`Longitude ${longitude} out of range [-180,180]`);
|
|
489
489
|
}
|
|
490
|
+
if (!tzid) {
|
|
491
|
+
throw new RangeError(`Invalid timezone`);
|
|
492
|
+
}
|
|
490
493
|
const elev = typeof elevation === 'number' && elevation > 0 ? elevation : 0;
|
|
491
494
|
super(cityName || null, lat, long, elev, tzid);
|
|
492
495
|
this.il = Boolean(il);
|
|
@@ -2438,19 +2441,30 @@ const sefirot = {
|
|
|
2438
2441
|
'Foundation',
|
|
2439
2442
|
'Majesty',
|
|
2440
2443
|
],
|
|
2444
|
+
pfxWords: null,
|
|
2441
2445
|
},
|
|
2442
2446
|
he: {
|
|
2443
|
-
infix:
|
|
2444
|
-
infix26:
|
|
2447
|
+
infix: null,
|
|
2448
|
+
infix26: null,
|
|
2445
2449
|
words: [
|
|
2446
2450
|
'',
|
|
2447
2451
|
'חֶֽסֶד',
|
|
2448
|
-
'
|
|
2452
|
+
'גְּבוּרָה',
|
|
2449
2453
|
'תִּפְאֶֽרֶת',
|
|
2450
2454
|
'נֶּֽצַח',
|
|
2451
2455
|
'הוֹד',
|
|
2452
2456
|
'יְּסוֹד',
|
|
2453
|
-
'
|
|
2457
|
+
'מַלְכוּת',
|
|
2458
|
+
],
|
|
2459
|
+
pfxWords: [
|
|
2460
|
+
'',
|
|
2461
|
+
'שֶׁבְּחֶֽסֶד',
|
|
2462
|
+
'שֶׁבִּגְבוּרָה',
|
|
2463
|
+
'שֶׁבְּתִפְאֶֽרֶת',
|
|
2464
|
+
'שֶׁבְּנֶֽצַח',
|
|
2465
|
+
'שֶׁבְּהוֹד',
|
|
2466
|
+
'שֶׁבִּיְסוֹד',
|
|
2467
|
+
'שֶׁבְּמַלְכוּת',
|
|
2454
2468
|
],
|
|
2455
2469
|
},
|
|
2456
2470
|
translit: {
|
|
@@ -2466,6 +2480,7 @@ const sefirot = {
|
|
|
2466
2480
|
'Yesod',
|
|
2467
2481
|
'Malkhut',
|
|
2468
2482
|
],
|
|
2483
|
+
pfxWords: null,
|
|
2469
2484
|
},
|
|
2470
2485
|
};
|
|
2471
2486
|
function checkDay(omerDay) {
|
|
@@ -2556,7 +2571,7 @@ function omerTodayIsHe(omerDay) {
|
|
|
2556
2571
|
}
|
|
2557
2572
|
if (omerDay > 6) {
|
|
2558
2573
|
str = str.trim(); // remove trailing space before comma
|
|
2559
|
-
str += ',
|
|
2574
|
+
str += ', שֶׁהֵם ';
|
|
2560
2575
|
const weeks = Math.floor(omerDay / 7);
|
|
2561
2576
|
const days = omerDay % 7;
|
|
2562
2577
|
if (weeks > 2) {
|
|
@@ -2621,9 +2636,15 @@ class OmerEvent extends Event {
|
|
|
2621
2636
|
}
|
|
2622
2637
|
const [weekNum, daysWithinWeeks] = getWeeks(this.omer);
|
|
2623
2638
|
const config = sefirot[lang];
|
|
2624
|
-
const
|
|
2625
|
-
const
|
|
2626
|
-
const
|
|
2639
|
+
const pfxWords = config.pfxWords;
|
|
2640
|
+
const words = config.words;
|
|
2641
|
+
const week = pfxWords ? pfxWords[weekNum] : words[weekNum];
|
|
2642
|
+
const dayWithinWeek = words[daysWithinWeeks];
|
|
2643
|
+
const infix = pfxWords
|
|
2644
|
+
? ''
|
|
2645
|
+
: weekNum === 2 || weekNum === 6
|
|
2646
|
+
? config.infix26
|
|
2647
|
+
: config.infix;
|
|
2627
2648
|
return (dayWithinWeek + ' ' + infix + week).normalize();
|
|
2628
2649
|
}
|
|
2629
2650
|
/**
|