@hebcal/rest-api 6.0.0 → 6.0.1

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.mjs CHANGED
@@ -1,284 +1,19 @@
1
- /*! @hebcal/rest-api v6.0.0 */
2
- import { parshiot, HDate, flags, HebrewCalendar, version, Zmanim, Locale, gematriya } from '@hebcal/core';
3
- import { isoDateString } from '@hebcal/hdate';
1
+ /*! @hebcal/rest-api v6.0.1 */
2
+ import { flags } from '@hebcal/core/dist/esm/event';
3
+ import { reformatTimeStr } from '@hebcal/core/dist/esm/reformatTimeStr';
4
+ import { HDate, isoDateString, gematriya } from '@hebcal/hdate';
4
5
  export { pad2, pad4 } from '@hebcal/hdate';
5
6
  import { getLeyningForParshaHaShavua } from '@hebcal/leyning/dist/esm/leyning';
6
7
  import { getLeyningForHoliday } from '@hebcal/leyning/dist/esm/getLeyningForHoliday';
8
+ import { parshiot } from '@hebcal/core/dist/esm/sedra';
9
+ import { Zmanim } from '@hebcal/core/dist/esm/zmanim';
10
+ import { version } from '@hebcal/core/dist/esm/pkgVersion';
11
+ import { Locale } from '@hebcal/core/dist/esm/locale';
7
12
  import { formatAliyahWithBook } from '@hebcal/leyning/dist/esm/common';
8
- import { getTriennialForParshaHaShavua } from '@hebcal/triennial';
9
13
 
