@hebcal/leyning 6.2.4 → 7.0.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/README.md +53 -23
- package/dist/bundle.js +208 -166
- package/dist/bundle.min.js +2 -2
- package/dist/index.js +167 -122
- package/dist/index.mjs +167 -123
- package/leyning.d.ts +14 -6
- package/package.json +11 -18
package/leyning.d.ts
CHANGED
|
@@ -65,11 +65,6 @@ declare module '@hebcal/leyning' {
|
|
|
65
65
|
reason?: StringMap;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
export type HaftaraAshkSeph = {
|
|
69
|
-
haft: Aliyah | Aliyah[];
|
|
70
|
-
seph?: Aliyah | Aliyah[];
|
|
71
|
-
};
|
|
72
|
-
|
|
73
68
|
/**
|
|
74
69
|
* Formats parsha as a string
|
|
75
70
|
*/
|
|
@@ -101,6 +96,12 @@ declare module '@hebcal/leyning' {
|
|
|
101
96
|
* e.g. `Genesis 21:1-34; Numbers 29:1-6`.
|
|
102
97
|
*/
|
|
103
98
|
export function makeSummaryFromParts(parts: Aliyah | Aliyah[]): string;
|
|
99
|
+
export type SpecialReading = {
|
|
100
|
+
aliyot: AliyotMap;
|
|
101
|
+
reason: StringMap;
|
|
102
|
+
haft: Aliyah | Aliyah[];
|
|
103
|
+
seph?: Aliyah | Aliyah[];
|
|
104
|
+
};
|
|
104
105
|
/**
|
|
105
106
|
* Determines if the regular parashat haShavua coincides with an event that requires
|
|
106
107
|
* a special maftir or Haftara (for example Shabbat HaGadol, Shabbat Chanukah, Rosh
|
|
@@ -112,7 +113,7 @@ declare module '@hebcal/leyning' {
|
|
|
112
113
|
* If a special Haftarah applies, returns the Haftarah object and sets `reason.haftara`.
|
|
113
114
|
* If no special Haftarah, returns `undefined`
|
|
114
115
|
*/
|
|
115
|
-
export function
|
|
116
|
+
export function specialReadings2(parsha: string[], hd: HDate, il: boolean, aliyot: AliyotMap): SpecialReading;
|
|
116
117
|
/**
|
|
117
118
|
* Looks up leyning for a regular Shabbat, Monday/Thursday weekday or holiday.
|
|
118
119
|
*
|
|
@@ -178,6 +179,13 @@ declare module '@hebcal/leyning' {
|
|
|
178
179
|
*/
|
|
179
180
|
export function getLeyningForParsha(parsha: string|string[]): Leyning;
|
|
180
181
|
|
|
182
|
+
/**
|
|
183
|
+
* Looks up Monday/Thursday aliyot for a regular parsha
|
|
184
|
+
* @param parsha untranslated name like 'Pinchas' or ['Pinchas'] or ['Matot','Masei']
|
|
185
|
+
* @returns map of aliyot
|
|
186
|
+
*/
|
|
187
|
+
export function getWeekdayReading(parsha: string|string[]): AliyotMap;
|
|
188
|
+
|
|
181
189
|
/**
|
|
182
190
|
* Formats an aliyah object like "Numbers 28:9 - 28:15"
|
|
183
191
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/leyning",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hebcal",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"leyning-csv": "bin/leyning-csv"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@hebcal/core": "^3.
|
|
38
|
+
"@hebcal/core": "^3.50.3"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "rollup -c",
|
|
@@ -46,30 +46,23 @@
|
|
|
46
46
|
},
|
|
47
47
|
"license": "BSD-2-Clause",
|
|
48
48
|
"ava": {
|
|
49
|
-
"
|
|
50
|
-
"src/**/*.spec.js"
|
|
51
|
-
],
|
|
52
|
-
"require": [
|
|
53
|
-
"@babel/register"
|
|
54
|
-
],
|
|
55
|
-
"inherit": true,
|
|
56
|
-
"verbose": true
|
|
49
|
+
"require": ["@babel/register"]
|
|
57
50
|
},
|
|
58
51
|
"devDependencies": {
|
|
59
|
-
"@babel/core": "^7.20.
|
|
52
|
+
"@babel/core": "^7.20.12",
|
|
60
53
|
"@babel/preset-env": "^7.20.2",
|
|
61
54
|
"@babel/register": "^7.18.9",
|
|
62
55
|
"@rollup/plugin-babel": "^6.0.3",
|
|
63
|
-
"@rollup/plugin-commonjs": "^
|
|
64
|
-
"@rollup/plugin-json": "^
|
|
56
|
+
"@rollup/plugin-commonjs": "^24.0.1",
|
|
57
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
65
58
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
66
|
-
"@rollup/plugin-terser": "^0.
|
|
67
|
-
"ava": "^5.1.
|
|
68
|
-
"core-js": "^3.
|
|
69
|
-
"eslint": "^8.
|
|
59
|
+
"@rollup/plugin-terser": "^0.4.0",
|
|
60
|
+
"ava": "^5.1.1",
|
|
61
|
+
"core-js": "^3.27.2",
|
|
62
|
+
"eslint": "^8.32.0",
|
|
70
63
|
"eslint-config-google": "^0.14.0",
|
|
71
64
|
"jsdoc": "^4.0.0",
|
|
72
65
|
"jsdoc-to-markdown": "^8.0.0",
|
|
73
|
-
"rollup": "^3.
|
|
66
|
+
"rollup": "^3.11.0"
|
|
74
67
|
}
|
|
75
68
|
}
|