@hebcal/core 6.2.0 → 6.3.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/dist/bundle.js +101 -6
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +6 -6
- package/dist/bundle.min.js.map +1 -1
- package/dist/esm/DailyLearning.js +1 -1
- package/dist/esm/HebrewDateEvent.js +1 -1
- package/dist/esm/HolidayEvent.js +1 -1
- package/dist/esm/MevarchimChodeshEvent.js +1 -1
- package/dist/esm/ParshaEvent.js +1 -1
- package/dist/esm/TimedEvent.js +3 -1
- package/dist/esm/TimedEvent.js.map +1 -1
- package/dist/esm/YomKippurKatanEvent.js +1 -1
- package/dist/esm/ashkenazi.po.js +1 -1
- package/dist/esm/calendar.js +21 -2
- package/dist/esm/calendar.js.map +1 -1
- package/dist/esm/candles.js +1 -1
- package/dist/esm/event.js +1 -1
- package/dist/esm/getStartAndEnd.js +1 -1
- package/dist/esm/hallel.js +1 -1
- package/dist/esm/he-x-NoNikud.po.d.ts +10 -0
- package/dist/esm/he-x-NoNikud.po.js +2 -2
- package/dist/esm/he-x-NoNikud.po.js.map +1 -1
- package/dist/esm/he.po.js +2 -2
- package/dist/esm/he.po.js.map +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/isAssurBemlacha.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/moladBase.js +1 -1
- package/dist/esm/moladDate.js +1 -1
- package/dist/esm/omer.d.ts +48 -0
- package/dist/esm/omer.js +60 -1
- package/dist/esm/omer.js.map +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/sefira.json.js +5 -0
- package/dist/esm/sefira.json.js.map +1 -0
- package/dist/esm/staticHolidays.js +1 -1
- package/dist/esm/tachanun.js +1 -1
- package/dist/esm/zmanim.d.ts +14 -2
- package/dist/esm/zmanim.js +17 -3
- package/dist/esm/zmanim.js.map +1 -1
- package/dist/src/TimedEvent.js +2 -0
- package/dist/src/calendar.js +20 -1
- package/dist/src/he-x-NoNikud.po.d.ts +10 -0
- package/dist/src/he-x-NoNikud.po.js +1 -1
- package/dist/src/he.po.js +1 -1
- package/dist/src/omer.d.ts +48 -0
- package/dist/src/omer.js +59 -0
- package/dist/src/pkgVersion.d.ts +1 -1
- package/dist/src/pkgVersion.js +1 -1
- package/dist/src/sefira.json +71 -0
- package/dist/src/zmanim.d.ts +14 -2
- package/dist/src/zmanim.js +16 -2
- package/package.json +3 -2
- package/dist/coverage/block-navigation.d.ts +0 -1
- package/dist/coverage/block-navigation.js +0 -70
- package/dist/coverage/prettify.d.ts +0 -0
- package/dist/coverage/prettify.js +0 -477
- package/dist/coverage/sorter.d.ts +0 -1
- package/dist/coverage/sorter.js +0 -176
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ps67lines": [
|
|
3
|
+
"אֱלֹהִים יְחָנֵּנוּ וִיבָרְכֵנוּ יָאֵר־פָּנָיו אִתָּנוּ סֶלָה",
|
|
4
|
+
"לָדַעַת בָּאָרֶץ דַּרְכֶּךָ בְּכָל־גּוֹיִם יְשׁוּעָתֶךָ",
|
|
5
|
+
"יוֹדוּךָ עַמִּים אֱלֹהִים יוֹדוּךָ עַמִּים כֻּלָּם",
|
|
6
|
+
"יִשְׂמְחוּ וִירַנְּנוּ לְאֻמִּים כִּי־תִשְׁפֹּט עַמִּים מִישׁוֹר וּלְאֻמִּים בָּאָרֶץ תַּנחֵם סֶלָה",
|
|
7
|
+
"יוֹדוּךָ עַמִּים אֱלֹהִים יוֹדוּךָ עַמִּים כֻּלָּם",
|
|
8
|
+
"אֶרֶץ נָתְנָה יְבוּלָהּ יְבָרְכֵנוּ אֱלֹהִים אֱלֹהֵינוּ",
|
|
9
|
+
"יְבָרְכֵנוּ אֱלֹהִים וְיִירְאוּ אוֹתוֹ כָּל־אַפְסֵי־אָרֶץ"
|
|
10
|
+
],
|
|
11
|
+
"lamnatzeachLetters": [
|
|
12
|
+
"י", "ש", "מ", "ח", "ו", "ו", "י",
|
|
13
|
+
"ר", "נ", "נ", "ו", "ל", "א", "מ",
|
|
14
|
+
"י", "ם", "כ", "י", "ת", "ש", "פ",
|
|
15
|
+
"ו", "ט", "ע", "מ", "י", "ם", "מ",
|
|
16
|
+
"י", "ש", "ו", "ר", "ו", "ל", "א",
|
|
17
|
+
"מ", "י", "ם", "ב", "א", "ר", "ץ",
|
|
18
|
+
"ת", "נ", "ח", "ם", "ס", "ל", "ה"
|
|
19
|
+
],
|
|
20
|
+
"anaBekoach": [
|
|
21
|
+
"אָנָּא",
|
|
22
|
+
"בְּכֹחַ",
|
|
23
|
+
"גְּדֻלַּת",
|
|
24
|
+
"יְמִינְךָ",
|
|
25
|
+
"תַּתִּיר",
|
|
26
|
+
"צְרוּרָה",
|
|
27
|
+
"אב״ג ית״ץ",
|
|
28
|
+
"קַבֵּל",
|
|
29
|
+
"רִנַּת",
|
|
30
|
+
"עַמְּךָ",
|
|
31
|
+
"שַׂגְּבֵנוּ",
|
|
32
|
+
"טַהֲרֵנוּ",
|
|
33
|
+
"נוֹרָא",
|
|
34
|
+
"קר״ע שט״ן",
|
|
35
|
+
"נָא",
|
|
36
|
+
"גִבּוֹר",
|
|
37
|
+
"דּוֹרְשֵׁי",
|
|
38
|
+
"יִחוּדְךָ",
|
|
39
|
+
"כְּבָבַת",
|
|
40
|
+
"שָׁמְרֵם",
|
|
41
|
+
"נג״ד יכ״ש",
|
|
42
|
+
"בָּרְכֵם",
|
|
43
|
+
"טַהֲרֵם",
|
|
44
|
+
"רַחֲמֵי",
|
|
45
|
+
"צִדְקָתְךָ",
|
|
46
|
+
"תָּמִיד",
|
|
47
|
+
"גָּמְלֵם",
|
|
48
|
+
"בט״ר צת״ג",
|
|
49
|
+
"חֲסִין",
|
|
50
|
+
"קָדוֹשׁ",
|
|
51
|
+
"בְּרֹב",
|
|
52
|
+
"טוּבְךָ",
|
|
53
|
+
"נַהֵל",
|
|
54
|
+
"עֲדָתֶךָ",
|
|
55
|
+
"חק״ב תנ״ע",
|
|
56
|
+
"יָחִיד",
|
|
57
|
+
"גֵּאֶה",
|
|
58
|
+
"לְעַמְּךָ",
|
|
59
|
+
"פְּנֵה",
|
|
60
|
+
"זוֹכְרֵי",
|
|
61
|
+
"קְדֻשָּׁתֶךָ",
|
|
62
|
+
"יג״ל פז״ק",
|
|
63
|
+
"שַׁוְעָתֵנוּ",
|
|
64
|
+
"קַבֵּל",
|
|
65
|
+
"וּשְׁמַע",
|
|
66
|
+
"צַעֲקָתֵנוּ",
|
|
67
|
+
"יוֹדֵעַ",
|
|
68
|
+
"תַּעֲלוּמוֹת",
|
|
69
|
+
"שק״ו צי״ת"
|
|
70
|
+
]
|
|
71
|
+
}
|
package/dist/src/zmanim.d.ts
CHANGED
|
@@ -159,6 +159,18 @@ export declare class Zmanim {
|
|
|
159
159
|
* If elevation is enabled, this function will include elevation in the calculation.
|
|
160
160
|
*/
|
|
161
161
|
sofZmanTfilla(): Date;
|
|
162
|
+
/**
|
|
163
|
+
* This method returns the latest time for burning _chametz_ on _Erev Pesach_ according to the opinion
|
|
164
|
+
* of the <a href="https://en.wikipedia.org/wiki/Vilna_Gaon">GRA</a>. This time is 5 hours into the day based on the
|
|
165
|
+
* opinion of the <a href="https://en.wikipedia.org/wiki/Vilna_Gaon">GRA</a> that the day is calculated from
|
|
166
|
+
* sunrise to sunset. This returns the time 5 * {@link #getShaahZmanisGra()} after {@link #getSeaLevelSunrise() sea
|
|
167
|
+
* level sunrise}.
|
|
168
|
+
* @return the <code>Date</code> of the latest time for burning _chametz_ on _Erev Pesach_. If it is not
|
|
169
|
+
* _erev Pesach_ or the calculation can't be computed such as in the Arctic Circle where there is at least
|
|
170
|
+
* one day a year where the sun does not rise, and one where it does not set, a <code>null</code> will be
|
|
171
|
+
* returned.
|
|
172
|
+
*/
|
|
173
|
+
sofZmanBiurChametzGRA(): Date;
|
|
162
174
|
/**
|
|
163
175
|
* Returns an array with alot (Date) and ms in hour (number)
|
|
164
176
|
* @private
|
|
@@ -458,9 +470,9 @@ export declare class Zmanim {
|
|
|
458
470
|
* before {@link getSunrise() sunrise}.
|
|
459
471
|
*
|
|
460
472
|
* The zenith of 16.9° below is based on the calculation that the time between dawn
|
|
461
|
-
* and
|
|
473
|
+
* and _netz amiti_ (sunrise) is 72 minutes, the time that is takes to walk 4 mil at 18 minutes
|
|
462
474
|
* a mil (<a href="https://en.wikipedia.org/wiki/Maimonides">Rambam</a> and others). The sun's position at 72
|
|
463
|
-
* minutes before {@link getSunriseBaalHatanya
|
|
475
|
+
* minutes before {@link getSunriseBaalHatanya _netz amiti_ (sunrise)} in Jerusalem <a href=
|
|
464
476
|
* "https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/">around the equinox / equilux</a> is
|
|
465
477
|
* 16.9° below {@link GEOMETRIC_ZENITH geometric zenith}.
|
|
466
478
|
*
|
package/dist/src/zmanim.js
CHANGED
|
@@ -283,6 +283,20 @@ export class Zmanim {
|
|
|
283
283
|
// Gra
|
|
284
284
|
return this.getShaahZmanisBasedZman(4);
|
|
285
285
|
}
|
|
286
|
+
/**
|
|
287
|
+
* This method returns the latest time for burning _chametz_ on _Erev Pesach_ according to the opinion
|
|
288
|
+
* of the <a href="https://en.wikipedia.org/wiki/Vilna_Gaon">GRA</a>. This time is 5 hours into the day based on the
|
|
289
|
+
* opinion of the <a href="https://en.wikipedia.org/wiki/Vilna_Gaon">GRA</a> that the day is calculated from
|
|
290
|
+
* sunrise to sunset. This returns the time 5 * {@link #getShaahZmanisGra()} after {@link #getSeaLevelSunrise() sea
|
|
291
|
+
* level sunrise}.
|
|
292
|
+
* @return the <code>Date</code> of the latest time for burning _chametz_ on _Erev Pesach_. If it is not
|
|
293
|
+
* _erev Pesach_ or the calculation can't be computed such as in the Arctic Circle where there is at least
|
|
294
|
+
* one day a year where the sun does not rise, and one where it does not set, a <code>null</code> will be
|
|
295
|
+
* returned.
|
|
296
|
+
*/
|
|
297
|
+
sofZmanBiurChametzGRA() {
|
|
298
|
+
return this.getShaahZmanisBasedZman(5);
|
|
299
|
+
}
|
|
286
300
|
/**
|
|
287
301
|
* Returns an array with alot (Date) and ms in hour (number)
|
|
288
302
|
* @private
|
|
@@ -757,9 +771,9 @@ export class Zmanim {
|
|
|
757
771
|
* before {@link getSunrise() sunrise}.
|
|
758
772
|
*
|
|
759
773
|
* The zenith of 16.9° below is based on the calculation that the time between dawn
|
|
760
|
-
* and
|
|
774
|
+
* and _netz amiti_ (sunrise) is 72 minutes, the time that is takes to walk 4 mil at 18 minutes
|
|
761
775
|
* a mil (<a href="https://en.wikipedia.org/wiki/Maimonides">Rambam</a> and others). The sun's position at 72
|
|
762
|
-
* minutes before {@link getSunriseBaalHatanya
|
|
776
|
+
* minutes before {@link getSunriseBaalHatanya _netz amiti_ (sunrise)} in Jerusalem <a href=
|
|
763
777
|
* "https://kosherjava.com/2022/01/12/equinox-vs-equilux-zmanim-calculations/">around the equinox / equilux</a> is
|
|
764
778
|
* 16.9° below {@link GEOMETRIC_ZENITH geometric zenith}.
|
|
765
779
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/core",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Eyal Schachter (https://github.com/Scimonster)",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"license": "GPL-2.0",
|
|
70
70
|
"devDependencies": {
|
|
71
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
71
72
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
72
73
|
"@rollup/plugin-terser": "^1.0.0",
|
|
73
74
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
"rollup": "^4.60.1",
|
|
80
81
|
"rollup-plugin-bundle-size": "^1.0.3",
|
|
81
82
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
82
|
-
"typedoc": "^0.28.
|
|
83
|
+
"typedoc": "^0.28.19",
|
|
83
84
|
"typescript": "^6.0.2",
|
|
84
85
|
"vitest": "^4.1.4"
|
|
85
86
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare function jumpToCode(event: any): void;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
var jumpToCode = (function init() {
|
|
4
|
-
// Classes of code we would like to highlight in the file view
|
|
5
|
-
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
|
|
6
|
-
// Elements to highlight in the file listing view
|
|
7
|
-
var fileListingElements = ['td.pct.low'];
|
|
8
|
-
// We don't want to select elements that are direct descendants of another match
|
|
9
|
-
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
|
|
10
|
-
// Selector that finds elements on the page to which we can jump
|
|
11
|
-
var selector = fileListingElements.join(', ') +
|
|
12
|
-
', ' +
|
|
13
|
-
notSelector +
|
|
14
|
-
missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
|
|
15
|
-
// The NodeList of matching elements
|
|
16
|
-
var missingCoverageElements = document.querySelectorAll(selector);
|
|
17
|
-
var currentIndex;
|
|
18
|
-
function toggleClass(index) {
|
|
19
|
-
missingCoverageElements
|
|
20
|
-
.item(currentIndex)
|
|
21
|
-
.classList.remove('highlighted');
|
|
22
|
-
missingCoverageElements.item(index).classList.add('highlighted');
|
|
23
|
-
}
|
|
24
|
-
function makeCurrent(index) {
|
|
25
|
-
toggleClass(index);
|
|
26
|
-
currentIndex = index;
|
|
27
|
-
missingCoverageElements.item(index).scrollIntoView({
|
|
28
|
-
behavior: 'smooth',
|
|
29
|
-
block: 'center',
|
|
30
|
-
inline: 'center'
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function goToPrevious() {
|
|
34
|
-
var nextIndex = 0;
|
|
35
|
-
if (typeof currentIndex !== 'number' || currentIndex === 0) {
|
|
36
|
-
nextIndex = missingCoverageElements.length - 1;
|
|
37
|
-
}
|
|
38
|
-
else if (missingCoverageElements.length > 1) {
|
|
39
|
-
nextIndex = currentIndex - 1;
|
|
40
|
-
}
|
|
41
|
-
makeCurrent(nextIndex);
|
|
42
|
-
}
|
|
43
|
-
function goToNext() {
|
|
44
|
-
var nextIndex = 0;
|
|
45
|
-
if (typeof currentIndex === 'number' &&
|
|
46
|
-
currentIndex < missingCoverageElements.length - 1) {
|
|
47
|
-
nextIndex = currentIndex + 1;
|
|
48
|
-
}
|
|
49
|
-
makeCurrent(nextIndex);
|
|
50
|
-
}
|
|
51
|
-
return function jump(event) {
|
|
52
|
-
if (document.getElementById('fileSearch') === document.activeElement &&
|
|
53
|
-
document.activeElement != null) {
|
|
54
|
-
// if we're currently focused on the search input, we don't want to navigate
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
switch (event.which) {
|
|
58
|
-
case 78: // n
|
|
59
|
-
case 74: // j
|
|
60
|
-
goToNext();
|
|
61
|
-
break;
|
|
62
|
-
case 66: // b
|
|
63
|
-
case 75: // k
|
|
64
|
-
case 80: // p
|
|
65
|
-
goToPrevious();
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
})();
|
|
70
|
-
window.addEventListener('keydown', jumpToCode);
|
|
File without changes
|