@hebcal/leyning 4.16.0 → 4.18.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/leyning.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node"/>
2
2
 
3
- import {Event} from '@hebcal/core';
3
+ import {Event, HDate} from '@hebcal/core';
4
4
  import {WriteStream} from 'fs';
5
5
 
6
6
  declare module '@hebcal/leyning' {
@@ -28,6 +28,14 @@ declare module '@hebcal/leyning' {
28
28
  * Leyning for a parsha hashavua or holiday
29
29
  */
30
30
  export type Leyning = {
31
+ name: {
32
+ en: string;
33
+ he: string;
34
+ };
35
+ /** An array of either 1 (regular) or 2 (doubled parsha). `undefined` for holiday readings */
36
+ parsha?: string[];
37
+ /** 1 for Bereshit, 2 for Noach, etc. `undefined` for holiday readings */
38
+ parshaNum?: number;
31
39
  /** Such as `Genesis 1:1 - 6:8` */
32
40
  summary: string;
33
41
  /** Haftarah object */
@@ -52,6 +60,14 @@ declare module '@hebcal/leyning' {
52
60
  };
53
61
  };
54
62
 
63
+ /**
64
+ * Looks up leyning for a regular Shabbat or holiday
65
+ * @param hdate Hebrew Date
66
+ * @param il in Israel
67
+ * @returns map of aliyot
68
+ */
69
+ export function getLeyningOnDate(hdate: HDate, il: boolean): Leyning;
70
+
55
71
  /**
56
72
  * Represents triennial aliyot for a given date
57
73
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/leyning",
3
- "version": "4.16.0",
3
+ "version": "4.18.1",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "keywords": [
6
6
  "hebcal",
@@ -31,7 +31,7 @@
31
31
  "leyning-csv": "bin/leyning-csv"
32
32
  },
33
33
  "dependencies": {
34
- "@hebcal/core": "^3.42.1"
34
+ "@hebcal/core": "^3.42.2"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "rollup -c",
@@ -61,11 +61,11 @@
61
61
  "@rollup/plugin-node-resolve": "^13.3.0",
62
62
  "ava": "^4.3.1",
63
63
  "core-js": "^3.24.1",
64
- "eslint": "^8.21.0",
64
+ "eslint": "^8.22.0",
65
65
  "eslint-config-google": "^0.14.0",
66
66
  "jsdoc": "^3.6.11",
67
67
  "jsdoc-to-markdown": "^7.1.1",
68
- "rollup": "^2.77.2",
68
+ "rollup": "^2.78.0",
69
69
  "rollup-plugin-terser": "^7.0.2"
70
70
  }
71
71
  }