@hebcal/core 3.41.0 → 3.41.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +99 -57
- package/dist/bundle.min.js +2 -2
- package/dist/greg0.mjs +20 -33
- package/dist/hdate-bundle.js +41 -37
- package/dist/hdate-bundle.min.js +2 -2
- package/dist/hdate.js +40 -36
- package/dist/hdate.mjs +34 -34
- package/dist/hdate0-bundle.js +21 -34
- package/dist/hdate0-bundle.min.js +2 -2
- package/dist/hdate0.mjs +19 -32
- package/dist/index.js +75 -41
- package/dist/index.mjs +75 -41
- package/hebcal.d.ts +7 -0
- package/package.json +5 -5
package/dist/hdate0.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v3.41.
|
|
1
|
+
/*! @hebcal/core v3.41.3 */
|
|
2
2
|
/*
|
|
3
3
|
* More minimal greg routines
|
|
4
4
|
*/
|
|
@@ -52,27 +52,10 @@ function isDate(obj) {
|
|
|
52
52
|
return typeof obj === 'object' && Date.prototype === obj.__proto__;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
* @return {number}
|
|
60
|
-
*/
|
|
61
|
-
function dayOfYear(date) {
|
|
62
|
-
if (!isDate(date)) {
|
|
63
|
-
throw new TypeError(`Argument not a Date: ${date}`);
|
|
64
|
-
}
|
|
65
|
-
const month = date.getMonth();
|
|
66
|
-
let doy = date.getDate() + 31 * month;
|
|
67
|
-
if (month > 1) {
|
|
68
|
-
// FEB
|
|
69
|
-
doy -= Math.floor((4 * (month + 1) + 23) / 10);
|
|
70
|
-
if (isLeapYear$1(date.getFullYear())) {
|
|
71
|
-
doy++;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return doy;
|
|
75
|
-
}
|
|
55
|
+
/*
|
|
56
|
+
const ABS_14SEP1752 = 639797;
|
|
57
|
+
const ABS_2SEP1752 = 639785;
|
|
58
|
+
*/
|
|
76
59
|
|
|
77
60
|
/**
|
|
78
61
|
* Converts Gregorian date to absolute R.D. (Rata Die) days
|
|
@@ -84,14 +67,13 @@ function greg2abs(date) {
|
|
|
84
67
|
if (!isDate(date)) {
|
|
85
68
|
throw new TypeError(`Argument not a Date: ${date}`);
|
|
86
69
|
}
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
); // + Gregorian leap years
|
|
70
|
+
const abs = toFixed(date.getFullYear(), date.getMonth() + 1, date.getDate());
|
|
71
|
+
/*
|
|
72
|
+
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
|
|
73
|
+
throw new RangeError(`Invalid Date: ${date}`);
|
|
74
|
+
}
|
|
75
|
+
*/
|
|
76
|
+
return abs;
|
|
95
77
|
}
|
|
96
78
|
|
|
97
79
|
/**
|
|
@@ -115,8 +97,8 @@ function yearFromFixed(abs) {
|
|
|
115
97
|
/**
|
|
116
98
|
* @private
|
|
117
99
|
* @param {number} year
|
|
118
|
-
* @param {number} month
|
|
119
|
-
* @param {number} day
|
|
100
|
+
* @param {number} month (1-12)
|
|
101
|
+
* @param {number} day (1-31)
|
|
120
102
|
* @return {number}
|
|
121
103
|
*/
|
|
122
104
|
function toFixed(year, month, day) {
|
|
@@ -145,6 +127,11 @@ function abs2greg(abs) {
|
|
|
145
127
|
throw new TypeError(`Argument not a Number: ${abs}`);
|
|
146
128
|
}
|
|
147
129
|
abs = Math.trunc(abs);
|
|
130
|
+
/*
|
|
131
|
+
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
|
|
132
|
+
throw new RangeError(`Invalid Date: ${abs}`);
|
|
133
|
+
}
|
|
134
|
+
*/
|
|
148
135
|
const year = yearFromFixed(abs);
|
|
149
136
|
const priorDays = abs - toFixed(year, 1, 1);
|
|
150
137
|
const correction = abs < toFixed(year, 3, 1) ? 0 : (isLeapYear$1(year) ? 1 : 2);
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v3.41.
|
|
1
|
+
/*! @hebcal/core v3.41.3 */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -81,32 +81,11 @@ function daysInMonth$1(month, year) {
|
|
|
81
81
|
function isDate(obj) {
|
|
82
82
|
return typeof obj === 'object' && Date.prototype === obj.__proto__;
|
|
83
83
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
* @return {number}
|
|
89
|
-
*/
|
|
90
|
-
|
|
91
|
-
function dayOfYear(date) {
|
|
92
|
-
if (!isDate(date)) {
|
|
93
|
-
throw new TypeError(`Argument not a Date: ${date}`);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
const month = date.getMonth();
|
|
97
|
-
let doy = date.getDate() + 31 * month;
|
|
98
|
-
|
|
99
|
-
if (month > 1) {
|
|
100
|
-
// FEB
|
|
101
|
-
doy -= Math.floor((4 * (month + 1) + 23) / 10);
|
|
102
|
-
|
|
103
|
-
if (isLeapYear$1(date.getFullYear())) {
|
|
104
|
-
doy++;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
84
|
+
/*
|
|
85
|
+
const ABS_14SEP1752 = 639797;
|
|
86
|
+
const ABS_2SEP1752 = 639785;
|
|
87
|
+
*/
|
|
107
88
|
|
|
108
|
-
return doy;
|
|
109
|
-
}
|
|
110
89
|
/**
|
|
111
90
|
* Converts Gregorian date to absolute R.D. (Rata Die) days
|
|
112
91
|
* @private
|
|
@@ -119,12 +98,14 @@ function greg2abs(date) {
|
|
|
119
98
|
throw new TypeError(`Argument not a Date: ${date}`);
|
|
120
99
|
}
|
|
121
100
|
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
101
|
+
const abs = toFixed(date.getFullYear(), date.getMonth() + 1, date.getDate());
|
|
102
|
+
/*
|
|
103
|
+
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
|
|
104
|
+
throw new RangeError(`Invalid Date: ${date}`);
|
|
105
|
+
}
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
return abs;
|
|
128
109
|
}
|
|
129
110
|
/**
|
|
130
111
|
* @private
|
|
@@ -147,8 +128,8 @@ function yearFromFixed(abs) {
|
|
|
147
128
|
/**
|
|
148
129
|
* @private
|
|
149
130
|
* @param {number} year
|
|
150
|
-
* @param {number} month
|
|
151
|
-
* @param {number} day
|
|
131
|
+
* @param {number} month (1-12)
|
|
132
|
+
* @param {number} day (1-31)
|
|
152
133
|
* @return {number}
|
|
153
134
|
*/
|
|
154
135
|
|
|
@@ -175,6 +156,12 @@ function abs2greg(abs) {
|
|
|
175
156
|
}
|
|
176
157
|
|
|
177
158
|
abs = Math.trunc(abs);
|
|
159
|
+
/*
|
|
160
|
+
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
|
|
161
|
+
throw new RangeError(`Invalid Date: ${abs}`);
|
|
162
|
+
}
|
|
163
|
+
*/
|
|
164
|
+
|
|
178
165
|
const year = yearFromFixed(abs);
|
|
179
166
|
const priorDays = abs - toFixed(year, 1, 1);
|
|
180
167
|
const correction = abs < toFixed(year, 3, 1) ? 0 : isLeapYear$1(year) ? 1 : 2;
|
|
@@ -231,13 +218,30 @@ class greg {
|
|
|
231
218
|
}
|
|
232
219
|
/**
|
|
233
220
|
* Returns number of days since January 1 of that year
|
|
221
|
+
* @deprecated
|
|
234
222
|
* @param {Date} date Gregorian date
|
|
235
223
|
* @return {number}
|
|
236
224
|
*/
|
|
237
225
|
|
|
238
226
|
|
|
239
227
|
static dayOfYear(date) {
|
|
240
|
-
|
|
228
|
+
if (!isDate(date)) {
|
|
229
|
+
throw new TypeError(`Argument not a Date: ${date}`);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
const month = date.getMonth();
|
|
233
|
+
let doy = date.getDate() + 31 * month;
|
|
234
|
+
|
|
235
|
+
if (month > 1) {
|
|
236
|
+
// FEB
|
|
237
|
+
doy -= Math.floor((4 * (month + 1) + 23) / 10);
|
|
238
|
+
|
|
239
|
+
if (isLeapYear$1(date.getFullYear())) {
|
|
240
|
+
doy++;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
return doy;
|
|
241
245
|
}
|
|
242
246
|
/**
|
|
243
247
|
* Converts Gregorian date to absolute R.D. (Rata Die) days
|
|
@@ -4833,6 +4837,12 @@ class MevarchimChodeshEvent extends Event {
|
|
|
4833
4837
|
const molad = new MoladEvent(date, hyear, monNext);
|
|
4834
4838
|
this.memo = molad.render();
|
|
4835
4839
|
}
|
|
4840
|
+
/** @return {string} */
|
|
4841
|
+
|
|
4842
|
+
|
|
4843
|
+
basename() {
|
|
4844
|
+
return this.getDesc();
|
|
4845
|
+
}
|
|
4836
4846
|
/**
|
|
4837
4847
|
* Returns (translated) description of this event
|
|
4838
4848
|
* @param {string} [locale] Optional locale name (defaults to active locale).
|
|
@@ -4872,6 +4882,7 @@ class RoshHashanaEvent extends HolidayEvent {
|
|
|
4872
4882
|
}
|
|
4873
4883
|
|
|
4874
4884
|
}
|
|
4885
|
+
const ykk = 'Yom Kippur Katan';
|
|
4875
4886
|
/** Represents Rosh Hashana, the Jewish New Year */
|
|
4876
4887
|
|
|
4877
4888
|
class YomKippurKatanEvent extends HolidayEvent {
|
|
@@ -4881,16 +4892,39 @@ class YomKippurKatanEvent extends HolidayEvent {
|
|
|
4881
4892
|
* @param {string} nextMonthName name of the upcoming month
|
|
4882
4893
|
*/
|
|
4883
4894
|
constructor(date, nextMonthName) {
|
|
4884
|
-
super(date,
|
|
4895
|
+
super(date, `${ykk} ${nextMonthName}`, flags.MINOR_FAST);
|
|
4896
|
+
this.nextMonthName = nextMonthName;
|
|
4885
4897
|
this.memo = `Minor Day of Atonement on the day preceeding Rosh Chodesh ${nextMonthName}`;
|
|
4886
4898
|
}
|
|
4887
4899
|
/** @return {string} */
|
|
4888
4900
|
|
|
4889
4901
|
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4902
|
+
basename() {
|
|
4903
|
+
return this.getDesc();
|
|
4904
|
+
}
|
|
4905
|
+
/**
|
|
4906
|
+
* @param {string} [locale] Optional locale name (defaults to active locale).
|
|
4907
|
+
* @return {string}
|
|
4908
|
+
*/
|
|
4909
|
+
|
|
4910
|
+
|
|
4911
|
+
render(locale) {
|
|
4912
|
+
return Locale.gettext(ykk, locale) + ' ' + Locale.gettext(this.nextMonthName, locale);
|
|
4913
|
+
}
|
|
4914
|
+
/**
|
|
4915
|
+
* @param {string} [locale] Optional locale name (defaults to active locale).
|
|
4916
|
+
* @return {string}
|
|
4917
|
+
*/
|
|
4918
|
+
|
|
4919
|
+
|
|
4920
|
+
renderBrief(locale) {
|
|
4921
|
+
return Locale.gettext(ykk, locale);
|
|
4922
|
+
}
|
|
4923
|
+
/** @return {string} */
|
|
4924
|
+
|
|
4925
|
+
|
|
4926
|
+
url() {
|
|
4927
|
+
return undefined;
|
|
4894
4928
|
}
|
|
4895
4929
|
|
|
4896
4930
|
}
|
|
@@ -5575,7 +5609,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
|
|
|
5575
5609
|
return new HDate(day, month, hyear);
|
|
5576
5610
|
}
|
|
5577
5611
|
|
|
5578
|
-
var version="3.41.
|
|
5612
|
+
var version="3.41.3";
|
|
5579
5613
|
|
|
5580
5614
|
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"],Tevet:["Teves"],"Asara B'Tevet":["Asara B'Teves"],Berakhot:["Berakhos"],Sheviit:["Sheviis"],Terumot:["Terumos"],Maasrot:["Maasros"],Eduyot:["Eduyos"],Avot:["Avos"],Bekhorot:["Bekhoros"],Middot:["Middos"],Oholot:["Oholos"],Tahorot:["Tahoros"],Mikvaot:["Mikvaos"]}};var poAshkenazi = {headers:headers$1,contexts:contexts$1};
|
|
5581
5615
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v3.41.
|
|
1
|
+
/*! @hebcal/core v3.41.3 */
|
|
2
2
|
/*
|
|
3
3
|
* More minimal greg routines
|
|
4
4
|
*/
|
|
@@ -62,32 +62,11 @@ function daysInMonth$1(month, year) {
|
|
|
62
62
|
function isDate(obj) {
|
|
63
63
|
return typeof obj === 'object' && Date.prototype === obj.__proto__;
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
* @return {number}
|
|
70
|
-
*/
|
|
71
|
-
|
|
72
|
-
function dayOfYear(date) {
|
|
73
|
-
if (!isDate(date)) {
|
|
74
|
-
throw new TypeError(`Argument not a Date: ${date}`);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
const month = date.getMonth();
|
|
78
|
-
let doy = date.getDate() + 31 * month;
|
|
79
|
-
|
|
80
|
-
if (month > 1) {
|
|
81
|
-
// FEB
|
|
82
|
-
doy -= Math.floor((4 * (month + 1) + 23) / 10);
|
|
83
|
-
|
|
84
|
-
if (isLeapYear$1(date.getFullYear())) {
|
|
85
|
-
doy++;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
65
|
+
/*
|
|
66
|
+
const ABS_14SEP1752 = 639797;
|
|
67
|
+
const ABS_2SEP1752 = 639785;
|
|
68
|
+
*/
|
|
88
69
|
|
|
89
|
-
return doy;
|
|
90
|
-
}
|
|
91
70
|
/**
|
|
92
71
|
* Converts Gregorian date to absolute R.D. (Rata Die) days
|
|
93
72
|
* @private
|
|
@@ -100,12 +79,14 @@ function greg2abs(date) {
|
|
|
100
79
|
throw new TypeError(`Argument not a Date: ${date}`);
|
|
101
80
|
}
|
|
102
81
|
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
82
|
+
const abs = toFixed(date.getFullYear(), date.getMonth() + 1, date.getDate());
|
|
83
|
+
/*
|
|
84
|
+
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
|
|
85
|
+
throw new RangeError(`Invalid Date: ${date}`);
|
|
86
|
+
}
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
return abs;
|
|
109
90
|
}
|
|
110
91
|
/**
|
|
111
92
|
* @private
|
|
@@ -128,8 +109,8 @@ function yearFromFixed(abs) {
|
|
|
128
109
|
/**
|
|
129
110
|
* @private
|
|
130
111
|
* @param {number} year
|
|
131
|
-
* @param {number} month
|
|
132
|
-
* @param {number} day
|
|
112
|
+
* @param {number} month (1-12)
|
|
113
|
+
* @param {number} day (1-31)
|
|
133
114
|
* @return {number}
|
|
134
115
|
*/
|
|
135
116
|
|
|
@@ -156,6 +137,12 @@ function abs2greg(abs) {
|
|
|
156
137
|
}
|
|
157
138
|
|
|
158
139
|
abs = Math.trunc(abs);
|
|
140
|
+
/*
|
|
141
|
+
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
|
|
142
|
+
throw new RangeError(`Invalid Date: ${abs}`);
|
|
143
|
+
}
|
|
144
|
+
*/
|
|
145
|
+
|
|
159
146
|
const year = yearFromFixed(abs);
|
|
160
147
|
const priorDays = abs - toFixed(year, 1, 1);
|
|
161
148
|
const correction = abs < toFixed(year, 3, 1) ? 0 : isLeapYear$1(year) ? 1 : 2;
|
|
@@ -233,13 +220,30 @@ class greg {
|
|
|
233
220
|
}
|
|
234
221
|
/**
|
|
235
222
|
* Returns number of days since January 1 of that year
|
|
223
|
+
* @deprecated
|
|
236
224
|
* @param {Date} date Gregorian date
|
|
237
225
|
* @return {number}
|
|
238
226
|
*/
|
|
239
227
|
|
|
240
228
|
|
|
241
229
|
static dayOfYear(date) {
|
|
242
|
-
|
|
230
|
+
if (!isDate(date)) {
|
|
231
|
+
throw new TypeError(`Argument not a Date: ${date}`);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
const month = date.getMonth();
|
|
235
|
+
let doy = date.getDate() + 31 * month;
|
|
236
|
+
|
|
237
|
+
if (month > 1) {
|
|
238
|
+
// FEB
|
|
239
|
+
doy -= Math.floor((4 * (month + 1) + 23) / 10);
|
|
240
|
+
|
|
241
|
+
if (isLeapYear$1(date.getFullYear())) {
|
|
242
|
+
doy++;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
return doy;
|
|
243
247
|
}
|
|
244
248
|
/**
|
|
245
249
|
* Converts Gregorian date to absolute R.D. (Rata Die) days
|
|
@@ -4829,6 +4833,12 @@ class MevarchimChodeshEvent extends Event {
|
|
|
4829
4833
|
const molad = new MoladEvent(date, hyear, monNext);
|
|
4830
4834
|
this.memo = molad.render();
|
|
4831
4835
|
}
|
|
4836
|
+
/** @return {string} */
|
|
4837
|
+
|
|
4838
|
+
|
|
4839
|
+
basename() {
|
|
4840
|
+
return this.getDesc();
|
|
4841
|
+
}
|
|
4832
4842
|
/**
|
|
4833
4843
|
* Returns (translated) description of this event
|
|
4834
4844
|
* @param {string} [locale] Optional locale name (defaults to active locale).
|
|
@@ -4868,6 +4878,7 @@ class RoshHashanaEvent extends HolidayEvent {
|
|
|
4868
4878
|
}
|
|
4869
4879
|
|
|
4870
4880
|
}
|
|
4881
|
+
const ykk = 'Yom Kippur Katan';
|
|
4871
4882
|
/** Represents Rosh Hashana, the Jewish New Year */
|
|
4872
4883
|
|
|
4873
4884
|
class YomKippurKatanEvent extends HolidayEvent {
|
|
@@ -4877,16 +4888,39 @@ class YomKippurKatanEvent extends HolidayEvent {
|
|
|
4877
4888
|
* @param {string} nextMonthName name of the upcoming month
|
|
4878
4889
|
*/
|
|
4879
4890
|
constructor(date, nextMonthName) {
|
|
4880
|
-
super(date,
|
|
4891
|
+
super(date, `${ykk} ${nextMonthName}`, flags.MINOR_FAST);
|
|
4892
|
+
this.nextMonthName = nextMonthName;
|
|
4881
4893
|
this.memo = `Minor Day of Atonement on the day preceeding Rosh Chodesh ${nextMonthName}`;
|
|
4882
4894
|
}
|
|
4883
4895
|
/** @return {string} */
|
|
4884
4896
|
|
|
4885
4897
|
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4898
|
+
basename() {
|
|
4899
|
+
return this.getDesc();
|
|
4900
|
+
}
|
|
4901
|
+
/**
|
|
4902
|
+
* @param {string} [locale] Optional locale name (defaults to active locale).
|
|
4903
|
+
* @return {string}
|
|
4904
|
+
*/
|
|
4905
|
+
|
|
4906
|
+
|
|
4907
|
+
render(locale) {
|
|
4908
|
+
return Locale.gettext(ykk, locale) + ' ' + Locale.gettext(this.nextMonthName, locale);
|
|
4909
|
+
}
|
|
4910
|
+
/**
|
|
4911
|
+
* @param {string} [locale] Optional locale name (defaults to active locale).
|
|
4912
|
+
* @return {string}
|
|
4913
|
+
*/
|
|
4914
|
+
|
|
4915
|
+
|
|
4916
|
+
renderBrief(locale) {
|
|
4917
|
+
return Locale.gettext(ykk, locale);
|
|
4918
|
+
}
|
|
4919
|
+
/** @return {string} */
|
|
4920
|
+
|
|
4921
|
+
|
|
4922
|
+
url() {
|
|
4923
|
+
return undefined;
|
|
4890
4924
|
}
|
|
4891
4925
|
|
|
4892
4926
|
}
|
|
@@ -5571,7 +5605,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
|
|
|
5571
5605
|
return new HDate(day, month, hyear);
|
|
5572
5606
|
}
|
|
5573
5607
|
|
|
5574
|
-
const version="3.41.
|
|
5608
|
+
const version="3.41.3";
|
|
5575
5609
|
|
|
5576
5610
|
const headers$1={"plural-forms":"nplurals=2; plural=(n > 1);",language:"en_CA@ashkenazi"};const 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"],Tevet:["Teves"],"Asara B'Tevet":["Asara B'Teves"],Berakhot:["Berakhos"],Sheviit:["Sheviis"],Terumot:["Terumos"],Maasrot:["Maasros"],Eduyot:["Eduyos"],Avot:["Avos"],Bekhorot:["Bekhoros"],Middot:["Middos"],Oholot:["Oholos"],Tahorot:["Tahoros"],Mikvaot:["Mikvaos"]}};var poAshkenazi = {headers:headers$1,contexts:contexts$1};
|
|
5577
5611
|
|
package/hebcal.d.ts
CHANGED
|
@@ -786,6 +786,7 @@ declare module '@hebcal/core' {
|
|
|
786
786
|
static daysInMonth(month: number, year: number): number;
|
|
787
787
|
/**
|
|
788
788
|
* Returns number of days since January 1 of that year
|
|
789
|
+
* @deprecated
|
|
789
790
|
* @param date - Gregorian date
|
|
790
791
|
*/
|
|
791
792
|
static dayOfYear(date: Date): number;
|
|
@@ -974,6 +975,12 @@ declare module '@hebcal/core' {
|
|
|
974
975
|
constructor(date: HDate, desc: string, mask?: number, attrs?: any);
|
|
975
976
|
urlDateSuffix(): string;
|
|
976
977
|
}
|
|
978
|
+
export class YomKippurKatanEvent extends HolidayEvent {
|
|
979
|
+
constructor(date: HDate, nextMonthName: string);
|
|
980
|
+
render(locale?: string): string;
|
|
981
|
+
renderBrief(locale?: string): string;
|
|
982
|
+
urlDateSuffix(): string;
|
|
983
|
+
}
|
|
977
984
|
export class MevarchimChodeshEvent extends Event {
|
|
978
985
|
constructor(date: HDate, monthName: string);
|
|
979
986
|
render(locale?: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/core",
|
|
3
|
-
"version": "3.41.
|
|
3
|
+
"version": "3.41.3",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Eyal Schachter (https://github.com/Scimonster)",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"verbose": true
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@babel/core": "^7.18.
|
|
67
|
-
"@babel/preset-env": "^7.18.
|
|
68
|
-
"@babel/register": "^7.
|
|
66
|
+
"@babel/core": "^7.18.6",
|
|
67
|
+
"@babel/preset-env": "^7.18.6",
|
|
68
|
+
"@babel/register": "^7.18.6",
|
|
69
69
|
"@hebcal/solar-calc": "^1.1.2",
|
|
70
70
|
"@rollup/plugin-babel": "^5.3.1",
|
|
71
71
|
"@rollup/plugin-commonjs": "^22.0.1",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
74
74
|
"ava": "^4.3.0",
|
|
75
75
|
"codecov": "^3.8.3",
|
|
76
|
-
"core-js": "^3.23.
|
|
76
|
+
"core-js": "^3.23.3",
|
|
77
77
|
"eslint": "^8.18.0",
|
|
78
78
|
"eslint-config-google": "^0.14.0",
|
|
79
79
|
"jsdoc": "^3.6.10",
|