@hebcal/core 6.0.1 → 6.0.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.
Files changed (46) hide show
  1. package/dist/ParshaEvent.d.ts +2 -0
  2. package/dist/bundle.js +9 -4
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/bundle.min.js +3 -3
  5. package/dist/bundle.min.js.map +1 -1
  6. package/dist/esm/DailyLearning.js +1 -1
  7. package/dist/esm/HebrewDateEvent.js +1 -1
  8. package/dist/esm/HolidayEvent.js +1 -1
  9. package/dist/esm/MevarchimChodeshEvent.js +1 -1
  10. package/dist/esm/ParshaEvent.d.ts +2 -0
  11. package/dist/esm/ParshaEvent.js +5 -1
  12. package/dist/esm/ParshaEvent.js.map +1 -1
  13. package/dist/esm/TimedEvent.js +1 -1
  14. package/dist/esm/YomKippurKatanEvent.js +1 -1
  15. package/dist/esm/ashkenazi.po.js +1 -1
  16. package/dist/esm/calendar.js +1 -1
  17. package/dist/esm/candles.js +1 -1
  18. package/dist/esm/event.js +1 -1
  19. package/dist/esm/getStartAndEnd.js +1 -1
  20. package/dist/esm/hallel.js +1 -1
  21. package/dist/esm/he-x-NoNikud.po.js +1 -1
  22. package/dist/esm/he.po.js +1 -1
  23. package/dist/esm/hebcal.js +1 -1
  24. package/dist/esm/holidays.js +1 -1
  25. package/dist/esm/index.js +1 -1
  26. package/dist/esm/isAssurBemlacha.js +1 -1
  27. package/dist/esm/locale.js +1 -1
  28. package/dist/esm/location.js +1 -1
  29. package/dist/esm/modern.js +1 -1
  30. package/dist/esm/molad.js +1 -1
  31. package/dist/esm/omer.js +1 -1
  32. package/dist/esm/parshaName.js +1 -1
  33. package/dist/esm/parshaYear.js +1 -1
  34. package/dist/esm/pkgVersion.d.ts +1 -1
  35. package/dist/esm/pkgVersion.js +2 -2
  36. package/dist/esm/pkgVersion.js.map +1 -1
  37. package/dist/esm/reformatTimeStr.js +1 -1
  38. package/dist/esm/sedra.d.ts +5 -4
  39. package/dist/esm/sedra.js +4 -3
  40. package/dist/esm/sedra.js.map +1 -1
  41. package/dist/esm/staticHolidays.js +1 -1
  42. package/dist/esm/tachanun.js +1 -1
  43. package/dist/esm/zmanim.js +1 -1
  44. package/dist/pkgVersion.d.ts +1 -1
  45. package/dist/sedra.d.ts +5 -4
  46. package/package.json +4 -4
@@ -14,4 +14,6 @@ export declare class ParshaEvent extends Event {
14
14
  basename(): string;
15
15
  url(): string | undefined;
16
16
  urlDateSuffix(): string;
17
+ /** convenience function for compatibility with previous implementation */
18
+ get parsha(): string[];
17
19
  }
package/dist/bundle.js CHANGED
@@ -1,9 +1,9 @@
1
- /*! @hebcal/core v6.0.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.0.3, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  var hebcal = (function (exports) {
3
3
  'use strict';
4
4
 
5
5
  /** DO NOT EDIT THIS AUTO-GENERATED FILE! */
6
- const version = '6.0.1';
6
+ const version = '6.0.3';
7
7
 
8
8
  /*! @hebcal/hdate v0.21.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
9
9
  /* eslint-disable @typescript-eslint/no-namespace, no-inner-declarations */
@@ -8630,7 +8630,7 @@ class Sedra {
8630
8630
  const hdate = new HDate(saturday);
8631
8631
  if (typeof index === 'string') {
8632
8632
  // Shabbat has a chag. Return a description
8633
- return { parsha: [index], chag: true, hdate, il: this.il };
8633
+ return { parsha: [index], chag: true, hdate, il: this.il, num: 0 };
8634
8634
  }
8635
8635
  if (index >= 0) {
8636
8636
  return {
@@ -8653,7 +8653,7 @@ class Sedra {
8653
8653
  }
8654
8654
  /**
8655
8655
  * The 54 parshiyot of the Torah as transilterated strings.
8656
- * parshiot[0] == 'Bereshit', parshiot[1] == 'Noach', parshiot[52] == "Ha'azinu".
8656
+ * parshiot[0] == 'Bereshit', parshiot[1] == 'Noach', parshiot[52] == "Ha'azinu", parshiot[53] == 'Vezot Haberakhah'.
8657
8657
  * @readonly
8658
8658
  * @type {string[]}
8659
8659
  */
@@ -8711,6 +8711,7 @@ const parshiot = [
8711
8711
  'Nitzavim',
8712
8712
  'Vayeilech',
8713
8713
  "Ha'azinu",
8714
+ 'Vezot Haberakhah',
8714
8715
  ];
8715
8716
  // 0-based parsha IDs
8716
8717
  const parsha2id = new Map();
@@ -10824,6 +10825,10 @@ class ParshaEvent extends Event {
10824
10825
  const isoDate = isoDateString(this.greg());
10825
10826
  return isoDate.replace(/-/g, '');
10826
10827
  }
10828
+ /** convenience function for compatibility with previous implementation */
10829
+ get parsha() {
10830
+ return this.p.parsha;
10831
+ }
10827
10832
  }
10828
10833
 
10829
10834
  /**