10
- var countryNames0 = {
11
- "AD": "Andorra",
12
- "AE": "United Arab Emirates",
13
- "AF": "Afghanistan",
14
- "AI": "Anguilla",
15
- "AL": "Albania",
16
- "AM": "Armenia",
17
- "AO": "Angola",
18
- "AR": "Argentina",
19
- "AS": "American Samoa",
20
- "AT": "Austria",
21
- "AU": "Australia",
22
- "AW": "Aruba",
23
- "AZ": "Azerbaijan",
24
- "BA": "Bosnia and Herzegovina",
25
- "BB": "Barbados",
26
- "BD": "Bangladesh",
27
- "BE": "Belgium",
28
- "BF": "Burkina Faso",
29
- "BG": "Bulgaria",
30
- "BH": "Bahrain",
31
- "BI": "Burundi",
32
- "BJ": "Benin",
33
- "BM": "Bermuda",
34
- "BN": "Brunei",
35
- "BO": "Bolivia",
36
- "BR": "Brazil",
37
- "BS": "Bahamas",
38
- "BT": "Bhutan",
39
- "BW": "Botswana",
40
- "BY": "Belarus",
41
- "BZ": "Belize",
42
- "CA": "Canada",
43
- "CD": "Democratic Republic of the Congo",
44
- "CF": "Central African Republic",
45
- "CG": "Republic of the Congo",
46
- "CH": "Switzerland",
47
- "CI": "Ivory Coast",
48
- "CK": "Cook Islands",
49
- "CL": "Chile",
50
- "CM": "Cameroon",
51
- "CN": "China",
52
- "CO": "Colombia",
53
- "CR": "Costa Rica",
54
- "CU": "Cuba",
55
- "CV": "Cape Verde",
56
- "CW": "Curacao",
57
- "CY": "Cyprus",
58
- "CZ": "Czech Republic",
59
- "DE": "Germany",
60
- "DK": "Denmark",
61
- "DM": "Dominica",
62
- "DO": "Dominican Republic",
63
- "DZ": "Algeria",
64
- "EC": "Ecuador",
65
- "EE": "Estonia",
66
- "EG": "Egypt",
67
- "ER": "Eritrea",
68
- "ES": "Spain",
69
- "ET": "Ethiopia",
70
- "FI": "Finland",
71
- "FJ": "Fiji",
72
- "FK": "Falkland Islands",
73
- "FO": "Faroe Islands",
74
- "FR": "France",
75
- "GA": "Gabon",
76
- "GB": "United Kingdom",
77
- "GE": "Georgia",
78
- "GH": "Ghana",
79
- "GI": "Gibraltar",
80
- "GL": "Greenland",
81
- "GM": "Gambia",
82
- "GN": "Guinea",
83
- "GQ": "Equatorial Guinea",
84
- "GR": "Greece",
85
- "GT": "Guatemala",
86
- "GW": "Guinea-Bissau",
87
- "GY": "Guyana",
88
- "HK": "Hong Kong",
89
- "HN": "Honduras",
90
- "HR": "Croatia",
91
- "HT": "Haiti",
92
- "HU": "Hungary",
93
- "ID": "Indonesia",
94
- "IE": "Ireland",
95
- "IL": "Israel",
96
- "IM": "Isle of Man",
97
- "IN": "India",
98
- "IQ": "Iraq",
99
- "IR": "Iran",
100
- "IS": "Iceland",
101
- "IT": "Italy",
102
- "JM": "Jamaica",
103
- "JO": "Jordan",
104
- "JP": "Japan",
105
- "KE": "Kenya",
106
- "KG": "Kyrgyzstan",
107
- "KH": "Cambodia",
108
- "KM": "Comoros",
109
- "KN": "Saint Kitts and Nevis",
110
- "KP": "North Korea",
111
- "KR": "South Korea",
112
- "KW": "Kuwait",
113
- "KY": "Cayman Islands",
114
- "KZ": "Kazakhstan",
115
- "LA": "Laos",
116
- "LB": "Lebanon",
117
- "LC": "Saint Lucia",
118
- "LI": "Liechtenstein",
119
- "LR": "Liberia",
120
- "LS": "Lesotho",
121
- "LT": "Lithuania",
122
- "LU": "Luxembourg",
123
- "LV": "Latvia",
124
- "LY": "Libya",
125
- "MA": "Morocco",
126
- "MD": "Moldova",
127
- "ME": "Montenegro",
128
- "MG": "Madagascar",
129
- "MK": "Macedonia",
130
- "ML": "Mali",
131
- "MM": "Myanmar",
132
- "MN": "Mongolia",
133
- "MP": "Northern Mariana Islands",
134
- "MR": "Mauritania",
135
- "MS": "Montserrat",
136
- "MT": "Malta",
137
- "MU": "Mauritius",
138
- "MW": "Malawi",
139
- "MX": "Mexico",
140
- "MY": "Malaysia",
141
- "MZ": "Mozambique",
142
- "NA": "Namibia",
143
- "NC": "New Caledonia",
144
- "NE": "Niger",
145
- "NG": "Nigeria",
146
- "NI": "Nicaragua",
147
- "NL": "Netherlands",
148
- "NO": "Norway",
149
- "NP": "Nepal",
150
- "NU": "Niue",
151
- "NZ": "New Zealand",
152
- "OM": "Oman",
153
- "PA": "Panama",
154
- "PE": "Peru",
155
- "PF": "French Polynesia",
156
- "PG": "Papua New Guinea",
157
- "PH": "Philippines",
158
- "PK": "Pakistan",
159
- "PL": "Poland",
160
- "PR": "Puerto Rico",
161
- "PT": "Portugal",
162
- "PY": "Paraguay",
163
- "QA": "Qatar",
164
- "RO": "Romania",
165
- "RS": "Serbia",
166
- "RU": "Russia",
167
- "RW": "Rwanda",
168
- "SA": "Saudi Arabia",
169
- "SB": "Solomon Islands",
170
- "SC": "Seychelles",
171
- "SD": "Sudan",
172
- "SE": "Sweden",
173
- "SG": "Singapore",
174
- "SH": "Saint Helena",
175
- "SI": "Slovenia",
176
- "SK": "Slovakia",
177
- "SL": "Sierra Leone",
178
- "SN": "Senegal",
179
- "SO": "Somalia",
180
- "SR": "Suriname",
181
- "ST": "Sao Tome and Principe",
182
- "SV": "El Salvador",
183
- "SY": "Syria",
184
- "SZ": "Swaziland",
185
- "TC": "Turks and Caicos Islands",
186
- "TD": "Chad",
187
- "TG": "Togo",
188
- "TH": "Thailand",
189
- "TJ": "Tajikistan",
190
- "TM": "Turkmenistan",
191
- "TN": "Tunisia",
192
- "TR": "Turkey",
193
- "TV": "Tuvalu",
194
- "TW": "Taiwan",
195
- "TZ": "Tanzania",
196
- "UA": "Ukraine",
197
- "UG": "Uganda",
198
- "US": "United States",
199
- "UY": "Uruguay",
200
- "UZ": "Uzbekistan",
201
- "VC": "Saint Vincent and the Grenadines",
202
- "VE": "Venezuela",
203
- "VG": "British Virgin Islands",
204
- "VN": "Vietnam",
205
- "WS": "Samoa",
206
- "YE": "Yemen",
207
- "YT": "Mayotte",
208
- "ZA": "South Africa",
209
- "ZM": "Zambia",
210
- "ZW": "Zimbabwe"
211
- };
14
+ const AD="Andorra";const AE="United Arab Emirates";const AF="Afghanistan";const AI="Anguilla";const AL="Albania";const AM="Armenia";const AO="Angola";const AR="Argentina";const AS="American Samoa";const AT="Austria";const AU="Australia";const AW="Aruba";const AZ="Azerbaijan";const BA="Bosnia and Herzegovina";const BB="Barbados";const BD="Bangladesh";const BE="Belgium";const BF="Burkina Faso";const BG="Bulgaria";const BH="Bahrain";const BI="Burundi";const BJ="Benin";const BM="Bermuda";const BN="Brunei";const BO="Bolivia";const BR="Brazil";const BS="Bahamas";const BT="Bhutan";const BW="Botswana";const BY="Belarus";const BZ="Belize";const CA="Canada";const CD="Democratic Republic of the Congo";const CF="Central African Republic";const CG="Republic of the Congo";const CH="Switzerland";const CI="Ivory Coast";const CK="Cook Islands";const CL="Chile";const CM="Cameroon";const CN="China";const CO="Colombia";const CR="Costa Rica";const CU="Cuba";const CV="Cape Verde";const CW="Curacao";const CY="Cyprus";const CZ="Czech Republic";const DE="Germany";const DK="Denmark";const DM="Dominica";const DO="Dominican Republic";const DZ="Algeria";const EC="Ecuador";const EE="Estonia";const EG="Egypt";const ER="Eritrea";const ES="Spain";const ET="Ethiopia";const FI="Finland";const FJ="Fiji";const FK="Falkland Islands";const FO="Faroe Islands";const FR="France";const GA="Gabon";const GB="United Kingdom";const GE="Georgia";const GH="Ghana";const GI="Gibraltar";const GL="Greenland";const GM="Gambia";const GN="Guinea";const GQ="Equatorial Guinea";const GR="Greece";const GT="Guatemala";const GW="Guinea-Bissau";const GY="Guyana";const HK="Hong Kong";const HN="Honduras";const HR="Croatia";const HT="Haiti";const HU="Hungary";const ID="Indonesia";const IE="Ireland";const IL="Israel";const IM="Isle of Man";const IN="India";const IQ="Iraq";const IR="Iran";const IS="Iceland";const IT="Italy";const JM="Jamaica";const JO="Jordan";const JP="Japan";const KE="Kenya";const KG="Kyrgyzstan";const KH="Cambodia";const KM="Comoros";const KN="Saint Kitts and Nevis";const KP="North Korea";const KR="South Korea";const KW="Kuwait";const KY="Cayman Islands";const KZ="Kazakhstan";const LA="Laos";const LB="Lebanon";const LC="Saint Lucia";const LI="Liechtenstein";const LR="Liberia";const LS="Lesotho";const LT="Lithuania";const LU="Luxembourg";const LV="Latvia";const LY="Libya";const MA="Morocco";const MD="Moldova";const ME="Montenegro";const MG="Madagascar";const MK="Macedonia";const ML="Mali";const MM="Myanmar";const MN="Mongolia";const MP="Northern Mariana Islands";const MR="Mauritania";const MS="Montserrat";const MT="Malta";const MU="Mauritius";const MW="Malawi";const MX="Mexico";const MY="Malaysia";const MZ="Mozambique";const NA="Namibia";const NC="New Caledonia";const NE="Niger";const NG="Nigeria";const NI="Nicaragua";const NL="Netherlands";const NO="Norway";const NP="Nepal";const NU="Niue";const NZ="New Zealand";const OM="Oman";const PA="Panama";const PE="Peru";const PF="French Polynesia";const PG="Papua New Guinea";const PH="Philippines";const PK="Pakistan";const PL="Poland";const PR="Puerto Rico";const PT="Portugal";const PY="Paraguay";const QA="Qatar";const RO="Romania";const RS="Serbia";const RU="Russia";const RW="Rwanda";const SA="Saudi Arabia";const SB="Solomon Islands";const SC="Seychelles";const SD="Sudan";const SE="Sweden";const SG="Singapore";const SH="Saint Helena";const SI="Slovenia";const SK="Slovakia";const SL="Sierra Leone";const SN="Senegal";const SO="Somalia";const SR="Suriname";const ST="Sao Tome and Principe";const SV="El Salvador";const SY="Syria";const SZ="Swaziland";const TC="Turks and Caicos Islands";const TD="Chad";const TG="Togo";const TH="Thailand";const TJ="Tajikistan";const TM="Turkmenistan";const TN="Tunisia";const TR="Turkey";const TV="Tuvalu";const TW="Taiwan";const TZ="Tanzania";const UA="Ukraine";const UG="Uganda";const US="United States";const UY="Uruguay";const UZ="Uzbekistan";const VC="Saint Vincent and the Grenadines";const VE="Venezuela";const VG="British Virgin Islands";const VN="Vietnam";const WS="Samoa";const YE="Yemen";const YT="Mayotte";const ZA="South Africa";const ZM="Zambia";const ZW="Zimbabwe";var countryNames0 = {AD:AD,AE:AE,AF:AF,AI:AI,AL:AL,AM:AM,AO:AO,AR:AR,AS:AS,AT:AT,AU:AU,AW:AW,AZ:AZ,BA:BA,BB:BB,BD:BD,BE:BE,BF:BF,BG:BG,BH:BH,BI:BI,BJ:BJ,BM:BM,BN:BN,BO:BO,BR:BR,BS:BS,BT:BT,BW:BW,BY:BY,BZ:BZ,CA:CA,CD:CD,CF:CF,CG:CG,CH:CH,CI:CI,CK:CK,CL:CL,CM:CM,CN:CN,CO:CO,CR:CR,CU:CU,CV:CV,CW:CW,CY:CY,CZ:CZ,DE:DE,DK:DK,DM:DM,DO:DO,DZ:DZ,EC:EC,EE:EE,EG:EG,ER:ER,ES:ES,ET:ET,FI:FI,FJ:FJ,FK:FK,FO:FO,FR:FR,GA:GA,GB:GB,GE:GE,GH:GH,GI:GI,GL:GL,GM:GM,GN:GN,GQ:GQ,GR:GR,GT:GT,GW:GW,GY:GY,HK:HK,HN:HN,HR:HR,HT:HT,HU:HU,ID:ID,IE:IE,IL:IL,IM:IM,IN:IN,IQ:IQ,IR:IR,IS:IS,IT:IT,JM:JM,JO:JO,JP:JP,KE:KE,KG:KG,KH:KH,KM:KM,KN:KN,KP:KP,KR:KR,KW:KW,KY:KY,KZ:KZ,LA:LA,LB:LB,LC:LC,LI:LI,LR:LR,LS:LS,LT:LT,LU:LU,LV:LV,LY:LY,MA:MA,MD:MD,ME:ME,MG:MG,MK:MK,ML:ML,MM:MM,MN:MN,MP:MP,MR:MR,MS:MS,MT:MT,MU:MU,MW:MW,MX:MX,MY:MY,MZ:MZ,NA:NA,NC:NC,NE:NE,NG:NG,NI:NI,NL:NL,NO:NO,NP:NP,NU:NU,NZ:NZ,OM:OM,PA:PA,PE:PE,PF:PF,PG:PG,PH:PH,PK:PK,PL:PL,PR:PR,PT:PT,PY:PY,QA:QA,RO:RO,RS:RS,RU:RU,RW:RW,SA:SA,SB:SB,SC:SC,SD:SD,SE:SE,SG:SG,SH:SH,SI:SI,SK:SK,SL:SL,SN:SN,SO:SO,SR:SR,ST:ST,SV:SV,SY:SY,SZ:SZ,TC:TC,TD:TD,TG:TG,TH:TH,TJ:TJ,TM:TM,TN:TN,TR:TR,TV:TV,TW:TW,TZ:TZ,UA:UA,UG:UG,US:US,UY:UY,UZ:UZ,VC:VC,VE:VE,VG:VG,VN:VN,WS:WS,YE:YE,YT:YT,ZA:ZA,ZM:ZM,ZW:ZW};
212
15
 
