@hebcal/leyning 9.2.2 → 9.2.4

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.
@@ -1,9 +1,16 @@
1
+ /** English names of books of the Pentateuch */
2
+ export type TorahBook = 'Genesis' | 'Exodus' | 'Leviticus' | 'Numbers' | 'Deuteronomy';
3
+ /** English names of books of the Prophets */
4
+ export type NeviimBook = 'Joshua' | 'Judges' | 'I Samuel' | 'II Samuel' | 'I Kings' | 'II Kings' | 'Isaiah' | 'Jeremiah' | 'Ezekiel' | 'Hosea' | 'Joel' | 'Amos' | 'Obadiah' | 'Jonah' | 'Micah' | 'Nachum' | 'Habakkuk' | 'Zephaniah' | 'Haggai' | 'Zechariah' | 'Malachi';
5
+ /** English names of books of the Writings */
6
+ export type KetuvimBook = 'Psalms' | 'Proverbs' | 'Job' | 'Song of Songs' | 'Ruth' | 'Lamentations' | 'Ecclesiastes' | 'Esther' | 'Daniel' | 'Ezra' | 'Nehemiah' | 'I Chronicles' | 'II Chronicles';
7
+ export type TanakhBook = TorahBook | NeviimBook | KetuvimBook;
1
8
  /**
2
9
  * Represents an aliyah
3
10
  */
4
11
  export type Aliyah = {
5
12
  /** Book (e.g. "Numbers") */
6
- k: string;
13
+ k: TanakhBook;
7
14
  /** beginning verse (e.g. "28:9") */
8
15
  b: string;
9
16
  /** ending verse (e.g. "28:15") */
@@ -14,12 +21,8 @@ export type Aliyah = {
14
21
  p?: number;
15
22
  reason?: string;
16
23
  };
17
- export type StringMap = {
18
- [key: string]: string;
19
- };
20
- export type AliyotMap = {
21
- [key: string]: Aliyah;
22
- };
24
+ export type StringMap = Record<string, string>;
25
+ export type AliyotMap = Record<string, Aliyah>;
23
26
  /** Name of the parsha hashavua or holiday */
24
27
  export type LeyningNames = {
25
28
  /** English */
@@ -42,16 +45,12 @@ export type ParshaMeta = {
42
45
  /** Haftarah object(s) for Sephardim */
43
46
  seph?: Aliyah | Aliyah[];
44
47
  /** Map of Shabbat aliyot `1` through `7` plus `M` for maftir */
45
- fullkriyah: {
46
- [key: string]: string[];
47
- };
48
+ fullkriyah: Record<string, string[]>;
48
49
  /**
49
50
  * Map of weekday Torah Readings
50
51
  * aliyot `1` through `3` for Monday and Thursday
51
52
  */
52
- weekday?: {
53
- [key: string]: string[];
54
- };
53
+ weekday?: Record<string, string[]>;
55
54
  combined?: boolean;
56
55
  p1?: string;
57
56
  p2?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/leyning",
3
- "version": "9.2.2",
3
+ "version": "9.2.4",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "keywords": [
6
6
  "hebcal",
@@ -40,8 +40,8 @@
40
40
  "node": ">=18"
41
41
  },
42
42
  "dependencies": {
43
- "@hebcal/core": "^5.9.9",
44
- "@hebcal/hdate": "^0.14.2",
43
+ "@hebcal/core": "^5.10.1",
44
+ "@hebcal/hdate": "^0.14.3",
45
45
  "tslib": "^2.8.1"
46
46
  },
47
47
  "scripts": {
@@ -63,15 +63,15 @@
63
63
  "@rollup/plugin-json": "^6.1.0",
64
64
  "@rollup/plugin-node-resolve": "^16.0.1",
65
65
  "@rollup/plugin-terser": "^0.4.4",
66
- "@rollup/plugin-typescript": "^12.1.3",
67
- "@types/node": "^24.0.3",
66
+ "@rollup/plugin-typescript": "^12.1.4",
67
+ "@types/node": "^24.1.0",
68
68
  "gettext-parser": "^8.0.0",
69
69
  "gts": "^5.3.1",
70
70
  "pretty-bytes": "^7.0.0",
71
- "rollup": "^4.44.0",
71
+ "rollup": "^4.46.2",
72
72
  "rollup-plugin-bundle-size": "^1.0.3",
73
73
  "rollup-plugin-visualizer": "^6.0.3",
74
- "typedoc": "^0.28.5",
74
+ "typedoc": "^0.28.8",
75
75
  "typescript": "^5.8.3",
76
76
  "vitest": "^3.2.4"
77
77
  }