@hebcal/core 5.6.0 → 5.7.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/README.md +23 -1
- package/dist/CalOptions.d.ts +1 -1
- package/dist/HolidayEvent.d.ts +0 -5
- package/dist/YomKippurKatanEvent.d.ts +0 -1
- package/dist/bundle.js +9735 -9576
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +2 -2
- package/dist/bundle.min.js.map +1 -1
- package/dist/calendar.d.ts +110 -0
- package/dist/candles.d.ts +9 -1
- package/dist/es/CalOptions.d.ts +158 -0
- package/dist/es/DailyLearning.d.ts +21 -0
- package/dist/es/DailyLearning.js +36 -0
- package/dist/es/DailyLearning.js.map +1 -0
- package/dist/es/HebrewDateEvent.d.ts +37 -0
- package/dist/es/HebrewDateEvent.js +77 -0
- package/dist/es/HebrewDateEvent.js.map +1 -0
- package/dist/es/HolidayEvent.d.ts +76 -0
- package/dist/es/HolidayEvent.js +165 -0
- package/dist/es/HolidayEvent.js.map +1 -0
- package/dist/es/MevarchimChodeshEvent.d.ts +25 -0
- package/dist/es/MevarchimChodeshEvent.js +54 -0
- package/dist/es/MevarchimChodeshEvent.js.map +1 -0
- package/dist/es/ParshaEvent.d.ts +23 -0
- package/dist/es/ParshaEvent.js +53 -0
- package/dist/es/ParshaEvent.js.map +1 -0
- package/dist/es/TimedEvent.d.ts +47 -0
- package/dist/es/TimedEvent.js +97 -0
- package/dist/es/TimedEvent.js.map +1 -0
- package/dist/es/YomKippurKatanEvent.d.ts +23 -0
- package/dist/es/YomKippurKatanEvent.js +43 -0
- package/dist/es/YomKippurKatanEvent.js.map +1 -0
- package/dist/es/ashkenazi.po.d.ts +67 -0
- package/dist/es/ashkenazi.po.js +5 -0
- package/dist/es/ashkenazi.po.js.map +1 -0
- package/dist/es/calendar.d.ts +110 -0
- package/dist/es/calendar.js +615 -0
- package/dist/es/calendar.js.map +1 -0
- package/dist/es/candles.d.ts +36 -0
- package/dist/es/candles.js +154 -0
- package/dist/es/candles.js.map +1 -0
- package/dist/es/event.d.ts +187 -0
- package/dist/es/event.js +243 -0
- package/dist/es/event.js.map +1 -0
- package/dist/es/getStartAndEnd.d.ts +6 -0
- package/dist/es/getStartAndEnd.js +102 -0
- package/dist/es/getStartAndEnd.js.map +1 -0
- package/dist/es/hallel.d.ts +6 -0
- package/dist/es/hallel.js +52 -0
- package/dist/es/hallel.js.map +1 -0
- package/dist/es/he.po.d.ts +246 -0
- package/dist/es/he.po.js +5 -0
- package/dist/es/he.po.js.map +1 -0
- package/dist/es/hebcal.d.ts +259 -0
- package/dist/es/hebcal.js +336 -0
- package/dist/es/hebcal.js.map +1 -0
- package/dist/es/holidays.d.ts +22 -0
- package/dist/es/holidays.js +321 -0
- package/dist/es/holidays.js.map +1 -0
- package/dist/es/index.d.ts +23 -0
- package/dist/es/index.js +22 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/locale.d.ts +1 -0
- package/dist/es/locale.js +21 -0
- package/dist/es/locale.js.map +1 -0
- package/dist/es/location.d.ts +73 -0
- package/dist/es/location.js +306 -0
- package/dist/es/location.js.map +1 -0
- package/dist/es/modern.d.ts +18 -0
- package/dist/es/modern.js +64 -0
- package/dist/es/modern.js.map +1 -0
- package/dist/es/molad.d.ts +62 -0
- package/dist/es/molad.js +141 -0
- package/dist/es/molad.js.map +1 -0
- package/dist/es/omer.d.ts +37 -0
- package/dist/es/omer.js +88 -0
- package/dist/es/omer.js.map +1 -0
- package/dist/es/parshaName.d.ts +3 -0
- package/dist/es/parshaName.js +19 -0
- package/dist/es/parshaName.js.map +1 -0
- package/dist/es/pkgVersion.d.ts +2 -0
- package/dist/es/pkgVersion.js +6 -0
- package/dist/es/pkgVersion.js.map +1 -0
- package/dist/es/reformatTimeStr.d.ts +8 -0
- package/dist/es/reformatTimeStr.js +52 -0
- package/dist/es/reformatTimeStr.js.map +1 -0
- package/dist/es/sedra.d.ts +107 -0
- package/dist/es/sedra.js +494 -0
- package/dist/es/sedra.js.map +1 -0
- package/dist/es/staticHolidays.d.ts +176 -0
- package/dist/es/staticHolidays.js +626 -0
- package/dist/es/staticHolidays.js.map +1 -0
- package/dist/es/tachanun.d.ts +29 -0
- package/dist/es/tachanun.js +125 -0
- package/dist/es/tachanun.js.map +1 -0
- package/dist/es/zmanim.d.ts +341 -0
- package/dist/es/zmanim.js +573 -0
- package/dist/es/zmanim.js.map +1 -0
- package/dist/event.d.ts +1 -0
- package/dist/he.po.d.ts +0 -51
- package/dist/holidays.d.ts +13 -0
- package/dist/index.cjs +2757 -10038
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/module.d.ts +105 -80
- package/dist/pkgVersion.d.ts +1 -1
- package/dist/sedra.d.ts +9 -4
- package/dist/tachanun.d.ts +17 -1
- package/package.json +21 -9
- package/dist/index.mjs +0 -11993
- package/dist/index.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,13 +9,14 @@ export { GeoLocation, NOAACalculator } from '@hebcal/noaa';
|
|
|
9
9
|
export { Location } from './location';
|
|
10
10
|
export { Zmanim } from './zmanim';
|
|
11
11
|
export { TimedEvent, CandleLightingEvent, HavdalahEvent } from './TimedEvent';
|
|
12
|
+
export { FastDayEvent } from './candles';
|
|
12
13
|
export { Molad, MoladEvent } from './molad';
|
|
13
14
|
export { OmerEvent } from './omer';
|
|
14
15
|
export { TachanunResult } from './tachanun';
|
|
15
|
-
export { Sedra, SedraResult, parshiot } from './sedra';
|
|
16
|
+
export { Sedra, SedraResult, parshiot, getSedra } from './sedra';
|
|
16
17
|
export { ParshaEvent } from './ParshaEvent';
|
|
17
18
|
export { HolidayEvent, AsaraBTevetEvent, RoshChodeshEvent, RoshHashanaEvent, } from './HolidayEvent';
|
|
18
|
-
export { HolidayYearMap } from './holidays';
|
|
19
|
+
export { HolidayYearMap, getHolidaysOnDate } from './holidays';
|
|
19
20
|
export { MevarchimChodeshEvent } from './MevarchimChodeshEvent';
|
|
20
21
|
export { holidayDesc } from './staticHolidays';
|
|
21
22
|
export { DailyLearning } from './DailyLearning';
|
package/dist/module.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { GeoLocation } from '@hebcal/noaa';
|
|
|
4
4
|
export { GeoLocation, NOAACalculator } from '@hebcal/noaa';
|
|
5
5
|
|
|
6
6
|
/** DO NOT EDIT THIS AUTO-GENERATED FILE! */
|
|
7
|
-
declare const version = "5.
|
|
7
|
+
declare const version = "5.7.0";
|
|
8
8
|
|
|
9
9
|
/** Class representing Location */
|
|
10
10
|
declare class Location extends GeoLocation {
|
|
@@ -413,6 +413,7 @@ declare class Event {
|
|
|
413
413
|
observedIn(il: boolean): boolean;
|
|
414
414
|
/**
|
|
415
415
|
* Makes a clone of this Event object
|
|
416
|
+
* @deprecated
|
|
416
417
|
*/
|
|
417
418
|
clone(): Event;
|
|
418
419
|
/**
|
|
@@ -838,6 +839,89 @@ declare class HavdalahEvent extends TimedEvent {
|
|
|
838
839
|
getEmoji(): string;
|
|
839
840
|
}
|
|
840
841
|
|
|
842
|
+
/** Represents a built-in holiday like Pesach, Purim or Tu BiShvat */
|
|
843
|
+
declare class HolidayEvent extends Event {
|
|
844
|
+
/** During Sukkot or Pesach */
|
|
845
|
+
cholHaMoedDay?: number;
|
|
846
|
+
chanukahDay?: number;
|
|
847
|
+
/**
|
|
848
|
+
* `true` if the fast day was postponed a day to avoid Shabbat.
|
|
849
|
+
* - Tish'a B'Av postponed from the 9th to the 10th
|
|
850
|
+
* - Tzom Tammuz postponed from the 17th to the 18th
|
|
851
|
+
*/
|
|
852
|
+
observed?: boolean;
|
|
853
|
+
basename(): string;
|
|
854
|
+
url(): string | undefined;
|
|
855
|
+
urlDateSuffix(): string;
|
|
856
|
+
getEmoji(): string;
|
|
857
|
+
getCategories(): string[];
|
|
858
|
+
/**
|
|
859
|
+
* Returns (translated) description of this event
|
|
860
|
+
* @param [locale] Optional locale name (defaults to active locale).
|
|
861
|
+
*/
|
|
862
|
+
render(locale?: string): string;
|
|
863
|
+
/**
|
|
864
|
+
* Returns a brief (translated) description of this event.
|
|
865
|
+
* For most events, this is the same as render(). For some events, it procudes
|
|
866
|
+
* a shorter text (e.g. without a time or added description).
|
|
867
|
+
* @param [locale] Optional locale name (defaults to active locale).
|
|
868
|
+
*/
|
|
869
|
+
renderBrief(locale?: string): string;
|
|
870
|
+
/**
|
|
871
|
+
* Makes a clone of this Event object
|
|
872
|
+
*/
|
|
873
|
+
clone(): HolidayEvent;
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* Because Asara B'Tevet often occurs twice in the same Gregorian year,
|
|
877
|
+
* we subclass HolidayEvent to override the `url()` method.
|
|
878
|
+
*/
|
|
879
|
+
declare class AsaraBTevetEvent extends HolidayEvent {
|
|
880
|
+
urlDateSuffix(): string;
|
|
881
|
+
}
|
|
882
|
+
/** Represents Rosh Hashana, the Jewish New Year */
|
|
883
|
+
declare class RoshHashanaEvent extends HolidayEvent {
|
|
884
|
+
private readonly hyear;
|
|
885
|
+
/**
|
|
886
|
+
* @private
|
|
887
|
+
* @param date Hebrew date event occurs
|
|
888
|
+
* @param hyear Hebrew year
|
|
889
|
+
* @param mask optional holiday flags
|
|
890
|
+
*/
|
|
891
|
+
constructor(date: HDate, hyear: number, mask: number);
|
|
892
|
+
/**
|
|
893
|
+
* Returns (translated) description of this event
|
|
894
|
+
* @param [locale] Optional locale name (defaults to active locale).
|
|
895
|
+
*/
|
|
896
|
+
render(locale?: string): string;
|
|
897
|
+
getEmoji(): string;
|
|
898
|
+
}
|
|
899
|
+
/** Represents Rosh Chodesh, the beginning of a new month */
|
|
900
|
+
declare class RoshChodeshEvent extends HolidayEvent {
|
|
901
|
+
/**
|
|
902
|
+
* Constructs Rosh Chodesh event
|
|
903
|
+
* @param date Hebrew date event occurs
|
|
904
|
+
* @param monthName Hebrew month name (not translated)
|
|
905
|
+
*/
|
|
906
|
+
constructor(date: HDate, monthName: string);
|
|
907
|
+
/**
|
|
908
|
+
* Returns (translated) description of this event
|
|
909
|
+
* @param [locale] Optional locale name (defaults to active locale).
|
|
910
|
+
*/
|
|
911
|
+
render(locale?: string): string;
|
|
912
|
+
basename(): string;
|
|
913
|
+
getEmoji(): string;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
/** A fast day also contains a start and end time */
|
|
917
|
+
declare class FastDayEvent extends HolidayEvent {
|
|
918
|
+
/** this will be a "Fast begins" event */
|
|
919
|
+
readonly startEvent?: TimedEvent;
|
|
920
|
+
/** this will be a "Fast ends" event */
|
|
921
|
+
readonly endEvent?: TimedEvent;
|
|
922
|
+
constructor(date: HDate, desc: string, mask: number, startEvent?: TimedEvent, endEvent?: TimedEvent);
|
|
923
|
+
}
|
|
924
|
+
|
|
841
925
|
/**
|
|
842
926
|
* Represents a molad, the moment when the new moon is "born"
|
|
843
927
|
*/
|
|
@@ -1004,8 +1088,14 @@ declare class Sedra {
|
|
|
1004
1088
|
/**
|
|
1005
1089
|
* Returns the date that a parsha occurs
|
|
1006
1090
|
* or `null` if the parsha doesn't occur this year
|
|
1091
|
+
* @param parsha if a `string`, specified with Sephardic transliterations
|
|
1092
|
+
* like `'Noach'` or `'Matot-Masei'`. If an array, must be a 1- or 2-element
|
|
1093
|
+
* array such as `['Noach']` or `['Matot', 'Masei']`. If a `number`, should
|
|
1094
|
+
* be a 0-based parsha index (`0` for Bereshit, `1` for Noach) or a negative
|
|
1095
|
+
* number for a doubled parsha (e.g. `-21` for Vayakhel-Pekudei)
|
|
1007
1096
|
*/
|
|
1008
1097
|
find(parsha: number | string | string[]): HDate | null;
|
|
1098
|
+
private findInternal;
|
|
1009
1099
|
/**
|
|
1010
1100
|
* Returns the date that a parsha (or its doubled or undoubled counterpart)
|
|
1011
1101
|
* occurs, or `null` if the parsha doesn't occur this year
|
|
@@ -1015,7 +1105,7 @@ declare class Sedra {
|
|
|
1015
1105
|
* Returns the underlying annual sedra schedule.
|
|
1016
1106
|
* Used by `@hebcal/triennial`
|
|
1017
1107
|
*/
|
|
1018
|
-
getSedraArray(): NumberOrString[];
|
|
1108
|
+
getSedraArray(): readonly NumberOrString[];
|
|
1019
1109
|
/**
|
|
1020
1110
|
* R.D. date of the first Saturday on or after Rosh Hashana
|
|
1021
1111
|
*/
|
|
@@ -1033,8 +1123,15 @@ declare class Sedra {
|
|
|
1033
1123
|
* @readonly
|
|
1034
1124
|
* @type {string[]}
|
|
1035
1125
|
*/
|
|
1036
|
-
declare const parshiot: string[];
|
|
1126
|
+
declare const parshiot: readonly string[];
|
|
1037
1127
|
type NumberOrString = number | string;
|
|
1128
|
+
/**
|
|
1129
|
+
* Convenience function to create an instance of `Sedra` or reuse a previously
|
|
1130
|
+
* created and cached instance.
|
|
1131
|
+
* @param hyear
|
|
1132
|
+
* @param il
|
|
1133
|
+
*/
|
|
1134
|
+
declare function getSedra(hyear: number, il: boolean): Sedra;
|
|
1038
1135
|
|
|
1039
1136
|
/**
|
|
1040
1137
|
* Represents one of 54 weekly Torah portions, always on a Saturday
|
|
@@ -1057,84 +1154,12 @@ declare class ParshaEvent extends Event {
|
|
|
1057
1154
|
urlDateSuffix(): string;
|
|
1058
1155
|
}
|
|
1059
1156
|
|
|
1060
|
-
/** Represents a built-in holiday like Pesach, Purim or Tu BiShvat */
|
|
1061
|
-
declare class HolidayEvent extends Event {
|
|
1062
|
-
/** During Sukkot or Pesach */
|
|
1063
|
-
cholHaMoedDay?: number;
|
|
1064
|
-
chanukahDay?: number;
|
|
1065
|
-
/**
|
|
1066
|
-
* `true` if the fast day was postponed a day to avoid Shabbat.
|
|
1067
|
-
* - Tish'a B'Av postponed from the 9th to the 10th
|
|
1068
|
-
* - Tzom Tammuz postponed from the 17th to the 18th
|
|
1069
|
-
*/
|
|
1070
|
-
observed?: boolean;
|
|
1071
|
-
/** For a Fast day, this will be a "Fast begins" event */
|
|
1072
|
-
startEvent?: TimedEvent;
|
|
1073
|
-
/** For a Fast day, this will be a "Fast ends" event */
|
|
1074
|
-
endEvent?: TimedEvent;
|
|
1075
|
-
basename(): string;
|
|
1076
|
-
url(): string | undefined;
|
|
1077
|
-
urlDateSuffix(): string;
|
|
1078
|
-
getEmoji(): string;
|
|
1079
|
-
getCategories(): string[];
|
|
1080
|
-
/**
|
|
1081
|
-
* Returns (translated) description of this event
|
|
1082
|
-
* @param [locale] Optional locale name (defaults to active locale).
|
|
1083
|
-
*/
|
|
1084
|
-
render(locale?: string): string;
|
|
1085
|
-
/**
|
|
1086
|
-
* Returns a brief (translated) description of this event.
|
|
1087
|
-
* For most events, this is the same as render(). For some events, it procudes
|
|
1088
|
-
* a shorter text (e.g. without a time or added description).
|
|
1089
|
-
* @param [locale] Optional locale name (defaults to active locale).
|
|
1090
|
-
*/
|
|
1091
|
-
renderBrief(locale?: string): string;
|
|
1092
|
-
/**
|
|
1093
|
-
* Makes a clone of this Event object
|
|
1094
|
-
*/
|
|
1095
|
-
clone(): HolidayEvent;
|
|
1096
|
-
}
|
|
1097
1157
|
/**
|
|
1098
|
-
*
|
|
1099
|
-
*
|
|
1158
|
+
* Returns an array of Events on this date (or `undefined` if no events)
|
|
1159
|
+
* @param date Hebrew Date, Gregorian date, or absolute R.D. day number
|
|
1160
|
+
* @param [il] use the Israeli schedule for holidays
|
|
1100
1161
|
*/
|
|
1101
|
-
declare
|
|
1102
|
-
urlDateSuffix(): string;
|
|
1103
|
-
}
|
|
1104
|
-
/** Represents Rosh Hashana, the Jewish New Year */
|
|
1105
|
-
declare class RoshHashanaEvent extends HolidayEvent {
|
|
1106
|
-
private readonly hyear;
|
|
1107
|
-
/**
|
|
1108
|
-
* @private
|
|
1109
|
-
* @param date Hebrew date event occurs
|
|
1110
|
-
* @param hyear Hebrew year
|
|
1111
|
-
* @param mask optional holiday flags
|
|
1112
|
-
*/
|
|
1113
|
-
constructor(date: HDate, hyear: number, mask: number);
|
|
1114
|
-
/**
|
|
1115
|
-
* Returns (translated) description of this event
|
|
1116
|
-
* @param [locale] Optional locale name (defaults to active locale).
|
|
1117
|
-
*/
|
|
1118
|
-
render(locale?: string): string;
|
|
1119
|
-
getEmoji(): string;
|
|
1120
|
-
}
|
|
1121
|
-
/** Represents Rosh Chodesh, the beginning of a new month */
|
|
1122
|
-
declare class RoshChodeshEvent extends HolidayEvent {
|
|
1123
|
-
/**
|
|
1124
|
-
* Constructs Rosh Chodesh event
|
|
1125
|
-
* @param date Hebrew date event occurs
|
|
1126
|
-
* @param monthName Hebrew month name (not translated)
|
|
1127
|
-
*/
|
|
1128
|
-
constructor(date: HDate, monthName: string);
|
|
1129
|
-
/**
|
|
1130
|
-
* Returns (translated) description of this event
|
|
1131
|
-
* @param [locale] Optional locale name (defaults to active locale).
|
|
1132
|
-
*/
|
|
1133
|
-
render(locale?: string): string;
|
|
1134
|
-
basename(): string;
|
|
1135
|
-
getEmoji(): string;
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1162
|
+
declare function getHolidaysOnDate(date: HDate | Date | number, il?: boolean): HolidayEvent[] | undefined;
|
|
1138
1163
|
type HolidayYearMap = Map<string, HolidayEvent[]>;
|
|
1139
1164
|
|
|
1140
1165
|
/** Represents Mevarchim haChodesh, the announcement of the new month */
|
|
@@ -1588,4 +1613,4 @@ declare class HebrewCalendar {
|
|
|
1588
1613
|
static tachanun(hdate: HDate, il: boolean): TachanunResult;
|
|
1589
1614
|
}
|
|
1590
1615
|
|
|
1591
|
-
export { AsaraBTevetEvent, type CalOptions, CandleLightingEvent, DailyLearning, type DailyLearningValue, Event, HavdalahEvent, HebrewCalendar, HebrewDateEvent, HolidayEvent, type HolidayYearMap, Location, MevarchimChodeshEvent, Molad, MoladEvent, OmerEvent, ParshaEvent, RoshChodeshEvent, RoshHashanaEvent, Sedra, type SedraResult, type TachanunResult, TimedEvent, Zmanim, flags, holidayDesc, parshiot, version };
|
|
1616
|
+
export { AsaraBTevetEvent, type CalOptions, CandleLightingEvent, DailyLearning, type DailyLearningValue, Event, FastDayEvent, HavdalahEvent, HebrewCalendar, HebrewDateEvent, HolidayEvent, type HolidayYearMap, Location, MevarchimChodeshEvent, Molad, MoladEvent, OmerEvent, ParshaEvent, RoshChodeshEvent, RoshHashanaEvent, Sedra, type SedraResult, type TachanunResult, TimedEvent, Zmanim, flags, getHolidaysOnDate, getSedra, holidayDesc, parshiot, version };
|
package/dist/pkgVersion.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** DO NOT EDIT THIS AUTO-GENERATED FILE! */
|
|
2
|
-
export declare const version = "5.
|
|
2
|
+
export declare const version = "5.7.0";
|
package/dist/sedra.d.ts
CHANGED
|
@@ -60,8 +60,14 @@ export declare class Sedra {
|
|
|
60
60
|
/**
|
|
61
61
|
* Returns the date that a parsha occurs
|
|
62
62
|
* or `null` if the parsha doesn't occur this year
|
|
63
|
+
* @param parsha if a `string`, specified with Sephardic transliterations
|
|
64
|
+
* like `'Noach'` or `'Matot-Masei'`. If an array, must be a 1- or 2-element
|
|
65
|
+
* array such as `['Noach']` or `['Matot', 'Masei']`. If a `number`, should
|
|
66
|
+
* be a 0-based parsha index (`0` for Bereshit, `1` for Noach) or a negative
|
|
67
|
+
* number for a doubled parsha (e.g. `-21` for Vayakhel-Pekudei)
|
|
63
68
|
*/
|
|
64
69
|
find(parsha: number | string | string[]): HDate | null;
|
|
70
|
+
private findInternal;
|
|
65
71
|
/**
|
|
66
72
|
* Returns the date that a parsha (or its doubled or undoubled counterpart)
|
|
67
73
|
* occurs, or `null` if the parsha doesn't occur this year
|
|
@@ -71,7 +77,7 @@ export declare class Sedra {
|
|
|
71
77
|
* Returns the underlying annual sedra schedule.
|
|
72
78
|
* Used by `@hebcal/triennial`
|
|
73
79
|
*/
|
|
74
|
-
getSedraArray(): NumberOrString[];
|
|
80
|
+
getSedraArray(): readonly NumberOrString[];
|
|
75
81
|
/**
|
|
76
82
|
* R.D. date of the first Saturday on or after Rosh Hashana
|
|
77
83
|
*/
|
|
@@ -89,14 +95,13 @@ export declare class Sedra {
|
|
|
89
95
|
* @readonly
|
|
90
96
|
* @type {string[]}
|
|
91
97
|
*/
|
|
92
|
-
export declare const parshiot: string[];
|
|
98
|
+
export declare const parshiot: readonly string[];
|
|
93
99
|
type NumberOrString = number | string;
|
|
94
100
|
/**
|
|
95
101
|
* Convenience function to create an instance of `Sedra` or reuse a previously
|
|
96
102
|
* created and cached instance.
|
|
97
|
-
* @private
|
|
98
103
|
* @param hyear
|
|
99
104
|
* @param il
|
|
100
105
|
*/
|
|
101
|
-
export declare function
|
|
106
|
+
export declare function getSedra(hyear: number, il: boolean): Sedra;
|
|
102
107
|
export {};
|
package/dist/tachanun.d.ts
CHANGED
|
@@ -10,4 +10,20 @@ export type TachanunResult = {
|
|
|
10
10
|
/** All congregations say Tachanun on the day */
|
|
11
11
|
allCongs: boolean;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Return details on what Tachanun (or Tzidchatcha on Shabbat) is said on `hdate`.
|
|
15
|
+
*
|
|
16
|
+
* Tachanun is not said on Rosh Chodesh, the month of Nisan, Lag Baomer,
|
|
17
|
+
* Rosh Chodesh Sivan until Isru Chag, Tisha B'av, 15 Av, Erev Rosh Hashanah,
|
|
18
|
+
* Rosh Hashanah, Erev Yom Kippur until after Simchat Torah, Chanukah,
|
|
19
|
+
* Tu B'shvat, Purim and Shushan Purim, and Purim and Shushan Purim Katan.
|
|
20
|
+
*
|
|
21
|
+
* In some congregations Tachanun is not said until from Rosh Chodesh Sivan
|
|
22
|
+
* until 14th Sivan, Sukkot until after Rosh Chodesh Cheshvan, Pesach Sheini,
|
|
23
|
+
* Yom Ha'atzmaut, and Yom Yerushalayim.
|
|
24
|
+
*
|
|
25
|
+
* Tachanun is not said at Mincha on days before it is not said at Shacharit.
|
|
26
|
+
*
|
|
27
|
+
* Tachanun is not said at Shacharit on Shabbat, but is at Mincha, usually.
|
|
28
|
+
*/
|
|
29
|
+
export declare function tachanun(hdate: HDate, il: boolean): TachanunResult;
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.0",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Eyal Schachter (https://github.com/Scimonster)",
|
|
7
7
|
"Danny Sadinoff (https://github.com/dsadinoff)",
|
|
8
|
+
"Yisroel Yakovson (https://github.com/YizYah)",
|
|
9
|
+
"Schabse Laks (https://github.com/SLaks)",
|
|
8
10
|
"Benny Powers (https://github.com/bennypowers)"
|
|
9
11
|
],
|
|
10
12
|
"keywords": [
|
|
@@ -22,12 +24,15 @@
|
|
|
22
24
|
],
|
|
23
25
|
"description": "A perpetual Jewish Calendar API",
|
|
24
26
|
"main": "./dist/index.cjs",
|
|
25
|
-
"module": "./dist/index.
|
|
27
|
+
"module": "./dist/es/index.js",
|
|
26
28
|
"type": "module",
|
|
27
29
|
"exports": {
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
".": {
|
|
31
|
+
"import": "./dist/es/index.js",
|
|
32
|
+
"require": "./dist/index.cjs",
|
|
33
|
+
"types": "./dist/module.d.ts"
|
|
34
|
+
},
|
|
35
|
+
"./dist/es/*": "./dist/es/*.js"
|
|
31
36
|
},
|
|
32
37
|
"typings": "./dist/module.d.ts",
|
|
33
38
|
"engines": {
|
|
@@ -45,10 +50,12 @@
|
|
|
45
50
|
],
|
|
46
51
|
"scripts": {
|
|
47
52
|
"build:rollup": "rollup -c",
|
|
53
|
+
"size-demo:rollup": "rollup -c size-demo/rollup.config.ts --configPlugin typescript",
|
|
54
|
+
"size-demo": "npm run build && npm run size-demo:rollup",
|
|
48
55
|
"build": "npm run po2json && npm run version && npm run build:rollup --production",
|
|
49
56
|
"prepublish": "npm run build",
|
|
50
57
|
"version": "node ./version.cjs package.json src/pkgVersion.ts",
|
|
51
|
-
"po2json": "node ./po2json.cjs po
|
|
58
|
+
"po2json": "node ./po2json.cjs po/he.po po/ashkenazi.po",
|
|
52
59
|
"docs": "typedoc",
|
|
53
60
|
"pretest": "npm run build",
|
|
54
61
|
"lint": "gts lint",
|
|
@@ -68,6 +75,7 @@
|
|
|
68
75
|
},
|
|
69
76
|
"devDependencies": {
|
|
70
77
|
"@babel/core": "^7.26.0",
|
|
78
|
+
"@babel/plugin-transform-runtime": "^7.25.9",
|
|
71
79
|
"@babel/preset-env": "^7.26.0",
|
|
72
80
|
"@babel/preset-typescript": "^7.26.0",
|
|
73
81
|
"@babel/register": "^7.25.9",
|
|
@@ -78,20 +86,24 @@
|
|
|
78
86
|
"@rollup/plugin-terser": "^0.4.4",
|
|
79
87
|
"@rollup/plugin-typescript": "^12.1.1",
|
|
80
88
|
"@types/jest": "^29.5.14",
|
|
81
|
-
"@types/node": "^22.8.
|
|
89
|
+
"@types/node": "^22.8.7",
|
|
82
90
|
"core-js": "^3.39.0",
|
|
83
91
|
"gts": "^6.0.2",
|
|
84
92
|
"jest": "^29.7.0",
|
|
93
|
+
"pretty-bytes": "^6.1.1",
|
|
85
94
|
"quick-lru": "<=6.1.2",
|
|
86
95
|
"rollup": "^4.24.3",
|
|
96
|
+
"rollup-plugin-bundle-size": "^1.0.3",
|
|
87
97
|
"rollup-plugin-dts": "^6.1.1",
|
|
98
|
+
"rollup-plugin-visualizer": "^5.12.0",
|
|
88
99
|
"ttag-cli": "^1.10.12",
|
|
89
|
-
"typedoc": "^0.26.
|
|
100
|
+
"typedoc": "^0.26.11",
|
|
90
101
|
"typescript": "^5.6.3"
|
|
91
102
|
},
|
|
92
103
|
"dependencies": {
|
|
104
|
+
"@babel/runtime": "^7.26.0",
|
|
93
105
|
"@hebcal/hdate": "^0.11.5",
|
|
94
106
|
"@hebcal/noaa": "^0.8.14",
|
|
95
|
-
"tslib": "^2.8.
|
|
107
|
+
"tslib": "^2.8.1"
|
|
96
108
|
}
|
|
97
109
|
}
|