213
- var holidayDescription0 = {
214
- "Asara B'Tevet": "Fast commemorating the siege of Jerusalem",
215
- "Ben-Gurion Day": "Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion",
216
- "Birkat Hachamah": "A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun",
217
- "Chag HaBanot": "North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",
218
- "Chanukah": "Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)",
219
- "Days of the Omer": "7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays",
220
- "Family Day": "Yom HaMishpacha, a day to honor the family unit",
221
- "Hebrew Language Day": "Promotes the Hebrew language in Israel and around the world. Occurs on the birthday of Eliezer Ben Yehuda, the father of modern spoken Hebrew",
222
- "Herzl Day": "Commemorates the life and vision of Zionist leader Theodor Herzl",
223
- "Jabotinsky Day": "Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky",
224
- "Lag BaOmer": "33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings",
225
- "Leil Selichot": "Prayers for forgiveness in preparation for the High Holidays",
226
- "Pesach Sheni": "Second Passover, one month after Passover",
227
- "Pesach": "Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt",
228
- "Purim Katan": "Minor Purim celebration during Adar I on leap years",
229
- "Purim": "Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination",
230
- "Purim Meshulash": "Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat",
231
- "Rosh Chodesh Nisan": "Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
232
- "Rosh Chodesh Iyyar": "Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
233
- "Rosh Chodesh Sivan": "Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
234
- "Rosh Chodesh Tamuz": "Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
235
- "Rosh Chodesh Av": "Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
236
- "Rosh Chodesh Elul": "Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
237
- "Rosh Chodesh Cheshvan": "Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
238
- "Rosh Chodesh Kislev": "Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
239
- "Rosh Chodesh Tevet": "Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
240
- "Rosh Chodesh Sh'vat": "Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
241
- "Rosh Chodesh Adar": "Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
242
- "Rosh Chodesh Adar I": "Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
243
- "Rosh Chodesh Adar II": "Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes \"Adar Bet\" or \"Adar Sheni\", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon",
244
- "Rosh Hashana": "The Jewish New Year. Also spelled Rosh Hashanah",
245
- "Rosh Hashana LaBehemot": "New Year for Tithing Animals",
246
- "Shabbat Chazon": "Shabbat of Prophecy/Shabbat of Vision. Shabbat before Tish'a B'Av",
247
- "Shabbat HaChodesh": "Shabbat before Rosh Chodesh Nissan. Read in preparation for Passover",
248
- "Shabbat HaGadol": "Shabbat before Pesach (The Great Shabbat)",
249
- "Shabbat Machar Chodesh": "When Shabbat falls the day before Rosh Chodesh",
250
- "Shabbat Mevarchim Chodesh": "Shabbat that precedes Rosh Chodesh. The congregation blesses the forthcoming new month",
251
- "Shabbat Nachamu": "Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")",
252
- "Shabbat Parah": "Shabbat of the Red Heifer. Shabbat before Shabbat HaChodesh, in preparation for Passover",
253
- "Shabbat Rosh Chodesh": "When Shabbat falls on Rosh Chodesh",
254
- "Shabbat Shekalim": "Shabbat before Rosh Chodesh Adar. Read in preparation for Purim",
255
- "Shabbat Shirah": "Shabbat of Song. Shabbat that includes Parashat Beshalach",
256
- "Shabbat Shuva": "Shabbat of Returning. Shabbat that occurs during the Ten Days of Repentance between Rosh Hashanah and Yom Kippur",
257
- "Shabbat Zachor": "Shabbat of Remembrance. Shabbat before Purim",
258
- "Shavuot": "Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai",
259
- "Shmini Atzeret": "Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel",
260
- "Shushan Purim": "Purim celebrated in Jerusalem and walled cities",
261
- "Shushan Purim Katan": "Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",
262
- "Sigd": "Ethiopian Jewish holiday occurring 50 days after Yom Kippur",
263
- "Simchat Torah": "Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",
264
- "Sukkot": "Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)",
265
- "Ta'anit Bechorot": "Fast of the First Born",
266
- "Ta'anit Esther": "Fast of Esther",
267
- "Tish'a B'Av": "The Ninth of Av. Fast commemorating the destruction of the two Temples",
268
- "Tu B'Av": "Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av",
269
- "Tu BiShvat": "New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah",
270
- "Tzom Gedaliah": "Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah",
271
- "Tzom Tammuz": "Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple",
272
- "Yitzhak Rabin Memorial Day": "Commemorates the life of Israeli Prime Minister Yitzhak Rabin",
273
- "Yom HaAliyah": "Recognizes Aliyah, immigration to the Jewish State of Israel",
274
- "Yom HaAliyah School Observance": "Aliyah Day observed in Israeli schools",
275
- "Yom HaAtzma'ut": "Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat",
276
- "Yom HaShoah": "Holocaust Memorial Day",
277
- "Yom HaZikaron": "Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat",
278
- "Yom Kippur": "Day of Atonement. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer",
279
- "Yom Kippur Katan": "Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh",
280
- "Yom Yerushalayim": "Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"
281
- };
16
+ const Chanukah="Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)";const Pesach="Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt";const Purim="Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination";const Shavuot="Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai";const Sigd="Ethiopian Jewish holiday occurring 50 days after Yom Kippur";const Sukkot="Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)";var holidayDescription0 = {"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion","Birkat Hachamah":"A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun","Chag HaBanot":"North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",Chanukah:Chanukah,"Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays","Family Day":"Yom HaMishpacha, a day to honor the family unit","Hebrew Language Day":"Promotes the Hebrew language in Israel and around the world. Occurs on the birthday of Eliezer Ben Yehuda, the father of modern spoken Hebrew","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky","Lag BaOmer":"33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:Pesach,"Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:Purim,"Purim Meshulash":"Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":"Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes \"Adar Bet\" or \"Adar Sheni\", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","Shabbat Chazon":"Shabbat of Prophecy/Shabbat of Vision. Shabbat before Tish'a B'Av","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan. Read in preparation for Passover","Shabbat HaGadol":"Shabbat before Pesach (The Great Shabbat)","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Mevarchim Chodesh":"Shabbat that precedes Rosh Chodesh. The congregation blesses the forthcoming new month","Shabbat Nachamu":"Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")","Shabbat Parah":"Shabbat of the Red Heifer. Shabbat before Shabbat HaChodesh, in preparation for Passover","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar. Read in preparation for Purim","Shabbat Shirah":"Shabbat of Song. Shabbat that includes Parashat Beshalach","Shabbat Shuva":"Shabbat of Returning. Shabbat that occurs during the Ten Days of Repentance between Rosh Hashanah and Yom Kippur","Shabbat Zachor":"Shabbat of Remembrance. Shabbat before Purim",Shavuot:Shavuot,"Shmini Atzeret":"Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel","Shushan Purim":"Purim celebrated in Jerusalem and walled cities","Shushan Purim Katan":"Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",Sigd:Sigd,"Simchat Torah":"Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",Sukkot:Sukkot,"Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};
282
17
 
