@hebcal/leyning 7.0.0 → 7.1.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 +19 -18
- package/dist/bundle.js +144 -113
- package/dist/bundle.min.js +2 -2
- package/dist/index.js +103 -70
- package/dist/index.mjs +103 -70
- package/leyning.d.ts +2 -0
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -99,15 +99,15 @@ with <code>aliyot['M']</code> replaced and sets <code>reason.M</code>
|
|
|
99
99
|
<p>If a special Haftarah applies, the result will have a <code>haft</code> property
|
|
100
100
|
pointing to Haftarah object and sets <code>reason.haftara</code>.</p>
|
|
101
101
|
</dd>
|
|
102
|
-
<dt><a href="#getLeyningForHoliday">getLeyningForHoliday(ev, [il])</a> ⇒ <code><a href="#Leyning">Leyning</a></code></dt>
|
|
103
|
-
<dd><p>Looks up leyning for a given holiday. Returns some
|
|
104
|
-
of full kriyah aliyot, special Maftir, special Haftarah</p>
|
|
105
|
-
</dd>
|
|
106
102
|
<dt><a href="#getLeyningForHolidayKey">getLeyningForHolidayKey(key, [cholHaMoedDay])</a> ⇒ <code><a href="#Leyning">Leyning</a></code></dt>
|
|
107
103
|
<dd><p>Looks up leyning for a given holiday key. Key should be an
|
|
108
104
|
(untranslated) string used in holiday-readings.json. Returns some
|
|
109
105
|
of full kriyah aliyot, special Maftir, special Haftarah</p>
|
|
110
106
|
</dd>
|
|
107
|
+
<dt><a href="#getLeyningForHoliday">getLeyningForHoliday(ev, [il])</a> ⇒ <code><a href="#Leyning">Leyning</a></code></dt>
|
|
108
|
+
<dd><p>Looks up leyning for a given holiday. Returns some
|
|
109
|
+
of full kriyah aliyot, special Maftir, special Haftarah</p>
|
|
110
|
+
</dd>
|
|
111
111
|
<dt><a href="#getWeekdayReading">getWeekdayReading(parsha)</a> ⇒ <code>Object.<string, Aliyah></code></dt>
|
|
112
112
|
<dd><p>Looks up Monday/Thursday aliyot for a regular parsha</p>
|
|
113
113
|
</dd>
|
|
@@ -327,20 +327,6 @@ pointing to Haftarah object and sets `reason.haftara`.
|
|
|
327
327
|
| il | <code>boolean</code> |
|
|
328
328
|
| aliyot | <code>Object.<string, Aliyah></code> |
|
|
329
329
|
|
|
330
|
-
<a name="getLeyningForHoliday"></a>
|
|
331
|
-
|
|
332
|
-
## getLeyningForHoliday(ev, [il]) ⇒ [<code>Leyning</code>](#Leyning)
|
|
333
|
-
Looks up leyning for a given holiday. Returns some
|
|
334
|
-
of full kriyah aliyot, special Maftir, special Haftarah
|
|
335
|
-
|
|
336
|
-
**Kind**: global function
|
|
337
|
-
**Returns**: [<code>Leyning</code>](#Leyning) - map of aliyot
|
|
338
|
-
|
|
339
|
-
| Param | Type | Default | Description |
|
|
340
|
-
| --- | --- | --- | --- |
|
|
341
|
-
| ev | <code>Event</code> | | the Hebcal event associated with this leyning |
|
|
342
|
-
| [il] | <code>boolean</code> | <code>false</code> | true if Israel holiday scheme |
|
|
343
|
-
|
|
344
330
|
<a name="getLeyningForHolidayKey"></a>
|
|
345
331
|
|
|
346
332
|
## getLeyningForHolidayKey(key, [cholHaMoedDay]) ⇒ [<code>Leyning</code>](#Leyning)
|
|
@@ -356,6 +342,20 @@ of full kriyah aliyot, special Maftir, special Haftarah
|
|
|
356
342
|
| key | <code>string</code> | name from `holiday-readings.json` to find |
|
|
357
343
|
| [cholHaMoedDay] | <code>number</code> | |
|
|
358
344
|
|
|
345
|
+
<a name="getLeyningForHoliday"></a>
|
|
346
|
+
|
|
347
|
+
## getLeyningForHoliday(ev, [il]) ⇒ [<code>Leyning</code>](#Leyning)
|
|
348
|
+
Looks up leyning for a given holiday. Returns some
|
|
349
|
+
of full kriyah aliyot, special Maftir, special Haftarah
|
|
350
|
+
|
|
351
|
+
**Kind**: global function
|
|
352
|
+
**Returns**: [<code>Leyning</code>](#Leyning) - map of aliyot
|
|
353
|
+
|
|
354
|
+
| Param | Type | Default | Description |
|
|
355
|
+
| --- | --- | --- | --- |
|
|
356
|
+
| ev | <code>Event</code> | | the Hebcal event associated with this leyning |
|
|
357
|
+
| [il] | <code>boolean</code> | <code>false</code> | true if Israel holiday scheme |
|
|
358
|
+
|
|
359
359
|
<a name="getWeekdayReading"></a>
|
|
360
360
|
|
|
361
361
|
## getWeekdayReading(parsha) ⇒ <code>Object.<string, Aliyah></code>
|
|
@@ -510,6 +510,7 @@ Leyning for a parsha hashavua or holiday
|
|
|
510
510
|
| fullkriyah | <code>Object.<string, Aliyah></code> | Map of aliyot `1` through `7` plus `M` for maftir |
|
|
511
511
|
| [weekday] | <code>Object.<string, Aliyah></code> | Optional map of weekday Torah Readings aliyot `1` through `3` for Monday and Thursday |
|
|
512
512
|
| [reason] | <code>Object.<string, string></code> | Explanations for special readings, keyed by aliyah number, `M` for maftir or `haftara` for Haftarah |
|
|
513
|
+
| [megillah] | <code>Object.<string, Aliyah></code> | Optional map of megillah reading. Song of Songs is read on the sabbath of Passover week, the Book of Ruth on Shavuot, Lamentations on Tisha be-Av, Ecclesiastes on the sabbath of the week of Sukkoth, and the Book of Esther on Purim. |
|
|
513
514
|
|
|
514
515
|
<a name="ParshaMeta"></a>
|
|
515
516
|
|