@hebcal/rest-api 7.3.2 → 7.3.3

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.
@@ -3,6 +3,7 @@ import { Event } from '@hebcal/core/dist/esm/event';
3
3
  * Returns a description of the holiday. Uses the English description by
4
4
  * default, or the Hebrew description when `locale` is a Hebrew locale.
5
5
  * Returns an empty string if no description is available.
6
+ * Always returns an empty string for `ParshaEvent`s.
6
7
  * @param ev - the holiday event to describe
7
8
  * @param firstSentence - `true` to truncate the description at the first
8
9
  * sentence (up to and excluding the first `.`)
@@ -11,6 +11,7 @@ Locale.addTranslations('he', poHe);
11
11
  * Returns a description of the holiday. Uses the English description by
12
12
  * default, or the Hebrew description when `locale` is a Hebrew locale.
13
13
  * Returns an empty string if no description is available.
14
+ * Always returns an empty string for `ParshaEvent`s.
14
15
  * @param ev - the holiday event to describe
15
16
  * @param firstSentence - `true` to truncate the description at the first
16
17
  * sentence (up to and excluding the first `.`)
@@ -19,6 +20,9 @@ Locale.addTranslations('he', poHe);
19
20
  * @returns the holiday description, or `''` if none is found
20
21
  */
21
22
  export function getHolidayDescription(ev, firstSentence = false, locale) {
23
+ if (ev.hasFlag('PARSHA_HASHAVUA')) {
24
+ return '';
25
+ }
22
26
  const localeName = Locale.isHebrewLocale(locale) ? 'he' : 'en';
23
27
  const key = ev.hasFlag('SHABBAT_MEVARCHIM')
24
28
  ? 'Shabbat Mevarchim Chodesh'
@@ -1 +1 @@
1
- {"version":3,"file":"holiday.js","sourceRoot":"","sources":["../../src/holiday.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AACrC,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,IAAI,MAAM,YAAY,CAAC;AAE9B,qEAAqE;AACrE,uEAAuE;AACvE,sDAAsD;AACtD,MAAM,WAAW,GAAG,OAAO,CAAC;AAE5B,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,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5
5
  "keywords": [
6
6
  "hebcal"
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "homepage": "https://hebcal.github.io/api/rest-api/",
31
31
  "dependencies": {
32
- "@hebcal/core": "^6.14.4",
32
+ "@hebcal/core": "^6.16.0",
33
33
  "@hebcal/hdate": "^0.23.1",
34
34
  "@hebcal/leyning": "^10.1.0"
35
35
  },
@@ -48,13 +48,13 @@
48
48
  },
49
49
  "license": "BSD-2-Clause",
50
50
  "devDependencies": {
51
- "@hebcal/learning": "^6.12.2",
52
- "@hebcal/locales": "^6.5.3",
53
- "@types/node": "^26.6.5",
54
- "gettext-parser": "^9.1.1",
55
- "oxlint": "^1.88.0",
51
+ "@hebcal/learning": "^6.13.1",
52
+ "@hebcal/locales": "^6.7.0",
53
+ "@types/node": "^26.6.6",
54
+ "gettext-parser": "^10.0.0",
55
+ "oxlint": "^1.93.0",
56
56
  "prettier": "^3.9.10",
57
57
  "typescript": "^7.0.2",
58
- "vitest": "^5.0.4"
58
+ "vitest": "^5.1.0"
59
59
  }
60
60
  }