@hebcal/core 5.8.7 → 5.8.9
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/DailyLearning.d.ts +2 -0
- package/dist/bundle.js +49 -43
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +17 -17
- package/dist/bundle.min.js.map +1 -1
- package/dist/candles.d.ts +7 -1
- package/dist/esm/DailyLearning.d.ts +2 -0
- package/dist/esm/DailyLearning.js +5 -1
- package/dist/esm/DailyLearning.js.map +1 -1
- package/dist/esm/HebrewDateEvent.js +1 -1
- package/dist/esm/HolidayEvent.js +3 -7
- package/dist/esm/HolidayEvent.js.map +1 -1
- package/dist/esm/MevarchimChodeshEvent.js +1 -1
- package/dist/esm/ParshaEvent.js +1 -1
- package/dist/esm/TimedEvent.js +1 -1
- package/dist/esm/YomKippurKatanEvent.js +1 -1
- package/dist/esm/ashkenazi.po.js +1 -1
- package/dist/esm/calendar.js +4 -2
- package/dist/esm/calendar.js.map +1 -1
- package/dist/esm/candles.d.ts +7 -1
- package/dist/esm/candles.js +21 -15
- package/dist/esm/candles.js.map +1 -1
- package/dist/esm/event.js +3 -7
- package/dist/esm/event.js.map +1 -1
- package/dist/esm/getStartAndEnd.js +1 -1
- package/dist/esm/hallel.js +1 -1
- package/dist/esm/he.po.js +1 -1
- package/dist/esm/hebcal.js +1 -1
- package/dist/esm/holidays.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/locale.js +1 -1
- package/dist/esm/location.js +1 -1
- package/dist/esm/modern.js +1 -1
- package/dist/esm/molad.js +1 -1
- package/dist/esm/omer.js +1 -1
- package/dist/esm/parshaName.js +1 -1
- package/dist/esm/parshaYear.js +1 -1
- package/dist/esm/pkgVersion.d.ts +1 -1
- package/dist/esm/pkgVersion.js +2 -2
- package/dist/esm/pkgVersion.js.map +1 -1
- package/dist/esm/reformatTimeStr.js +1 -1
- package/dist/esm/sedra.js +1 -1
- package/dist/esm/staticHolidays.js +1 -1
- package/dist/esm/tachanun.js +1 -1
- package/dist/esm/zmanim.js +1 -1
- package/dist/index.cjs +32 -28
- package/dist/index.cjs.map +1 -1
- package/dist/pkgVersion.d.ts +1 -1
- package/package.json +4 -5
package/dist/DailyLearning.d.ts
CHANGED
package/dist/bundle.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! @hebcal/core v5.8.
|
|
1
|
+
/*! @hebcal/core v5.8.9, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
2
2
|
var hebcal = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
/** DO NOT EDIT THIS AUTO-GENERATED FILE! */
|
|
6
|
-
const version = '5.8.
|
|
6
|
+
const version = '5.8.9';
|
|
7
7
|
|
|
8
|
-
/*! @hebcal/hdate v0.13.2 */
|
|
8
|
+
/*! @hebcal/hdate v0.13.3, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
9
9
|
/* eslint-disable @typescript-eslint/no-namespace, no-inner-declarations */
|
|
10
10
|
/** @private */
|
|
11
11
|
const lengths = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
@@ -137,7 +137,7 @@ function abs2greg(abs) {
|
|
|
137
137
|
return dt;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
/*! @hebcal/hdate v0.13.2 */
|
|
140
|
+
/*! @hebcal/hdate v0.13.3, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
141
141
|
|
|
142
142
|
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-namespace */
|
|
143
143
|
/**
|
|
@@ -151,7 +151,7 @@ exports.greg.greg2abs = greg2abs;
|
|
|
151
151
|
exports.greg.isDate = isDate;
|
|
152
152
|
exports.greg.isLeapYear = isGregLeapYear;
|
|
153
153
|
|
|
154
|
-
/*! @hebcal/hdate v0.13.2 */
|
|
154
|
+
/*! @hebcal/hdate v0.13.3, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
155
155
|
/*
|
|
156
156
|
* More minimal HDate
|
|
157
157
|
*/
|
|
@@ -515,7 +515,7 @@ function monthFromName(monthName) {
|
|
|
515
515
|
throw new RangeError(`Unable to parse month name: ${monthName}`);
|
|
516
516
|
}
|
|
517
517
|
|
|
518
|
-
/*! @hebcal/hdate v0.13.2 */
|
|
518
|
+
/*! @hebcal/hdate v0.13.3, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
519
519
|
const NISAN$3 = months.NISAN;
|
|
520
520
|
const CHESHVAN = months.CHESHVAN;
|
|
521
521
|
const KISLEV$1 = months.KISLEV;
|
|
@@ -610,7 +610,7 @@ function getBirthdayHD(hyear, date) {
|
|
|
610
610
|
};
|
|
611
611
|
}
|
|
612
612
|
|
|
613
|
-
/*! @hebcal/hdate v0.13.2 */
|
|
613
|
+
/*! @hebcal/hdate v0.13.3, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
614
614
|
const GERESH = '׳';
|
|
615
615
|
const GERSHAYIM = '״';
|
|
616
616
|
const alefbet = {
|
|
@@ -726,7 +726,7 @@ function gematriyaStrToNum(str) {
|
|
|
726
726
|
return num;
|
|
727
727
|
}
|
|
728
728
|
|
|
729
|
-
/*! @hebcal/hdate v0.13.2 */
|
|
729
|
+
/*! @hebcal/hdate v0.13.3, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
730
730
|
const sefirot = {
|
|
731
731
|
en: {
|
|
732
732
|
infix: 'within ',
|
|
@@ -901,7 +901,7 @@ function omerEmoji(omerDay) {
|
|
|
901
901
|
return String.fromCodePoint(codePoint);
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
-
/*! @hebcal/hdate v0.13.2 */
|
|
904
|
+
/*! @hebcal/hdate v0.13.3, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
905
905
|
|
|
906
906
|
/**
|
|
907
907
|
* Calculates the molad for a Hebrew month
|
|
@@ -933,7 +933,7 @@ function molad(year, month) {
|
|
|
933
933
|
};
|
|
934
934
|
}
|
|
935
935
|
|
|
936
|
-
/*! @hebcal/hdate v0.13.2 */
|
|
936
|
+
/*! @hebcal/hdate v0.13.3, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
937
937
|
/**
|
|
938
938
|
* Formats a number with leading zeros so the resulting string is 4 digits long.
|
|
939
939
|
* Similar to `string.padStart(4, '0')` but will also format
|
|
@@ -963,7 +963,7 @@ function pad2(num) {
|
|
|
963
963
|
return String(num);
|
|
964
964
|
}
|
|
965
965
|
|
|
966
|
-
/*! @hebcal/hdate v0.13.2 */
|
|
966
|
+
/*! @hebcal/hdate v0.13.3, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
967
967
|
const _formatters = new Map();
|
|
968
968
|
/**
|
|
969
969
|
* @private
|
|
@@ -1019,10 +1019,11 @@ function isoDateString(dt) {
|
|
|
1019
1019
|
return pad4(dt.getFullYear()) + '-' + pad2(dt.getMonth() + 1) + '-' + pad2(dt.getDate());
|
|
1020
1020
|
}
|
|
1021
1021
|
|
|
1022
|
-
/*! @hebcal/hdate v0.13.2 */
|
|
1022
|
+
/*! @hebcal/hdate v0.13.3, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
1023
1023
|
var poAshkenazi$1 = {
|
|
1024
1024
|
"headers": {
|
|
1025
|
-
"plural-forms": "nplurals=2; plural=(n > 1);"
|
|
1025
|
+
"plural-forms": "nplurals=2; plural=(n > 1);",
|
|
1026
|
+
"language": "en_CA@ashkenazi"
|
|
1026
1027
|
},
|
|
1027
1028
|
"contexts": {
|
|
1028
1029
|
"": {
|
|
@@ -1031,10 +1032,11 @@ var poAshkenazi$1 = {
|
|
|
1031
1032
|
}
|
|
1032
1033
|
};
|
|
1033
1034
|
|
|
1034
|
-
/*! @hebcal/hdate v0.13.2 */
|
|
1035
|
+
/*! @hebcal/hdate v0.13.3, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
1035
1036
|
var poHe$1 = {
|
|
1036
1037
|
"headers": {
|
|
1037
|
-
"plural-forms": "nplurals=2; plural=(n > 1);"
|
|
1038
|
+
"plural-forms": "nplurals=2; plural=(n > 1);",
|
|
1039
|
+
"language": "he"
|
|
1038
1040
|
},
|
|
1039
1041
|
"contexts": {
|
|
1040
1042
|
"": {
|
|
@@ -1056,7 +1058,7 @@ var poHe$1 = {
|
|
|
1056
1058
|
}
|
|
1057
1059
|
};
|
|
1058
1060
|
|
|
1059
|
-
/*! @hebcal/hdate v0.13.2 */
|
|
1061
|
+
/*! @hebcal/hdate v0.13.3, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
1060
1062
|
const noopLocale = {
|
|
1061
1063
|
headers: {
|
|
1062
1064
|
'plural-forms': 'nplurals=2; plural=(n!=1);'
|
|
@@ -1267,7 +1269,7 @@ const poHeNoNikud$1 = {
|
|
|
1267
1269
|
};
|
|
1268
1270
|
Locale.addLocale('he-x-NoNikud', poHeNoNikud$1);
|
|
1269
1271
|
|
|
1270
|
-
/*! @hebcal/hdate v0.13.2 */
|
|
1272
|
+
/*! @hebcal/hdate v0.13.3, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
1271
1273
|
|
|
1272
1274
|
/*
|
|
1273
1275
|
Hebcal - A Jewish Calendar Generator
|
|
@@ -2239,12 +2241,8 @@ class Event {
|
|
|
2239
2241
|
*/
|
|
2240
2242
|
clone() {
|
|
2241
2243
|
const ev = new Event(this.date, this.desc, this.mask);
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
if (this.hasOwnProperty(property)) {
|
|
2245
|
-
Object.defineProperty(ev, property, { value: this[property] });
|
|
2246
|
-
}
|
|
2247
|
-
}
|
|
2244
|
+
// overwrite all enumerable properties
|
|
2245
|
+
Object.assign(ev, this);
|
|
2248
2246
|
return ev;
|
|
2249
2247
|
}
|
|
2250
2248
|
/**
|
|
@@ -11234,12 +11232,8 @@ class HolidayEvent extends Event {
|
|
|
11234
11232
|
*/
|
|
11235
11233
|
clone() {
|
|
11236
11234
|
const ev = new HolidayEvent(this.date, this.desc, this.mask);
|
|
11237
|
-
|
|
11238
|
-
|
|
11239
|
-
if (this.hasOwnProperty(property)) {
|
|
11240
|
-
Object.defineProperty(ev, property, { value: this[property] });
|
|
11241
|
-
}
|
|
11242
|
-
}
|
|
11235
|
+
// overwrite all enumerable properties
|
|
11236
|
+
Object.assign(ev, this);
|
|
11243
11237
|
return ev;
|
|
11244
11238
|
}
|
|
11245
11239
|
}
|
|
@@ -11356,23 +11350,29 @@ const FAST_BEGINS = 'Fast begins';
|
|
|
11356
11350
|
const FAST_ENDS = 'Fast ends';
|
|
11357
11351
|
/** A fast day also contains a start and end time */
|
|
11358
11352
|
class FastDayEvent extends HolidayEvent {
|
|
11359
|
-
constructor(
|
|
11360
|
-
super(
|
|
11353
|
+
constructor(linkedEvent, startEvent, endEvent) {
|
|
11354
|
+
super(linkedEvent.getDate(), linkedEvent.getDesc(), linkedEvent.getFlags());
|
|
11355
|
+
this.linkedEvent = linkedEvent;
|
|
11361
11356
|
this.startEvent = startEvent;
|
|
11362
11357
|
this.endEvent = endEvent;
|
|
11363
11358
|
}
|
|
11359
|
+
render(locale) {
|
|
11360
|
+
return this.linkedEvent.render(locale);
|
|
11361
|
+
}
|
|
11362
|
+
renderBrief(locale) {
|
|
11363
|
+
return this.linkedEvent.renderBrief(locale);
|
|
11364
|
+
}
|
|
11364
11365
|
urlDateSuffix() {
|
|
11365
|
-
|
|
11366
|
-
const isoDate = isoDateString(this.getDate().greg());
|
|
11367
|
-
return isoDate.replace(/-/g, '');
|
|
11368
|
-
}
|
|
11369
|
-
return super.urlDateSuffix();
|
|
11366
|
+
return this.linkedEvent.urlDateSuffix();
|
|
11370
11367
|
}
|
|
11371
11368
|
url() {
|
|
11372
|
-
|
|
11373
|
-
|
|
11374
|
-
|
|
11375
|
-
return
|
|
11369
|
+
return this.linkedEvent.url();
|
|
11370
|
+
}
|
|
11371
|
+
getEmoji() {
|
|
11372
|
+
return this.linkedEvent.getEmoji();
|
|
11373
|
+
}
|
|
11374
|
+
getCategories() {
|
|
11375
|
+
return this.linkedEvent.getCategories();
|
|
11376
11376
|
}
|
|
11377
11377
|
}
|
|
11378
11378
|
/**
|
|
@@ -11382,7 +11382,7 @@ class FastDayEvent extends HolidayEvent {
|
|
|
11382
11382
|
function makeFastStartEnd(ev, options) {
|
|
11383
11383
|
const desc = ev.getDesc();
|
|
11384
11384
|
if (desc === 'Yom Kippur') {
|
|
11385
|
-
|
|
11385
|
+
throw new RangeError('YK does not require this function');
|
|
11386
11386
|
}
|
|
11387
11387
|
const hd = ev.getDate();
|
|
11388
11388
|
const dt = hd.greg();
|
|
@@ -11417,7 +11417,7 @@ function makeFastStartEnd(ev, options) {
|
|
|
11417
11417
|
}
|
|
11418
11418
|
}
|
|
11419
11419
|
}
|
|
11420
|
-
const ev2 = new FastDayEvent(
|
|
11420
|
+
const ev2 = new FastDayEvent(ev, startEvent, endEvent);
|
|
11421
11421
|
// copy properties such as memo or emoji
|
|
11422
11422
|
Object.assign(ev2, ev);
|
|
11423
11423
|
return ev2;
|
|
@@ -12963,6 +12963,10 @@ class DailyLearning {
|
|
|
12963
12963
|
}
|
|
12964
12964
|
return null;
|
|
12965
12965
|
}
|
|
12966
|
+
/** Returns the names of all calendars registered */
|
|
12967
|
+
static getCalendars() {
|
|
12968
|
+
return Array.from(cals.keys());
|
|
12969
|
+
}
|
|
12966
12970
|
}
|
|
12967
12971
|
|
|
12968
12972
|
const NONE$1 = 0;
|
|
@@ -13758,7 +13762,9 @@ function appendHolidayAndRelated(candlesEv, events, ev, options, isFriday, isSat
|
|
|
13758
13762
|
const isMajorFast = Boolean(eFlags & MAJOR_FAST);
|
|
13759
13763
|
const isMinorFast = Boolean(eFlags & MINOR_FAST);
|
|
13760
13764
|
let fastEv;
|
|
13761
|
-
if (options.candlelighting &&
|
|
13765
|
+
if (options.candlelighting &&
|
|
13766
|
+
(isMajorFast || isMinorFast) &&
|
|
13767
|
+
ev.getDesc() !== 'Yom Kippur') {
|
|
13762
13768
|
ev = fastEv = makeFastStartEnd(ev, options);
|
|
13763
13769
|
if (fastEv.startEvent &&
|
|
13764
13770
|
(isMajorFast || (isMinorFast && !options.noMinorFast))) {
|