283
18
  /**
284
19
  * Helper function to transform a string to make it more usable in a URL or filename.
@@ -703,7 +438,7 @@ function eventToCsv(ev, options) {
703
438
  ? ev.renderBrief(options.locale)
704
439
  : ev.render(options.locale);
705
440
  if (timed) {
706
- const timeStr = HebrewCalendar.reformatTimeStr(timedEv.eventTimeStr, ' PM', options);
441
+ const timeStr = reformatTimeStr(timedEv.eventTimeStr, ' PM', options);
707
442
  endTime = startTime = `"${timeStr}"`;
708
443
  endDate = date;
709
444
  allDay = '"false"';
@@ -752,6 +487,11 @@ function eventIsoDate(ev) {
752
487
  * Formats a list events for the classic Hebcal.com JSON API response
753
488
  */
754
489
  function eventsToClassicApi(events, options, leyning = true) {
490
+ const result = eventsToClassicApiHeader(events, options);
491
+ result.items = events.map(ev => eventToClassicApiObject(ev, options, leyning));
492
+ return result;
493
+ }
494
+ function eventsToClassicApiHeader(events, options) {
755
495
  const result = {
756
496
  title: getCalendarTitle(events, options),
757
497
  date: new Date().toISOString(),
@@ -764,7 +504,6 @@ function eventsToClassicApi(events, options, leyning = true) {
764
504
  end: eventIsoDate(events[events.length - 1]),
765
505
  };
766
506
  }
767
- result.items = events.map(ev => eventToClassicApiObject(ev, options, leyning));
768
507
  return result;
769
508
  }
