@hebcal/leyning 9.4.1 → 9.5.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 +40 -8
- package/dist/bundle.min.js +6 -6
- package/dist/esm/aliyot.json.js +2 -2
- package/dist/esm/ashkenazi.po.js +1 -1
- package/dist/esm/clone.js +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/csv.js +4 -4
- package/dist/esm/festival.js +4 -1
- package/dist/esm/format.js +1 -1
- package/dist/esm/getLeyningForHoliday.js +9 -1
- package/dist/esm/getLeyningKeyForEvent.js +1 -1
- package/dist/esm/getLeyningOnDate.js +1 -1
- package/dist/esm/he.po.js +1 -1
- package/dist/esm/holiday-readings.json.js +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/internalTypes.d.ts +3 -0
- package/dist/esm/leyning.js +22 -5
- package/dist/esm/locale.js +1 -1
- package/dist/esm/numverses.json.js +1 -1
- package/dist/esm/specialReadings.js +6 -2
- package/dist/esm/summary.js +1 -1
- package/dist/esm/translate.js +1 -1
- package/dist/esm/types.d.ts +6 -0
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/leyning v9.
|
|
1
|
+
/*! @hebcal/leyning v9.5.0 */
|
|
2
2
|
import { months } from '@hebcal/hdate';
|
|
3
3
|
import { flags } from '@hebcal/core/dist/esm/event';
|
|
4
4
|
import { cloneHaftara } from './clone.js';
|
|
@@ -49,6 +49,7 @@ function mergeAliyotWithSpecial(aliyot, special) {
|
|
|
49
49
|
function specialReadings2(parsha, hd, il, aliyot) {
|
|
50
50
|
let haft;
|
|
51
51
|
let seph;
|
|
52
|
+
let chabad;
|
|
52
53
|
let specialHaft = false;
|
|
53
54
|
const reason = {};
|
|
54
55
|
function handleSpecial(key) {
|
|
@@ -67,6 +68,9 @@ function specialReadings2(parsha, hd, il, aliyot) {
|
|
|
67
68
|
seph = cloneHaftara(special.seph);
|
|
68
69
|
reason.sephardic = key;
|
|
69
70
|
}
|
|
71
|
+
if (special.chabad) {
|
|
72
|
+
chabad = cloneHaftara(special.chabad);
|
|
73
|
+
}
|
|
70
74
|
}
|
|
71
75
|
if (special.fullkriyah) {
|
|
72
76
|
const aliyotMap = structuredClone(aliyot);
|
|
@@ -136,7 +140,7 @@ function specialReadings2(parsha, hd, il, aliyot) {
|
|
|
136
140
|
}
|
|
137
141
|
}
|
|
138
142
|
}
|
|
139
|
-
return { aliyot, reason, haft, seph };
|
|
143
|
+
return { aliyot, reason, haft, seph, chabad };
|
|
140
144
|
}
|
|
141
145
|
|
|
142
146
|
export { specialReadings2 };
|
package/dist/esm/summary.js
CHANGED
package/dist/esm/translate.js
CHANGED
package/dist/esm/types.d.ts
CHANGED
|
@@ -44,6 +44,8 @@ export type ParshaMeta = {
|
|
|
44
44
|
haft: Aliyah | Aliyah[];
|
|
45
45
|
/** Haftarah object(s) for Sephardim */
|
|
46
46
|
seph?: Aliyah | Aliyah[];
|
|
47
|
+
/** Haftarah object(s) for Chabad */
|
|
48
|
+
chabad?: Aliyah | Aliyah[];
|
|
47
49
|
/** Map of Shabbat aliyot `1` through `7` plus `M` for maftir */
|
|
48
50
|
fullkriyah: Record<string, string[]>;
|
|
49
51
|
/**
|
|
@@ -69,6 +71,8 @@ export type SpecialReading = {
|
|
|
69
71
|
haft?: Aliyah | Aliyah[];
|
|
70
72
|
/** Haftarah object(s) for Sephardim */
|
|
71
73
|
seph?: Aliyah | Aliyah[];
|
|
74
|
+
/** Haftarah object(s) for Chabad */
|
|
75
|
+
chabad?: Aliyah | Aliyah[];
|
|
72
76
|
};
|
|
73
77
|
/**
|
|
74
78
|
* Leyning base - weekday, parsha hashavua or holiday
|
|
@@ -116,6 +120,8 @@ export type LeyningShabbatHoliday = LeyningBase & HaftarahProps & {
|
|
|
116
120
|
alt?: AliyotMap;
|
|
117
121
|
/** Haftarah object for Sephardim */
|
|
118
122
|
seph?: Aliyah | Aliyah[];
|
|
123
|
+
/** Haftarah object(s) for Chabad */
|
|
124
|
+
chabad?: Aliyah | Aliyah[];
|
|
119
125
|
/** Haftarah for Sephardim, such as `Isaiah 42:5 - 42:21` */
|
|
120
126
|
sephardic?: string;
|
|
121
127
|
/** Number of verses in the Haftarah for Sephardim */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/leyning",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.5.0",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hebcal",
|
|
@@ -64,16 +64,16 @@
|
|
|
64
64
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
65
65
|
"@rollup/plugin-terser": "^1.0.0",
|
|
66
66
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
67
|
-
"@types/node": "^25.
|
|
68
|
-
"@vitest/coverage-v8": "^4.
|
|
69
|
-
"gettext-parser": "^9.0.
|
|
67
|
+
"@types/node": "^25.5.0",
|
|
68
|
+
"@vitest/coverage-v8": "^4.1.1",
|
|
69
|
+
"gettext-parser": "^9.0.2",
|
|
70
70
|
"gts": "^7.0.0",
|
|
71
71
|
"pretty-bytes": "^7.1.0",
|
|
72
|
-
"rollup": "^4.
|
|
72
|
+
"rollup": "^4.60.0",
|
|
73
73
|
"rollup-plugin-bundle-size": "^1.0.3",
|
|
74
74
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
75
|
-
"typedoc": "^0.28.
|
|
75
|
+
"typedoc": "^0.28.18",
|
|
76
76
|
"typescript": "^5.9.3",
|
|
77
|
-
"vitest": "^4.
|
|
77
|
+
"vitest": "^4.1.1"
|
|
78
78
|
}
|
|
79
79
|
}
|