@hebcal/core 5.5.2 → 5.6.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/dist/bundle.js +104 -42
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +2 -2
- package/dist/bundle.min.js.map +1 -1
- package/dist/he.po.d.ts +0 -46
- package/dist/index.cjs +99 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +99 -37
- package/dist/index.mjs.map +1 -1
- package/dist/module.d.ts +17 -2
- package/dist/parshaName.d.ts +3 -0
- package/dist/pkgVersion.d.ts +1 -1
- package/dist/sedra.d.ts +16 -1
- package/package.json +16 -16
package/dist/module.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { GeoLocation } from '@hebcal/noaa';
|
|
|
4
4
|
export { GeoLocation, NOAACalculator } from '@hebcal/noaa';
|
|
5
5
|
|
|
6
6
|
/** DO NOT EDIT THIS AUTO-GENERATED FILE! */
|
|
7
|
-
declare const version = "5.
|
|
7
|
+
declare const version = "5.6.1";
|
|
8
8
|
|
|
9
9
|
/** Class representing Location */
|
|
10
10
|
declare class Location extends GeoLocation {
|
|
@@ -964,6 +964,8 @@ type SedraResult = {
|
|
|
964
964
|
* *Matot-Masei* it would be `[42, 43]`
|
|
965
965
|
*/
|
|
966
966
|
num?: number | number[];
|
|
967
|
+
/** The date of the Shabbat this parsha is read */
|
|
968
|
+
hdate: HDate;
|
|
967
969
|
};
|
|
968
970
|
/**
|
|
969
971
|
* Represents Parashah HaShavua for an entire Hebrew year
|
|
@@ -981,11 +983,13 @@ declare class Sedra {
|
|
|
981
983
|
constructor(hyear: number, il: boolean);
|
|
982
984
|
/**
|
|
983
985
|
* Returns the parsha (or parshiyot) read on Hebrew date
|
|
986
|
+
* @deprecated Use {@link lookup} instead
|
|
984
987
|
* @param hd Hebrew date or R.D. days
|
|
985
988
|
*/
|
|
986
989
|
get(hd: HDate | number): string[];
|
|
987
990
|
/**
|
|
988
991
|
* Looks up parsha for the date, then returns a translated or transliterated string
|
|
992
|
+
* @deprecated Use {@link lookup} instead
|
|
989
993
|
* @param hd Hebrew date or R.D. days
|
|
990
994
|
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale
|
|
991
995
|
*/
|
|
@@ -993,14 +997,25 @@ declare class Sedra {
|
|
|
993
997
|
/**
|
|
994
998
|
* Checks to see if this day would be a regular parasha HaShavua
|
|
995
999
|
* Torah reading or special holiday reading
|
|
1000
|
+
* @deprecated Use {@link lookup} instead
|
|
996
1001
|
* @param hd Hebrew date or R.D. days
|
|
997
1002
|
*/
|
|
998
1003
|
isParsha(hd: HDate | number): boolean;
|
|
999
1004
|
/**
|
|
1000
1005
|
* Returns the date that a parsha occurs
|
|
1001
1006
|
* or `null` if the parsha doesn't occur this year
|
|
1007
|
+
* @param parsha if a `string`, specified with Sephardic transliterations
|
|
1008
|
+
* like `'Noach'` or `'Matot-Masei'`. If an array, must be a 1- or 2-element
|
|
1009
|
+
* array such as `['Noach']` or `['Matot', 'Masei']`. If a `number`, should
|
|
1010
|
+
* be a 0-based parsha index (`0` for Bereshit, `1` for Noach) or a negative
|
|
1011
|
+
* number for a doubled parsha (e.g. `-21` for Vayakhel-Pekudei)
|
|
1002
1012
|
*/
|
|
1003
1013
|
find(parsha: number | string | string[]): HDate | null;
|
|
1014
|
+
/**
|
|
1015
|
+
* Returns the date that a parsha (or its doubled or undoubled counterpart)
|
|
1016
|
+
* occurs, or `null` if the parsha doesn't occur this year
|
|
1017
|
+
*/
|
|
1018
|
+
findContaining(parsha: number | string): HDate | null;
|
|
1004
1019
|
/**
|
|
1005
1020
|
* Returns the underlying annual sedra schedule.
|
|
1006
1021
|
* Used by `@hebcal/triennial`
|
|
@@ -1018,7 +1033,7 @@ declare class Sedra {
|
|
|
1018
1033
|
lookup(hd: HDate | number): SedraResult;
|
|
1019
1034
|
}
|
|
1020
1035
|
/**
|
|
1021
|
-
* The 54 parshiyot of the Torah as transilterated strings
|
|
1036
|
+
* The 54 parshiyot of the Torah as transilterated strings.
|
|
1022
1037
|
* parshiot[0] == 'Bereshit', parshiot[1] == 'Noach', parshiot[52] == "Ha'azinu".
|
|
1023
1038
|
* @readonly
|
|
1024
1039
|
* @type {string[]}
|
package/dist/pkgVersion.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** DO NOT EDIT THIS AUTO-GENERATED FILE! */
|
|
2
|
-
export declare const version = "5.
|
|
2
|
+
export declare const version = "5.6.1";
|
package/dist/sedra.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export type SedraResult = {
|
|
|
20
20
|
* *Matot-Masei* it would be `[42, 43]`
|
|
21
21
|
*/
|
|
22
22
|
num?: number | number[];
|
|
23
|
+
/** The date of the Shabbat this parsha is read */
|
|
24
|
+
hdate: HDate;
|
|
23
25
|
};
|
|
24
26
|
/**
|
|
25
27
|
* Represents Parashah HaShavua for an entire Hebrew year
|
|
@@ -37,11 +39,13 @@ export declare class Sedra {
|
|
|
37
39
|
constructor(hyear: number, il: boolean);
|
|
38
40
|
/**
|
|
39
41
|
* Returns the parsha (or parshiyot) read on Hebrew date
|
|
42
|
+
* @deprecated Use {@link lookup} instead
|
|
40
43
|
* @param hd Hebrew date or R.D. days
|
|
41
44
|
*/
|
|
42
45
|
get(hd: HDate | number): string[];
|
|
43
46
|
/**
|
|
44
47
|
* Looks up parsha for the date, then returns a translated or transliterated string
|
|
48
|
+
* @deprecated Use {@link lookup} instead
|
|
45
49
|
* @param hd Hebrew date or R.D. days
|
|
46
50
|
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale
|
|
47
51
|
*/
|
|
@@ -49,14 +53,25 @@ export declare class Sedra {
|
|
|
49
53
|
/**
|
|
50
54
|
* Checks to see if this day would be a regular parasha HaShavua
|
|
51
55
|
* Torah reading or special holiday reading
|
|
56
|
+
* @deprecated Use {@link lookup} instead
|
|
52
57
|
* @param hd Hebrew date or R.D. days
|
|
53
58
|
*/
|
|
54
59
|
isParsha(hd: HDate | number): boolean;
|
|
55
60
|
/**
|
|
56
61
|
* Returns the date that a parsha occurs
|
|
57
62
|
* or `null` if the parsha doesn't occur this year
|
|
63
|
+
* @param parsha if a `string`, specified with Sephardic transliterations
|
|
64
|
+
* like `'Noach'` or `'Matot-Masei'`. If an array, must be a 1- or 2-element
|
|
65
|
+
* array such as `['Noach']` or `['Matot', 'Masei']`. If a `number`, should
|
|
66
|
+
* be a 0-based parsha index (`0` for Bereshit, `1` for Noach) or a negative
|
|
67
|
+
* number for a doubled parsha (e.g. `-21` for Vayakhel-Pekudei)
|
|
58
68
|
*/
|
|
59
69
|
find(parsha: number | string | string[]): HDate | null;
|
|
70
|
+
/**
|
|
71
|
+
* Returns the date that a parsha (or its doubled or undoubled counterpart)
|
|
72
|
+
* occurs, or `null` if the parsha doesn't occur this year
|
|
73
|
+
*/
|
|
74
|
+
findContaining(parsha: number | string): HDate | null;
|
|
60
75
|
/**
|
|
61
76
|
* Returns the underlying annual sedra schedule.
|
|
62
77
|
* Used by `@hebcal/triennial`
|
|
@@ -74,7 +89,7 @@ export declare class Sedra {
|
|
|
74
89
|
lookup(hd: HDate | number): SedraResult;
|
|
75
90
|
}
|
|
76
91
|
/**
|
|
77
|
-
* The 54 parshiyot of the Torah as transilterated strings
|
|
92
|
+
* The 54 parshiyot of the Torah as transilterated strings.
|
|
78
93
|
* parshiot[0] == 'Bereshit', parshiot[1] == 'Noach', parshiot[52] == "Ha'azinu".
|
|
79
94
|
* @readonly
|
|
80
95
|
* @type {string[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.1",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Eyal Schachter (https://github.com/Scimonster)",
|
|
@@ -67,31 +67,31 @@
|
|
|
67
67
|
"temporal-polyfill": "^0.2.5"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@babel/core": "^7.
|
|
71
|
-
"@babel/preset-env": "^7.
|
|
72
|
-
"@babel/preset-typescript": "^7.
|
|
73
|
-
"@babel/register": "^7.25.
|
|
70
|
+
"@babel/core": "^7.26.0",
|
|
71
|
+
"@babel/preset-env": "^7.26.0",
|
|
72
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
73
|
+
"@babel/register": "^7.25.9",
|
|
74
74
|
"@rollup/plugin-babel": "^6.0.4",
|
|
75
|
-
"@rollup/plugin-commonjs": "^28.0.
|
|
75
|
+
"@rollup/plugin-commonjs": "^28.0.1",
|
|
76
76
|
"@rollup/plugin-json": "^6.1.0",
|
|
77
77
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
78
78
|
"@rollup/plugin-terser": "^0.4.4",
|
|
79
|
-
"@rollup/plugin-typescript": "^12.1.
|
|
80
|
-
"@types/jest": "^29.5.
|
|
81
|
-
"@types/node": "^22.7
|
|
82
|
-
"core-js": "^3.
|
|
83
|
-
"gts": "^
|
|
79
|
+
"@rollup/plugin-typescript": "^12.1.1",
|
|
80
|
+
"@types/jest": "^29.5.14",
|
|
81
|
+
"@types/node": "^22.8.7",
|
|
82
|
+
"core-js": "^3.39.0",
|
|
83
|
+
"gts": "^6.0.2",
|
|
84
84
|
"jest": "^29.7.0",
|
|
85
85
|
"quick-lru": "<=6.1.2",
|
|
86
|
-
"rollup": "^4.24.
|
|
86
|
+
"rollup": "^4.24.3",
|
|
87
87
|
"rollup-plugin-dts": "^6.1.1",
|
|
88
88
|
"ttag-cli": "^1.10.12",
|
|
89
|
-
"typedoc": "^0.26.
|
|
90
|
-
"typescript": "^5.6.
|
|
89
|
+
"typedoc": "^0.26.11",
|
|
90
|
+
"typescript": "^5.6.3"
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@hebcal/hdate": "^0.11.
|
|
93
|
+
"@hebcal/hdate": "^0.11.5",
|
|
94
94
|
"@hebcal/noaa": "^0.8.14",
|
|
95
|
-
"tslib": "^2.
|
|
95
|
+
"tslib": "^2.8.1"
|
|
96
96
|
}
|
|
97
97
|
}
|