770
509
  /**
@@ -788,7 +527,7 @@ function eventToClassicApiObject(ev, options, leyning = true) {
788
527
  const desc = ev.getDesc();
789
528
  const candles = desc === 'Havdalah' || desc === 'Candle lighting';
790
529
  if (candles) {
791
- const time = HebrewCalendar.reformatTimeStr(timedEv.eventTimeStr, 'pm', options);
530
+ const time = reformatTimeStr(timedEv.eventTimeStr, 'pm', options);
792
531
  title += ': ' + time;
793
532
  }
794
533
  const result = {
@@ -821,13 +560,6 @@ function eventToClassicApiObject(ev, options, leyning = true) {
821
560
  : getLeyningForHoliday(ev, il);
822
561
  if (reading) {
823
562
  result.leyning = formatLeyningResult(reading);
824
- const hyear = hd.getFullYear();
825
- if (isParsha && hyear >= 5745) {
826
- const triReading = getTriennialForParshaHaShavua(ev, il);
827
- if (triReading === null || triReading === void 0 ? void 0 : triReading.aliyot) {
828
- result.leyning.triennial = formatAliyot({}, triReading.aliyot);
829
- }
830
- }
831
563
  }
832
564
  }
833
565
  const url = ev.url();
@@ -1030,7 +762,7 @@ function eventToRssItem2(ev, options) {
1030
762
  const colon = subj.indexOf(': ');
1031
763
  if (colon !== -1) {
1032
764
  const options = { location, il, locale: Locale.getLocaleName() };
1033
- const time = HebrewCalendar.reformatTimeStr(ev.eventTimeStr, 'pm', options);
765
+ const time = reformatTimeStr(ev.eventTimeStr, 'pm', options);
1034
766
  subj = subj.substring(0, colon) + ': ' + time;
1035
767
  }
1036
768
  }
@@ -1098,4 +830,4 @@ function eventToFullCalendar(ev, tzid, il) {
1098
830
  return result;
1099
831
  }
1100
832
 
1101
- export { appendIsraelAndTracking, countryNames, eventToClassicApiObject, eventToCsv, eventToFullCalendar, eventToRssItem2, eventsToClassicApi, eventsToCsv, eventsToRss2, getCalendarTitle, getDownloadFilename, getEventCategories, getHolidayDescription, holidayDescription, locationToPlainObj, makeAnchor, makeMemo, makeTorahMemoText, renderTitleWithoutTime, shouldRenderBrief, toISOString };
833
+ export { appendIsraelAndTracking, countryNames, eventToClassicApiObject, eventToCsv, eventToFullCalendar, eventToRssItem2, eventsToClassicApi, eventsToClassicApiHeader, eventsToCsv, eventsToRss2, getCalendarTitle, getDownloadFilename, getEventCategories, getHolidayDescription, holidayDescription, locationToPlainObj, makeAnchor, makeMemo, makeTorahMemoText, renderTitleWithoutTime, shouldRenderBrief, toISOString };
@@ -1,9 +1,10 @@
1
- import { Event } from '@hebcal/core';
1
+ import { Event } from '@hebcal/core/dist/esm/event';
2
2
  import { RestApiOptions } from './common';
3
3
  /**
4
4
  * Formats a list events for the classic Hebcal.com JSON API response
5
5
  */
