@hebcal/leyning 4.15.0 → 4.15.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/bundle.js +35 -11
- package/dist/bundle.min.js +2 -2
- package/dist/index.js +28 -8
- package/dist/index.mjs +29 -9
- package/package.json +9 -9
package/dist/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/leyning v4.15.
|
|
1
|
+
/*! @hebcal/leyning v4.15.1 */
|
|
2
2
|
var hebcal__leyning = (function (exports, core) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -341,10 +341,10 @@ var store$2 = sharedStore;
|
|
|
341
341
|
(shared$4.exports = function (key, value) {
|
|
342
342
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
343
343
|
})('versions', []).push({
|
|
344
|
-
version: '3.23.
|
|
344
|
+
version: '3.23.5',
|
|
345
345
|
mode: 'global',
|
|
346
346
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
347
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.23.
|
|
347
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.23.5/LICENSE',
|
|
348
348
|
source: 'https://github.com/zloirock/core-js'
|
|
349
349
|
});
|
|
350
350
|
|
|
@@ -1647,7 +1647,7 @@ if (PATCH) {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
1649
1649
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
1650
|
-
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
1650
|
+
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
1651
1651
|
call$1(nativeReplace, match[0], reCopy, function () {
|
|
1652
1652
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
1653
1653
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
@@ -2003,7 +2003,9 @@ function clone(src) {
|
|
|
2003
2003
|
*/
|
|
2004
2004
|
|
|
2005
2005
|
function addSefariaLinksToLeyning(aliyot, showBook) {
|
|
2006
|
-
var
|
|
2006
|
+
var _aliyot$;
|
|
2007
|
+
|
|
2008
|
+
var book1 = (_aliyot$ = aliyot['1']) === null || _aliyot$ === void 0 ? void 0 : _aliyot$.k;
|
|
2007
2009
|
Object.keys(aliyot).forEach(function (num) {
|
|
2008
2010
|
var aliyah = aliyot[num];
|
|
2009
2011
|
aliyah.num = num == 'M' ? 'maf' : num;
|
|
@@ -2389,7 +2391,19 @@ function getLeyningKeyForEvent(e) {
|
|
|
2389
2391
|
return undefined;
|
|
2390
2392
|
}
|
|
2391
2393
|
|
|
2392
|
-
if (
|
|
2394
|
+
if (desc === 'Rosh Chodesh Tevet') {
|
|
2395
|
+
if (isShabbat) {
|
|
2396
|
+
return 'Shabbat Rosh Chodesh Chanukah';
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
if (day === 30 || core.HDate.shortKislev(hd.getFullYear())) {
|
|
2400
|
+
return 'Chanukah Day 6'; // 30th of Kislev or 1st of Tevet
|
|
2401
|
+
} else {
|
|
2402
|
+
return 'Chanukah Day 7 (on Rosh Chodesh)'; // 1st of Tevet
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
if (isRoshChodesh) {
|
|
2393
2407
|
return desc;
|
|
2394
2408
|
}
|
|
2395
2409
|
|
|
@@ -3406,7 +3420,7 @@ function getTriennialHaftara(parsha, yearNum) {
|
|
|
3406
3420
|
var idx = parsha.length === 1 || yearNum === 0 ? 0 : 1;
|
|
3407
3421
|
var name = parsha[idx];
|
|
3408
3422
|
var triHaft = triennialHaft[name];
|
|
3409
|
-
var triHaft2 = triHaft
|
|
3423
|
+
var triHaft2 = triHaft === null || triHaft === void 0 ? void 0 : triHaft[yearNum + 1];
|
|
3410
3424
|
|
|
3411
3425
|
if (_typeof(triHaft2) === 'object') {
|
|
3412
3426
|
var haft = cloneHaftara(triHaft2);
|
|
@@ -3525,12 +3539,15 @@ function getParshaDates(events) {
|
|
|
3525
3539
|
|
|
3526
3540
|
|
|
3527
3541
|
function writeFullKriyahCsv(stream, hyear, il) {
|
|
3528
|
-
var
|
|
3542
|
+
var events0 = core.HebrewCalendar.calendar({
|
|
3529
3543
|
year: hyear,
|
|
3530
3544
|
isHebrewYear: true,
|
|
3531
3545
|
sedrot: true,
|
|
3532
3546
|
il: il
|
|
3533
3547
|
});
|
|
3548
|
+
var events = events0.filter(function (ev) {
|
|
3549
|
+
return ev.getDesc() !== 'Rosh Chodesh Tevet';
|
|
3550
|
+
});
|
|
3534
3551
|
var parshaDates = getParshaDates(events);
|
|
3535
3552
|
stream.write('"Date","Parashah","Aliyah","Reading","Verses"\r\n');
|
|
3536
3553
|
events.forEach(function (ev) {
|
|
@@ -3546,13 +3563,16 @@ function writeFullKriyahCsv(stream, hyear, il) {
|
|
|
3546
3563
|
*/
|
|
3547
3564
|
|
|
3548
3565
|
function writeTriennialCsv(stream, hyear) {
|
|
3549
|
-
var
|
|
3566
|
+
var events0 = core.HebrewCalendar.calendar({
|
|
3550
3567
|
year: hyear,
|
|
3551
3568
|
isHebrewYear: true,
|
|
3552
3569
|
numYears: 3,
|
|
3553
3570
|
sedrot: true,
|
|
3554
3571
|
il: false
|
|
3555
3572
|
});
|
|
3573
|
+
var events = events0.filter(function (ev) {
|
|
3574
|
+
return ev.getDesc() !== 'Rosh Chodesh Tevet';
|
|
3575
|
+
});
|
|
3556
3576
|
var parshaDates = getParshaDates(events);
|
|
3557
3577
|
stream.write('"Date","Parashah","Aliyah","Triennial Reading","Verses"\r\n');
|
|
3558
3578
|
events.forEach(function (ev) {
|
|
@@ -3700,10 +3720,12 @@ function getFullKriyahLines(reading) {
|
|
|
3700
3720
|
var a = reading.fullkriyah[num];
|
|
3701
3721
|
|
|
3702
3722
|
if (typeof a !== 'undefined') {
|
|
3723
|
+
var _reading$reason;
|
|
3724
|
+
|
|
3703
3725
|
var k = num == 'M' ? 'maf' : num;
|
|
3704
3726
|
var aliyah = formatAliyahWithBook(a);
|
|
3705
3727
|
|
|
3706
|
-
if (reading.reason &&
|
|
3728
|
+
if ((_reading$reason = reading.reason) !== null && _reading$reason !== void 0 && _reading$reason[num]) {
|
|
3707
3729
|
aliyah += ' | ' + reading.reason[num];
|
|
3708
3730
|
}
|
|
3709
3731
|
|
|
@@ -3715,9 +3737,11 @@ function getFullKriyahLines(reading) {
|
|
|
3715
3737
|
var specialHaftara = false;
|
|
3716
3738
|
|
|
3717
3739
|
if (reading.haftara) {
|
|
3740
|
+
var _reading$reason2;
|
|
3741
|
+
|
|
3718
3742
|
var haftara = reading.haftara.replace(/,/g, ';');
|
|
3719
3743
|
|
|
3720
|
-
if (reading.reason &&
|
|
3744
|
+
if ((_reading$reason2 = reading.reason) !== null && _reading$reason2 !== void 0 && _reading$reason2.haftara) {
|
|
3721
3745
|
specialHaftara = true;
|
|
3722
3746
|
haftara += ' | ' + reading.reason.haftara;
|
|
3723
3747
|
}
|