@hebcal/core 3.26.2 → 3.26.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/README.md +122 -65
- package/dist/bundle.js +993 -77
- package/dist/bundle.min.js +2 -2
- package/dist/hdate-bundle.js +959 -52
- package/dist/hdate-bundle.min.js +2 -2
- package/dist/hdate.js +35 -31
- package/dist/hdate.mjs +35 -31
- package/dist/index.js +69 -36
- package/dist/index.mjs +69 -36
- package/hebcal.d.ts +66 -35
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v3.26.
|
|
1
|
+
/*! @hebcal/core v3.26.6 */
|
|
2
2
|
/*
|
|
3
3
|
Hebcal - A Jewish Calendar Generator
|
|
4
4
|
Copyright (c) 1994-2020 Danny Sadinoff
|
|
@@ -27,7 +27,7 @@ const monthLengths = [[0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], [0, 3
|
|
|
27
27
|
* @return {number}
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
|
-
function mod
|
|
30
|
+
function mod(x, y) {
|
|
31
31
|
return x - y * Math.floor(x / y);
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
@@ -37,7 +37,6 @@ function mod$1(x, y) {
|
|
|
37
37
|
* @return {number}
|
|
38
38
|
*/
|
|
39
39
|
|
|
40
|
-
|
|
41
40
|
function quotient(x, y) {
|
|
42
41
|
return Math.floor(x / y);
|
|
43
42
|
}
|
|
@@ -120,7 +119,8 @@ const greg = {
|
|
|
120
119
|
|
|
121
120
|
const year = date.getFullYear() - 1;
|
|
122
121
|
return this.dayOfYear(date) + // days this year
|
|
123
|
-
365 * year + (
|
|
122
|
+
365 * year + ( // + days in prior years
|
|
123
|
+
Math.floor(year / 4) - // + Julian Leap years
|
|
124
124
|
Math.floor(year / 100) + // - century years
|
|
125
125
|
Math.floor(year / 400)); // + Gregorian leap years
|
|
126
126
|
},
|
|
@@ -133,11 +133,11 @@ const greg = {
|
|
|
133
133
|
yearFromFixed: function (theDate) {
|
|
134
134
|
const l0 = theDate - 1;
|
|
135
135
|
const n400 = quotient(l0, 146097);
|
|
136
|
-
const d1 = mod
|
|
136
|
+
const d1 = mod(l0, 146097);
|
|
137
137
|
const n100 = quotient(d1, 36524);
|
|
138
|
-
const d2 = mod
|
|
138
|
+
const d2 = mod(d1, 36524);
|
|
139
139
|
const n4 = quotient(d2, 1461);
|
|
140
|
-
const d3 = mod
|
|
140
|
+
const d3 = mod(d2, 1461);
|
|
141
141
|
const n1 = quotient(d3, 365);
|
|
142
142
|
const year = 400 * n400 + 100 * n100 + 4 * n4 + n1;
|
|
143
143
|
return n100 != 4 && n1 != 4 ? year + 1 : year;
|
|
@@ -169,6 +169,7 @@ const greg = {
|
|
|
169
169
|
throw new TypeError('Argument to greg.abs2greg not a Number');
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
theDate = Math.trunc(theDate);
|
|
172
173
|
const year = this.yearFromFixed(theDate);
|
|
173
174
|
const priorDays = theDate - this.toFixed(year, 1, 1);
|
|
174
175
|
const correction = theDate < this.toFixed(year, 3, 1) ? 0 : this.isLeapYear(year) ? 1 : 2;
|
|
@@ -265,7 +266,9 @@ function num2heb(num) {
|
|
|
265
266
|
}
|
|
266
267
|
}
|
|
267
268
|
/**
|
|
268
|
-
*
|
|
269
|
+
* Converts a numerical value to a string of Hebrew letters
|
|
270
|
+
* @example
|
|
271
|
+
* gematriya(5774) // תשע״ד - cropped to 774
|
|
269
272
|
* @param {number} number
|
|
270
273
|
* @return {string}
|
|
271
274
|
*/
|
|
@@ -434,10 +437,12 @@ const Locale = {
|
|
|
434
437
|
ordinal: function (n, locale) {
|
|
435
438
|
const locale0 = locale || this.activeName;
|
|
436
439
|
|
|
437
|
-
if (!locale0 || locale0 === 'en' || 'ashkenazi' === locale0.substring(0, 9)) {
|
|
440
|
+
if (!locale0 || locale0 === 'en' || locale0 === 's' || 'ashkenazi' === locale0.substring(0, 9)) {
|
|
438
441
|
return this.getEnOrdinal(n);
|
|
439
442
|
} else if (locale0 == 'es') {
|
|
440
443
|
return n + 'º';
|
|
444
|
+
} else if (locale0 == 'he') {
|
|
445
|
+
return String(n);
|
|
441
446
|
} else {
|
|
442
447
|
return n + '.';
|
|
443
448
|
}
|
|
@@ -561,7 +566,9 @@ function throwTypeError$2(msg) {
|
|
|
561
566
|
}
|
|
562
567
|
|
|
563
568
|
const edCache = Object.create(null);
|
|
564
|
-
const EPOCH = -1373428;
|
|
569
|
+
const EPOCH = -1373428; // Avg year length in the cycle (19 solar years with 235 lunar months)
|
|
570
|
+
|
|
571
|
+
const AVG_HEBYEAR_DAYS = 365.24682220597794;
|
|
565
572
|
const UNITS_DAY = 'day';
|
|
566
573
|
const UNITS_WEEK = 'week';
|
|
567
574
|
const UNITS_MONTH = 'month';
|
|
@@ -892,8 +899,9 @@ class HDate$1 {
|
|
|
892
899
|
throw new TypeError(`invalid parameter to abs2hebrew ${abs}`);
|
|
893
900
|
}
|
|
894
901
|
|
|
895
|
-
|
|
896
|
-
|
|
902
|
+
abs = Math.trunc(abs); // first, quickly approximate year
|
|
903
|
+
|
|
904
|
+
let year = Math.floor((abs - EPOCH) / AVG_HEBYEAR_DAYS);
|
|
897
905
|
|
|
898
906
|
while (HDate$1.newYear(year) <= abs) {
|
|
899
907
|
++year;
|
|
@@ -906,7 +914,7 @@ class HDate$1 {
|
|
|
906
914
|
++month;
|
|
907
915
|
}
|
|
908
916
|
|
|
909
|
-
const day =
|
|
917
|
+
const day = 1 + abs - HDate$1.hebrew2abs(year, month, 1);
|
|
910
918
|
return {
|
|
911
919
|
yy: year,
|
|
912
920
|
mm: month,
|
|
@@ -930,21 +938,21 @@ class HDate$1 {
|
|
|
930
938
|
*
|
|
931
939
|
* const hd = new HDate(15, months.CHESHVAN, 5769);
|
|
932
940
|
* console.log(hd.render()); // '15th of Cheshvan, 5769'
|
|
933
|
-
* console.log(hd.render('he')); // '15
|
|
941
|
+
* console.log(hd.render('he')); // '15 חֶשְׁוָן, 5769'
|
|
934
942
|
* @param {string} [locale] Optional locale name (defaults to active locale).
|
|
943
|
+
* @param {boolean} [showYear=true] Display year (defaults to true).
|
|
935
944
|
* @return {string}
|
|
936
945
|
*/
|
|
937
946
|
|
|
938
947
|
|
|
939
|
-
render(locale) {
|
|
948
|
+
render(locale = null, showYear = true) {
|
|
940
949
|
const locale0 = locale || Locale.getLocaleName();
|
|
941
950
|
const day = this.getDate();
|
|
942
|
-
const fullYear = this.getFullYear();
|
|
943
951
|
const monthName = Locale.gettext(this.getMonthName(), locale);
|
|
944
952
|
const nth = Locale.ordinal(day, locale0);
|
|
945
953
|
let dayOf = '';
|
|
946
954
|
|
|
947
|
-
if (locale0
|
|
955
|
+
if (locale0 === 'en' || locale0 === 's' || 'ashkenazi' == locale0.substring(0, 9)) {
|
|
948
956
|
dayOf = ' of';
|
|
949
957
|
} else {
|
|
950
958
|
const ofStr = Locale.lookupTranslation('of', locale0);
|
|
@@ -954,7 +962,14 @@ class HDate$1 {
|
|
|
954
962
|
}
|
|
955
963
|
}
|
|
956
964
|
|
|
957
|
-
|
|
965
|
+
const dateStr = `${nth}${dayOf} ${monthName}`;
|
|
966
|
+
|
|
967
|
+
if (showYear) {
|
|
968
|
+
const fullYear = this.getFullYear();
|
|
969
|
+
return `${dateStr}, ${fullYear}`;
|
|
970
|
+
} else {
|
|
971
|
+
return dateStr;
|
|
972
|
+
}
|
|
958
973
|
}
|
|
959
974
|
/**
|
|
960
975
|
* Renders this Hebrew date in Hebrew gematriya, regardless of locale.
|
|
@@ -1487,22 +1502,11 @@ class HDate$1 {
|
|
|
1487
1502
|
}
|
|
1488
1503
|
|
|
1489
1504
|
}
|
|
1490
|
-
/**
|
|
1491
|
-
* @private
|
|
1492
|
-
* @param {number} x
|
|
1493
|
-
* @param {number} y
|
|
1494
|
-
* @return {number}
|
|
1495
|
-
*/
|
|
1496
|
-
|
|
1497
|
-
function mod(x, y) {
|
|
1498
|
-
return x - y * Math.floor(x / y);
|
|
1499
|
-
}
|
|
1500
1505
|
/**
|
|
1501
1506
|
* @private
|
|
1502
1507
|
* @param {HDate} date
|
|
1503
1508
|
*/
|
|
1504
1509
|
|
|
1505
|
-
|
|
1506
1510
|
function fix(date) {
|
|
1507
1511
|
fixMonth(date);
|
|
1508
1512
|
fixDate(date);
|
|
@@ -1857,10 +1861,36 @@ class HebrewDateEvent extends Event {
|
|
|
1857
1861
|
render(locale) {
|
|
1858
1862
|
const locale0 = locale || Locale.getLocaleName();
|
|
1859
1863
|
const hd = this.getDate();
|
|
1860
|
-
return locale0
|
|
1864
|
+
return locale0 === 'he' ? hd.renderGematriya() : hd.render(locale0, true);
|
|
1865
|
+
}
|
|
1866
|
+
/**
|
|
1867
|
+
* @param {string} [locale] Optional locale name (defaults to active locale).
|
|
1868
|
+
* @example
|
|
1869
|
+
* import {HDate, HebrewDateEvent, months} from '@hebcal/core';
|
|
1870
|
+
*
|
|
1871
|
+
* const hd = new HDate(15, months.CHESHVAN, 5769);
|
|
1872
|
+
* const ev = new HebrewDateEvent(hd);
|
|
1873
|
+
* console.log(ev.renderBrief()); // '15th of Cheshvan'
|
|
1874
|
+
* console.log(ev.renderBrief('he')); // 'ט״ו חֶשְׁוָן'
|
|
1875
|
+
* @return {string}
|
|
1876
|
+
*/
|
|
1877
|
+
|
|
1878
|
+
|
|
1879
|
+
renderBrief(locale) {
|
|
1880
|
+
const locale0 = locale || Locale.getLocaleName();
|
|
1881
|
+
const hd = this.getDate();
|
|
1882
|
+
|
|
1883
|
+
if (locale !== 'he') {
|
|
1884
|
+
return hd.render(locale0, false);
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
const dd = hd.getDate();
|
|
1888
|
+
const mm = Locale.gettext(hd.getMonthName(), 'he');
|
|
1889
|
+
return gematriya(dd) + ' ' + mm;
|
|
1861
1890
|
}
|
|
1862
1891
|
/**
|
|
1863
1892
|
* Helper function to render a Hebrew date
|
|
1893
|
+
* @deprecated
|
|
1864
1894
|
* @param {number} day
|
|
1865
1895
|
* @param {string} monthName
|
|
1866
1896
|
* @param {number} fullYear
|
|
@@ -3148,7 +3178,8 @@ class Molad {
|
|
|
3148
3178
|
m_adj += HDate$1.monthsInYear(year);
|
|
3149
3179
|
}
|
|
3150
3180
|
|
|
3151
|
-
const m_elapsed = 235 * Math.floor((year - 1) / 19) +
|
|
3181
|
+
const m_elapsed = 235 * Math.floor((year - 1) / 19) + // Months in complete 19 year lunar (Metonic) cycles so far
|
|
3182
|
+
12 * ((year - 1) % 19) + // Regular months in this cycle
|
|
3152
3183
|
Math.floor((7 * ((year - 1) % 19) + 1) / 19) + // Leap months this cycle
|
|
3153
3184
|
m_adj; // add elapsed months till the start of the molad of the month
|
|
3154
3185
|
|
|
@@ -3286,7 +3317,7 @@ class OmerEvent extends Event {
|
|
|
3286
3317
|
const heWeek = Locale.gettext(week, 'he');
|
|
3287
3318
|
const heDayWithinWeek = Locale.gettext(dayWithinWeek, 'he');
|
|
3288
3319
|
const hePrefix = 'שֶׁבַּ';
|
|
3289
|
-
this.memo = `${dayWithinWeek} that is in ${week} / ${heDayWithinWeek} ${hePrefix}${heWeek}
|
|
3320
|
+
this.memo = `${dayWithinWeek} that is in ${week} / ${heDayWithinWeek} ${hePrefix}${heWeek}`.normalize();
|
|
3290
3321
|
}
|
|
3291
3322
|
/**
|
|
3292
3323
|
* @todo use gettext()
|
|
@@ -3570,6 +3601,7 @@ class Sedra {
|
|
|
3570
3601
|
*/
|
|
3571
3602
|
constructor(hebYr, il) {
|
|
3572
3603
|
// the Hebrew year
|
|
3604
|
+
hebYr = +hebYr;
|
|
3573
3605
|
const longC = HDate$1.longCheshvan(hebYr);
|
|
3574
3606
|
const shortK = HDate$1.shortKislev(hebYr);
|
|
3575
3607
|
const type = this.type = longC && !shortK ? COMPLETE : !longC && shortK ? INCOMPLETE : REGULAR;
|
|
@@ -3994,7 +4026,8 @@ class ParshaEvent extends Event {
|
|
|
3994
4026
|
name += hyphen + Locale.gettext(parsha[1], locale);
|
|
3995
4027
|
}
|
|
3996
4028
|
|
|
3997
|
-
|
|
4029
|
+
const str = Locale.gettext('Parashat', locale) + ' ' + name;
|
|
4030
|
+
return str.normalize();
|
|
3998
4031
|
}
|
|
3999
4032
|
/** @return {string} */
|
|
4000
4033
|
|
|
@@ -4567,14 +4600,14 @@ function getHolidaysForYear(year) {
|
|
|
4567
4600
|
return h;
|
|
4568
4601
|
}
|
|
4569
4602
|
|
|
4570
|
-
var version="3.26.
|
|
4603
|
+
var version="3.26.6";
|
|
4571
4604
|
|
|
4572
|
-
var headers$1={"plural-forms":"nplurals=2; plural=(n > 1);",language:"en_CA@ashkenazi"};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"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"]}};var poAshkenazi = {headers:headers$1,contexts:contexts$1};
|
|
4605
|
+
var headers$1={"plural-forms":"nplurals=2; plural=(n > 1);",language:"en_CA@ashkenazi"};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"]}};var poAshkenazi = {headers:headers$1,contexts:contexts$1};
|
|
4573
4606
|
|
|
4574
4607
|
Locale.addLocale('ashkenazi', poAshkenazi);
|
|
4575
4608
|
Locale.addLocale('a', poAshkenazi);
|
|
4576
4609
|
|
|
4577
|
-
var headers={"plural-forms":"nplurals=2; plural=(n > 1);",language:"he_IL"};var contexts={"":{Berachot:["ברכות"],Shabbat:["שַׁבָּת"],Eruvin:["עירובין"],Pesachim:["פסחים"],Shekalim:["שקלים"],Yoma:["יומא"],Sukkah:["סוכה"],Beitzah:["ביצה"],Taanit:["תענית"],Megillah:["מגילה"],"Moed Katan":["מועד קטן"],Chagigah:["חגיגה"],Yevamot:["יבמות"],Ketubot:["כתובות"],Nedarim:["נדרים"],Nazir:["נזיר"],Sotah:["סוטה"],Gitin:["גיטין"],Kiddushin:["קידושין"],"Baba Kamma":["בבא קמא"],"Baba Metzia":["בבא מציעא"],"Baba Batra":["בבא בתרא"],Sanhedrin:["סנהדרין"],Makkot:["מכות"],Shevuot:["שבועות"],"Avodah Zarah":["עבודה זרה"],Horayot:["הוריות"],Zevachim:["זבחים"],Menachot:["מנחות"],Chullin:["חולין"],Bechorot:["בכורות"],Arachin:["ערכין"],Temurah:["תמורה"],Keritot:["כריתות"],Meilah:["מעילה"],Kinnim:["קינים"],Tamid:["תמיד"],Midot:["מדות"],Niddah:["נדה"],"Daf Yomi: %s %d":["דף יומי: %s %d"],"Daf Yomi":["דף יומי"],Parashat:["
|
|
4610
|
+
var headers={"plural-forms":"nplurals=2; plural=(n > 1);",language:"he_IL"};var contexts={"":{Berachot:["ברכות"],Shabbat:["שַׁבָּת"],Eruvin:["עירובין"],Pesachim:["פסחים"],Shekalim:["שקלים"],Yoma:["יומא"],Sukkah:["סוכה"],Beitzah:["ביצה"],Taanit:["תענית"],Megillah:["מגילה"],"Moed Katan":["מועד קטן"],Chagigah:["חגיגה"],Yevamot:["יבמות"],Ketubot:["כתובות"],Nedarim:["נדרים"],Nazir:["נזיר"],Sotah:["סוטה"],Gitin:["גיטין"],Kiddushin:["קידושין"],"Baba Kamma":["בבא קמא"],"Baba Metzia":["בבא מציעא"],"Baba Batra":["בבא בתרא"],Sanhedrin:["סנהדרין"],Makkot:["מכות"],Shevuot:["שבועות"],"Avodah Zarah":["עבודה זרה"],Horayot:["הוריות"],Zevachim:["זבחים"],Menachot:["מנחות"],Chullin:["חולין"],Bechorot:["בכורות"],Arachin:["ערכין"],Temurah:["תמורה"],Keritot:["כריתות"],Meilah:["מעילה"],Kinnim:["קינים"],Tamid:["תמיד"],Midot:["מדות"],Niddah:["נדה"],"Daf Yomi: %s %d":["דף יומי: %s %d"],"Daf Yomi":["דף יומי"],Parashat:["פָּרָשַׁת"],"Achrei Mot":["אַחֲרֵי מוֹת"],Balak:["בָּלָק"],Bamidbar:["בְּמִדְבַּר"],Bechukotai:["בְּחֻקֹּתַי"],"Beha'alotcha":["בְּהַעֲלֹתְךָ"],Behar:["בְּהַר"],Bereshit:["בְּרֵאשִׁית"],Beshalach:["בְּשַׁלַּח"],Bo:["בֹּא"],"Chayei Sara":["חַיֵּי שָֹרָה"],Chukat:["חֻקַּת"],Devarim:["דְּבָרִים"],Eikev:["עֵקֶב"],Emor:["אֱמוֹר"],"Ha'Azinu":["הַאֲזִינוּ"],Kedoshim:["קְדשִׁים"],"Ki Tavo":["כִּי־תָבוֹא"],"Ki Teitzei":["כִּי־תֵצֵא"],"Ki Tisa":["כִּי תִשָּׂא"],Korach:["קוֹרַח"],"Lech-Lecha":["לֶךְ־לְךָ"],Masei:["מַסְעֵי"],Matot:["מַּטּוֹת"],Metzora:["מְּצֹרָע"],Miketz:["מִקֵּץ"],Mishpatim:["מִּשְׁפָּטִים"],Nasso:["נָשׂא"],Nitzavim:["נִצָּבִים"],Noach:["נֹחַ"],Pekudei:["פְקוּדֵי"],Pinchas:["פִּינְחָס"],"Re'eh":["רְאֵה"],"Sh'lach":["שְׁלַח־לְךָ"],Shemot:["שְׁמוֹת"],Shmini:["שְּׁמִינִי"],Shoftim:["שׁוֹפְטִים"],Tazria:["תַזְרִיעַ"],Terumah:["תְּרוּמָה"],Tetzaveh:["תְּצַוֶּה"],Toldot:["תּוֹלְדוֹת"],Tzav:["צַו"],Vaera:["וָאֵרָא"],Vaetchanan:["וָאֶתְחַנַּן"],Vayakhel:["וַיַּקְהֵל"],Vayechi:["וַיְחִי"],Vayeilech:["וַיֵּלֶךְ"],Vayera:["וַיֵּרָא"],Vayeshev:["וַיֵּשֶׁב"],Vayetzei:["וַיֵּצֵא"],Vayigash:["וַיִּגַּשׁ"],Vayikra:["וַיִּקְרָא"],Vayishlach:["וַיִּשְׁלַח"],"Vezot Haberakhah":["וְזֹאת הַבְּרָכָה"],Yitro:["יִתְרוֹ"],"Asara B'Tevet":["עֲשָׂרָה בְּטֵבֵת"],"Candle lighting":["הַדלָקָת נֵרוֹת"],Chanukah:["חֲנוּכָּה"],"Chanukah: 1 Candle":["חֲנוּכָּה: א׳ נֵר"],"Chanukah: 2 Candles":["חֲנוּכָּה: ב׳ נֵרוֹת"],"Chanukah: 3 Candles":["חֲנוּכָּה: ג׳ נֵרוֹת"],"Chanukah: 4 Candles":["חֲנוּכָּה: ד׳ נֵרוֹת"],"Chanukah: 5 Candles":["חֲנוּכָּה: ה׳ נֵרוֹת"],"Chanukah: 6 Candles":["חֲנוּכָּה: ו׳ נֵרוֹת"],"Chanukah: 7 Candles":["חֲנוּכָּה: ז׳ נֵרוֹת"],"Chanukah: 8 Candles":["חֲנוּכָּה: ח׳ נֵרוֹת"],"Chanukah: 8th Day":["חֲנוּכָּה: יוֹם ח׳"],"Days of the Omer":["עוֹמֶר"],Omer:["עוֹמֶר"],"day of the Omer":["בָּעוֹמֶר"],"Erev Pesach":["עֶרֶב פֶּסַח"],"Erev Purim":["עֶרֶב פּוּרִים"],"Erev Rosh Hashana":["עֶרֶב רֹאשׁ הַשָּׁנָה"],"Erev Shavuot":["עֶרֶב שָׁבוּעוֹת"],"Erev Simchat Torah":["עֶרֶב שִׂמְחַת תּוֹרָה"],"Erev Sukkot":["עֶרֶב סוּכּוֹת"],"Erev Tish'a B'Av":["עֶרֶב תִּשְׁעָה בְּאָב"],"Erev Yom Kippur":["עֶרֶב יוֹם כִּפּוּר"],Havdalah:["הַבדָלָה"],"Lag BaOmer":["ל״ג בָּעוֹמֶר"],"Leil Selichot":["סליחות"],Pesach:["פֶּסַח"],"Pesach I":["פֶּסַח א׳"],"Pesach II":["פֶּסַח ב׳"],"Pesach II (CH''M)":["פֶּסַח ב׳ (חוה״מ)"],"Pesach III (CH''M)":["פֶּסַח ג׳ (חוה״מ)"],"Pesach IV (CH''M)":["פֶּסַח ד׳ (חוה״מ)"],"Pesach Sheni":["פֶּסַח שני"],"Pesach V (CH''M)":["פֶּסַח ה׳ (חוה״מ)"],"Pesach VI (CH''M)":["פֶּסַח ו׳ (חוה״מ)"],"Pesach VII":["פֶּסַח ז׳"],"Pesach VIII":["פֶּסַח ח׳"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh %s":["רֹאשׁ חוֹדֶשׁ %s"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִשְׁרֵי"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Machar Chodesh":["שַׁבָּת מָחָר חוֹדֶשׁ"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"Shabbat Rosh Chodesh":["שַׁבָּת רֹאשׁ חוֹדֶשׁ"],"Shabbat Shekalim":["שַׁבָּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבָּת שׁוּבָה"],"Shabbat Zachor":["שַׁבָּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["סיגד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סוּכּוֹת"],"Sukkot I":["סוּכּוֹת א׳"],"Sukkot II":["סוּכּוֹת ב׳"],"Sukkot II (CH''M)":["סוּכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סוּכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סוּכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סוּכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סוּכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["טוּ בְּאָב"],"Tu BiShvat":["טוּ בִּשְׁבָט"],"Tu B'Shvat":["טוּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם תָּמוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם העלייה"],"Yom HaAliyah School Observance":["שמירת בית הספר ליום העלייה"],"Pesach I (on Shabbat)":["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"],"Pesach Chol ha-Moed Day 1":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"],"Pesach Chol ha-Moed Day 2":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Shavuot II (on Shabbat)":["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"],"Rosh Hashana I (on Shabbat)":["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"],"Yom Kippur (on Shabbat)":["יוֹם כִּפּוּר (בְּשַׁבָּת)"],"Yom Kippur (Mincha, Traditional)":["יוֹם כִּפּוּר מנחה"],"Yom Kippur (Mincha, Alternate)":["יוֹם כִּפּוּר מנחה"],"Sukkot I (on Shabbat)":["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"],"Sukkot Chol ha-Moed Day 1":["סוּכּוֹת יוֹם ג׳ (חוֹל הַמּוֹעֵד)"],"Sukkot Chol ha-Moed Day 2":["סוּכּוֹת יוֹם ד׳ (חוֹל הַמּוֹעֵד)"],"Sukkot Chol ha-Moed Day 3":["סוּכּוֹת יוֹם ה׳ (חוֹל הַמּוֹעֵד)"],"Sukkot Chol ha-Moed Day 4":["סוּכּוֹת יוֹם ו׳ (חוֹל הַמּוֹעֵד)"],"Sukkot Shabbat Chol ha-Moed":["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"],"Sukkot Final Day (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אַדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אַדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אַדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תָּמוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דקות"],"Fast begins":["תחילת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["תִּשְׁעָה בְּאָב נִדחֶה"],"Shabbat Mevarchim Chodesh":["שַׁבָּת מברכים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבָּת שִׁירָה"],chatzotNight:["חֲצוֹת הַלַיְלָה"],alotHaShachar:["עֲלוֹת הַשַּׁחַר"],misheyakir:["משיכיר - זמן ציצית ותפילין"],misheyakirMachmir:["משיכיר - זמן ציצית ותפילין"],neitzHaChama:["הַנֵץ הַחַמָּה"],sofZmanShma:["סוֹף זְמַן קְרִיאַת שְׁמַע גר״א"],sofZmanTfilla:["סוֹף זְמַן תְּפִלָּה גר״א"],chatzot:["חֲצוֹת הַיּוֹם"],minchaGedola:["מִנְחָה גְּדוֹלָה"],minchaKetana:["מִנְחָה קְטַנָּה"],plagHaMincha:["פְּלַג הַמִּנְחָה"],shkiah:["שְׁקִיעָה"],tzeit:["צֵאת כוכבים"],Lovingkindness:["חֶֽסֶד"],Might:["גְבוּרָה"],Beauty:["תִּפאֶרֶת"],Eternity:["נֶּֽצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"]}};var poHe = {headers:headers,contexts:contexts};
|
|
4578
4611
|
|
|
4579
4612
|
Locale.addLocale('he', poHe);
|
|
4580
4613
|
Locale.addLocale('h', poHe);
|
package/hebcal.d.ts
CHANGED
|
@@ -474,13 +474,13 @@ declare module '@hebcal/core' {
|
|
|
474
474
|
|
|
475
475
|
/**
|
|
476
476
|
* A simple Hebrew date
|
|
477
|
-
* @property yy - Hebrew year
|
|
478
|
-
* @property mm - Hebrew month of year (1=NISAN, 7=TISHREI)
|
|
479
|
-
* @property dd - Day of month (1-30)
|
|
480
477
|
*/
|
|
481
478
|
export type SimpleHebrewDate = {
|
|
479
|
+
/** Hebrew year */
|
|
482
480
|
yy: number;
|
|
481
|
+
/** Hebrew month of year (1=NISAN, 7=TISHREI) */
|
|
483
482
|
mm: number;
|
|
483
|
+
/** Day of month (1-30) */
|
|
484
484
|
dd: number;
|
|
485
485
|
};
|
|
486
486
|
|
|
@@ -493,65 +493,75 @@ declare module '@hebcal/core' {
|
|
|
493
493
|
export namespace HebrewCalendar {
|
|
494
494
|
/**
|
|
495
495
|
* Options to configure which events are returned
|
|
496
|
-
* @property location - latitude/longitude/tzid used for candle-lighting
|
|
497
|
-
* @property year - Gregorian or Hebrew year
|
|
498
|
-
* @property isHebrewYear - to interpret year as Hebrew year
|
|
499
|
-
* @property month - Gregorian or Hebrew month (to filter results to a single month)
|
|
500
|
-
* @property numYears - generate calendar for multiple years (default 1)
|
|
501
|
-
* @property start - use specific start date (requires end date)
|
|
502
|
-
* @property end - use specific end date (requires start date)
|
|
503
|
-
* @property candlelighting - calculate candle-lighting and havdalah times
|
|
504
|
-
* @property candleLightingMins - minutes before sundown to light candles (default 18)
|
|
505
|
-
* @property havdalahMins - minutes after sundown for Havdalah (typical values are 42, 50, or 72).
|
|
506
|
-
* If `undefined` (the default), calculate Havdalah according to Tzeit Hakochavim -
|
|
507
|
-
* Nightfall (the point when 3 small stars are observable in the night time sky with
|
|
508
|
-
* the naked eye). If `0`, Havdalah times are supressed.
|
|
509
|
-
* @property sedrot - calculate parashah hashavua on Saturdays
|
|
510
|
-
* @property il - Israeli holiday and sedra schedule
|
|
511
|
-
* @property noMinorFast - suppress minor fasts
|
|
512
|
-
* @property noModern - suppress modern holidays
|
|
513
|
-
* @property noRoshChodesh - suppress Rosh Chodesh & Shabbat Mevarchim
|
|
514
|
-
* @property noSpecialShabbat - suppress Special Shabbat
|
|
515
|
-
* @property noHolidays - suppress regular holidays
|
|
516
|
-
* @property dafyomi - include Daf Yomi
|
|
517
|
-
* @property omer - include Days of the Omer
|
|
518
|
-
* @property molad - include event announcing the molad
|
|
519
|
-
* @property ashkenazi - use Ashkenazi transliterations for event titles (default Sephardi transliterations)
|
|
520
|
-
* @property locale - translate event titles according to a locale
|
|
521
|
-
* Default value is `en`, also built-in are `he` and `ashkenazi`.
|
|
522
|
-
* Additional locales (such as `ru` or `fr`) are provided by the
|
|
523
|
-
* {@link https://github.com/hebcal/hebcal-locales @hebcal/locales} package
|
|
524
|
-
* @property addHebrewDates - print the Hebrew date for the entire date range
|
|
525
|
-
* @property addHebrewDatesForEvents - print the Hebrew date for dates with some events
|
|
526
|
-
* @property mask - use bitmask from `flags` to filter events
|
|
527
496
|
*/
|
|
528
497
|
export type Options = {
|
|
498
|
+
/** latitude/longitude/tzid used for candle-lighting */
|
|
529
499
|
location?: Location;
|
|
500
|
+
/** Gregorian or Hebrew year */
|
|
530
501
|
year?: number;
|
|
502
|
+
/** to interpret year as Hebrew year */
|
|
531
503
|
isHebrewYear?: boolean;
|
|
504
|
+
/** Gregorian or Hebrew month (to filter results to a single month) */
|
|
532
505
|
month?: number;
|
|
506
|
+
/** generate calendar for multiple years (default 1) */
|
|
533
507
|
numYears?: number;
|
|
508
|
+
/** use specific start date (requires end date) */
|
|
534
509
|
start?: Date | HDate | number;
|
|
510
|
+
/** use specific end date (requires start date) */
|
|
535
511
|
end?: Date | HDate | number;
|
|
512
|
+
/** calculate candle-lighting and havdalah times */
|
|
536
513
|
candlelighting?: boolean;
|
|
514
|
+
/** minutes before sundown to light candles (default 18) */
|
|
537
515
|
candleLightingMins?: number;
|
|
516
|
+
/**
|
|
517
|
+
* minutes after sundown for Havdalah (typical values are 42, 50, or 72).
|
|
518
|
+
* If `undefined` (the default), calculate Havdalah according to Tzeit Hakochavim -
|
|
519
|
+
* Nightfall (the point when 3 small stars are observable in the night time sky with
|
|
520
|
+
* the naked eye). If `0`, Havdalah times are supressed.
|
|
521
|
+
*/
|
|
538
522
|
havdalahMins?: number;
|
|
523
|
+
/**
|
|
524
|
+
* degrees for solar depression for Havdalah.
|
|
525
|
+
* Default is 8.5 degrees for 3 small stars.
|
|
526
|
+
* Use 7.083 degress for 3 medium-sized stars.
|
|
527
|
+
* Havdalah times are supressed when `havdalahDeg=0`.
|
|
528
|
+
*/
|
|
539
529
|
havdalahDeg?: number;
|
|
530
|
+
/** calculate parashah hashavua on Saturdays */
|
|
540
531
|
sedrot?: boolean;
|
|
532
|
+
/** Israeli holiday and sedra schedule */
|
|
541
533
|
il?: boolean;
|
|
534
|
+
/** suppress minor fasts */
|
|
542
535
|
noMinorFast?: boolean;
|
|
536
|
+
/** suppress modern holidays */
|
|
543
537
|
noModern?: boolean;
|
|
538
|
+
/** suppress Rosh Chodesh & Shabbat Mevarchim */
|
|
544
539
|
noRoshChodesh?: boolean;
|
|
545
540
|
shabbatMevarchim?: boolean;
|
|
541
|
+
/** suppress Special Shabbat */
|
|
546
542
|
noSpecialShabbat?: boolean;
|
|
543
|
+
/** suppress regular holidays */
|
|
547
544
|
noHolidays?: boolean;
|
|
545
|
+
/** include Daf Yomi */
|
|
548
546
|
dafyomi?: boolean;
|
|
547
|
+
/** include Days of the Omer */
|
|
549
548
|
omer?: boolean;
|
|
549
|
+
/** include event announcing the molad */
|
|
550
550
|
molad?: boolean;
|
|
551
|
+
/** use Ashkenazi transliterations for event titles (default Sephardi transliterations) */
|
|
551
552
|
ashkenazi?: boolean;
|
|
553
|
+
/**
|
|
554
|
+
* translate event titles according to a locale
|
|
555
|
+
* Default value is `en`, also built-in are `he` and `ashkenazi`.
|
|
556
|
+
* Additional locales (such as `ru` or `fr`) are provided by the
|
|
557
|
+
* {@link https://github.com/hebcal/hebcal-locales @hebcal/locales} package
|
|
558
|
+
*/
|
|
552
559
|
locale?: string;
|
|
560
|
+
/** print the Hebrew date for the entire date range */
|
|
553
561
|
addHebrewDates?: boolean;
|
|
562
|
+
/** print the Hebrew date for dates with some events */
|
|
554
563
|
addHebrewDatesForEvents?: boolean;
|
|
564
|
+
/** use bitmask from `flags` to filter events */
|
|
555
565
|
mask?: number;
|
|
556
566
|
};
|
|
557
567
|
|
|
@@ -769,6 +779,20 @@ declare module '@hebcal/core' {
|
|
|
769
779
|
*/
|
|
770
780
|
export const parshiot: string[];
|
|
771
781
|
|
|
782
|
+
/** The result from `Sedra.lookup()` */
|
|
783
|
+
export type SedraResult = {
|
|
784
|
+
/**
|
|
785
|
+
* Name of the parsha (or parshiyot) read on
|
|
786
|
+
* Hebrew date, e.g. `['Noach']` or `['Matot', 'Masei']`
|
|
787
|
+
*/
|
|
788
|
+
parsha: string[];
|
|
789
|
+
/**
|
|
790
|
+
* True if this is a regular parasha HaShavua
|
|
791
|
+
* Torah reading, false if it's a special holiday reading
|
|
792
|
+
*/
|
|
793
|
+
chag: boolean;
|
|
794
|
+
}
|
|
795
|
+
|
|
772
796
|
export class Sedra {
|
|
773
797
|
/**
|
|
774
798
|
* Caculates the Parashah HaShavua for an entire Hebrew year
|
|
@@ -791,7 +815,7 @@ declare module '@hebcal/core' {
|
|
|
791
815
|
* Returns an object describing the parsha on the first Saturday on or after absdate
|
|
792
816
|
* @param hDate Hebrew date or R.D. days
|
|
793
817
|
*/
|
|
794
|
-
lookup(hDate: HDate | number):
|
|
818
|
+
lookup(hDate: HDate | number): SedraResult;
|
|
795
819
|
/**
|
|
796
820
|
* Checks to see if this day would be a regular parasha HaShavua
|
|
797
821
|
* Torah reading or special holiday reading
|
|
@@ -884,4 +908,11 @@ declare module '@hebcal/core' {
|
|
|
884
908
|
constructor(date: HDate, hyear: number, mask: number);
|
|
885
909
|
render(locale?: string): string;
|
|
886
910
|
}
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* Converts a numerical value to a string of Hebrew letters
|
|
914
|
+
* @example
|
|
915
|
+
* gematriya(5774) // תשע״ד - cropped to 774
|
|
916
|
+
*/
|
|
917
|
+
export function gematriya(number: number): string;
|
|
887
918
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/core",
|
|
3
|
-
"version": "3.26.
|
|
3
|
+
"version": "3.26.6",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Eyal Schachter (https://github.com/Scimonster)",
|
|
@@ -70,22 +70,22 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@ava/babel": "^2.0.0",
|
|
73
|
-
"@babel/core": "^7.15.
|
|
74
|
-
"@babel/preset-env": "^7.15.
|
|
73
|
+
"@babel/core": "^7.15.8",
|
|
74
|
+
"@babel/preset-env": "^7.15.8",
|
|
75
75
|
"@babel/register": "^7.15.3",
|
|
76
76
|
"@hebcal/solar-calc": "^1.0.6",
|
|
77
77
|
"@rollup/plugin-babel": "^5.3.0",
|
|
78
|
-
"@rollup/plugin-commonjs": "^
|
|
78
|
+
"@rollup/plugin-commonjs": "^21.0.0",
|
|
79
79
|
"@rollup/plugin-json": "^4.1.0",
|
|
80
|
-
"@rollup/plugin-node-resolve": "^13.0.
|
|
80
|
+
"@rollup/plugin-node-resolve": "^13.0.5",
|
|
81
81
|
"ava": "^3.15.0",
|
|
82
|
-
"core-js": "^3.
|
|
83
|
-
"eslint": "^
|
|
82
|
+
"core-js": "^3.18.3",
|
|
83
|
+
"eslint": "^8.0.0",
|
|
84
84
|
"eslint-config-google": "^0.14.0",
|
|
85
85
|
"jsdoc": "^3.6.7",
|
|
86
|
-
"jsdoc-to-markdown": "^7.0
|
|
86
|
+
"jsdoc-to-markdown": "^7.1.0",
|
|
87
87
|
"nyc": "^15.1.0",
|
|
88
|
-
"rollup": "^2.
|
|
88
|
+
"rollup": "^2.58.0",
|
|
89
89
|
"rollup-plugin-terser": "^7.0.2",
|
|
90
90
|
"tsd-jsdoc": "^2.5.0",
|
|
91
91
|
"ttag-cli": "^1.9.3"
|