6
6
  export declare function eventsToClassicApi(events: Event[], options: RestApiOptions, leyning?: boolean): any;
7
+ export declare function eventsToClassicApiHeader(events: Event[], options: RestApiOptions): any;
7
8
  /**
8
9
  * Converts a Hebcal event to a classic Hebcal.com JSON API object
9
10
  */
@@ -1,4 +1,6 @@
1
- import { CalOptions, Event, Location } from '@hebcal/core';
1
+ import { Event } from '@hebcal/core/dist/esm/event';
2
+ import { CalOptions } from '@hebcal/core/dist/esm/CalOptions';
3
+ import { Location } from '@hebcal/core/dist/esm/location';
2
4
  export interface StringMap {
3
5
  [key: string]: string;
4
6
  }
@@ -1,4 +1,4 @@
1
- import { Event } from '@hebcal/core';
1
+ import { Event } from '@hebcal/core/dist/esm/event';
2
2
  import { RestApiOptions } from './common';
3
3
  /**
4
4
  * Renders an Event as a string
@@ -1,4 +1,4 @@
1
- import { Event } from '@hebcal/core';
1
+ import { Event } from '@hebcal/core/dist/esm/event';
2
2
  /**
3
3
  * Converts a Hebcal event to a FullCalendar.io object
4
4
  */
