@hebcal/core 3.31.3 → 3.33.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 +118 -5
- package/dist/bundle.js +4349 -3796
- package/dist/bundle.min.js +2 -2
- package/dist/hdate-bundle.js +10 -2
- package/dist/hdate-bundle.min.js +2 -2
- package/dist/hdate.js +18 -10
- package/dist/hdate.mjs +18 -10
- package/dist/index.js +352 -153
- package/dist/index.mjs +350 -153
- package/hebcal.d.ts +43 -0
- package/package.json +8 -8
package/hebcal.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ declare module '@hebcal/core' {
|
|
|
56
56
|
MINOR_HOLIDAY,
|
|
57
57
|
EREV,
|
|
58
58
|
CHOL_HAMOED,
|
|
59
|
+
MISHNA_YOMI,
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
export type UnitTypeShort = 'd' | 'w' | 'M' | 'y';
|
|
@@ -465,6 +466,7 @@ declare module '@hebcal/core' {
|
|
|
465
466
|
* Returns the name of the active locale (i.e. 'he', 'ashkenazi', 'fr')
|
|
466
467
|
*/
|
|
467
468
|
export function getLocaleName(): string;
|
|
469
|
+
export function getLocaleNames(): string[];
|
|
468
470
|
export function ordinal(n: number, locale?: string): string;
|
|
469
471
|
/**
|
|
470
472
|
* Removes nekudot from Hebrew string
|
|
@@ -544,6 +546,8 @@ declare module '@hebcal/core' {
|
|
|
544
546
|
noHolidays?: boolean;
|
|
545
547
|
/** include Daf Yomi */
|
|
546
548
|
dafyomi?: boolean;
|
|
549
|
+
/** include Mishna Yomi */
|
|
550
|
+
mishnaYomi?: boolean;
|
|
547
551
|
/** include Days of the Omer */
|
|
548
552
|
omer?: boolean;
|
|
549
553
|
/** include event announcing the molad */
|
|
@@ -839,6 +843,10 @@ declare module '@hebcal/core' {
|
|
|
839
843
|
getFirstSaturday(): number;
|
|
840
844
|
}
|
|
841
845
|
|
|
846
|
+
/**
|
|
847
|
+
* An event that has an `eventTime` and `eventTimeStr`
|
|
848
|
+
* @param desc - Description (not translated)
|
|
849
|
+
*/
|
|
842
850
|
export class TimedEvent extends Event {
|
|
843
851
|
constructor(date: HDate, desc: string, mask: number, eventTime: Date, location: Location, linkedEvent?: Event);
|
|
844
852
|
render(locale?: string): string;
|
|
@@ -921,4 +929,39 @@ declare module '@hebcal/core' {
|
|
|
921
929
|
* gematriya(5774) // תשע״ד - cropped to 774
|
|
922
930
|
*/
|
|
923
931
|
export function gematriya(number: number): string;
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* Describes a mishna to be read
|
|
935
|
+
* @property k - tractate name in Sephardic transliteration (e.g. "Berakhot", "Moed Katan")
|
|
936
|
+
* @property v - verse (e.g. "2:1")
|
|
937
|
+
*/
|
|
938
|
+
export type MishnaYomi = {
|
|
939
|
+
k: string;
|
|
940
|
+
v: string;
|
|
941
|
+
};
|
|
942
|
+
/**
|
|
943
|
+
* Initializes a Mishna Yomi instance
|
|
944
|
+
*/
|
|
945
|
+
export class MishnaYomiIndex {
|
|
946
|
+
/**
|
|
947
|
+
* Looks up a Mishna Yomi
|
|
948
|
+
* @param date - Gregorian date
|
|
949
|
+
*/
|
|
950
|
+
lookup(date: Date | HDate | number): MishnaYomi[];
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* Event wrapper around a Mishna Yomi instance
|
|
954
|
+
*/
|
|
955
|
+
export class MishnaYomiEvent {
|
|
956
|
+
constructor(date: HDate, mishnaYomi: MishnaYomi[]);
|
|
957
|
+
/**
|
|
958
|
+
* Returns Mishna Yomi name (e.g. "Bava Metzia 10:5-6" or "Berakhot 9:5-Peah 1:1").
|
|
959
|
+
* @param [locale] - Optional locale name (defaults to active locale).
|
|
960
|
+
*/
|
|
961
|
+
render(locale?: string): string;
|
|
962
|
+
/**
|
|
963
|
+
* Returns a link to sefaria.org
|
|
964
|
+
*/
|
|
965
|
+
url(): string;
|
|
966
|
+
}
|
|
924
967
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.33.1",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Eyal Schachter (https://github.com/Scimonster)",
|
|
@@ -70,22 +70,22 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@ava/babel": "^2.0.0",
|
|
73
|
-
"@babel/core": "^7.16.
|
|
74
|
-
"@babel/preset-env": "^7.16.
|
|
75
|
-
"@babel/register": "^7.16.
|
|
73
|
+
"@babel/core": "^7.16.10",
|
|
74
|
+
"@babel/preset-env": "^7.16.11",
|
|
75
|
+
"@babel/register": "^7.16.9",
|
|
76
76
|
"@hebcal/solar-calc": "^1.1.0",
|
|
77
77
|
"@rollup/plugin-babel": "^5.3.0",
|
|
78
78
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
79
79
|
"@rollup/plugin-json": "^4.1.0",
|
|
80
|
-
"@rollup/plugin-node-resolve": "^13.1.
|
|
80
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
81
81
|
"ava": "^3.15.0",
|
|
82
|
-
"core-js": "^3.20.
|
|
83
|
-
"eslint": "^8.
|
|
82
|
+
"core-js": "^3.20.3",
|
|
83
|
+
"eslint": "^8.7.0",
|
|
84
84
|
"eslint-config-google": "^0.14.0",
|
|
85
85
|
"jsdoc": "^3.6.7",
|
|
86
86
|
"jsdoc-to-markdown": "^7.1.0",
|
|
87
87
|
"nyc": "^15.1.0",
|
|
88
|
-
"rollup": "^2.
|
|
88
|
+
"rollup": "^2.64.0",
|
|
89
89
|
"rollup-plugin-terser": "^7.0.2",
|
|
90
90
|
"tsd-jsdoc": "^2.5.0",
|
|
91
91
|
"ttag-cli": "^1.9.3"
|