@@ -1,4 +1,4 @@
1
- import { Event } from '@hebcal/core';
1
+ import { Event } from '@hebcal/core/dist/esm/event';
2
2
  import { RestApiOptions } from './common';
3
3
  export declare function eventsToRss2(events: Event[], options: RestApiOptions): string;
4
4
  export declare function eventToRssItem2(ev: Event, options: RestApiOptions): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/rest-api",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "keywords": [
6
6
  "hebcal"
@@ -9,13 +9,15 @@
9
9
  "engines": {
10
10
  "node": ">= 18.0.0"
11
11
  },
12
- "module": "dist/index.mjs",
12
+ "module": "./dist/index.mjs",
13
13
  "type": "module",
14
+ "typings": "./dist/index.d.ts",
14
15
  "exports": {
15
- "import": "./dist/index.mjs",
16
- "types": "./dist/module.d.ts"
16
+ ".": {
17
+ "import": "./dist/index.mjs",
18
+ "types": "./dist/index.d.ts"
19
+ }
17
20
  },
18
- "typings": "dist/module.d.ts",
19
21
  "files": [
20
22
  "dist"
21
23
  ],
@@ -26,16 +28,15 @@
26
28
  "bugs": {
27
29
  "url": "https://github.com/hebcal/hebcal-rest-api/issues"
28
30
  },
31
+ "homepage": "https://hebcal.github.io/api/rest-api/",
29
32
  "dependencies": {
30
- "@hebcal/core": "^5.7.7",
33
+ "@hebcal/core": "^5.8.0",
31
34
  "@hebcal/hdate": "^0.12.0",
32
- "@hebcal/leyning": "^9.0.1",
33
- "@hebcal/triennial": "^5.1.3"
35
+ "@hebcal/leyning": "^9.0.2"
34
36
  },
35
37
  "scripts": {
36
38
  "build:rollup": "rollup -c",
37
- "build:json2js": "for f in src/*.json; do echo 'export default' > $f.ts && cat $f >> $f.ts; done",
38
- "build": "npm run build:json2js && npm run build:rollup",
39
+ "build": "npm run build:rollup",
39
40
  "prepublish": "npm run build",
40
41
  "pretest": "npm run build",
41
42
  "docs": "typedoc",
@@ -58,7 +59,7 @@
58
59
  "@types/jest": "^29.5.14",
59
60
  "gts": "^5.3.1",
60
61
  "jest": "^29.7.0",
61
- "rollup": "^4.24.4",
62
+ "rollup": "^4.25.0",
62
63
  "ts-jest": "^29.2.5",
63
64
  "typedoc": "^0.26.11",
64
65
  "typescript": "^5.6.3"