@hebcal/core 5.5.1 → 5.6.0
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 +101 -44
- 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 +5 -0
- package/dist/index.cjs +96 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +96 -39
- package/dist/index.mjs.map +1 -1
- package/dist/module.d.ts +1591 -0
- package/dist/parshaName.d.ts +3 -0
- package/dist/pkgVersion.d.ts +1 -1
- package/dist/sedra.d.ts +11 -1
- package/package.json +19 -18
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.0";
|
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,6 +53,7 @@ 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;
|
|
@@ -57,6 +62,11 @@ export declare class Sedra {
|
|
|
57
62
|
* or `null` if the parsha doesn't occur this year
|
|
58
63
|
*/
|
|
59
64
|
find(parsha: number | string | string[]): HDate | null;
|
|
65
|
+
/**
|
|
66
|
+
* Returns the date that a parsha (or its doubled or undoubled counterpart)
|
|
67
|
+
* occurs, or `null` if the parsha doesn't occur this year
|
|
68
|
+
*/
|
|
69
|
+
findContaining(parsha: number | string): HDate | null;
|
|
60
70
|
/**
|
|
61
71
|
* Returns the underlying annual sedra schedule.
|
|
62
72
|
* Used by `@hebcal/triennial`
|
|
@@ -74,7 +84,7 @@ export declare class Sedra {
|
|
|
74
84
|
lookup(hd: HDate | number): SedraResult;
|
|
75
85
|
}
|
|
76
86
|
/**
|
|
77
|
-
* The 54 parshiyot of the Torah as transilterated strings
|
|
87
|
+
* The 54 parshiyot of the Torah as transilterated strings.
|
|
78
88
|
* parshiot[0] == 'Bereshit', parshiot[1] == 'Noach', parshiot[52] == "Ha'azinu".
|
|
79
89
|
* @readonly
|
|
80
90
|
* @type {string[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.0",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Eyal Schachter (https://github.com/Scimonster)",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"exports": {
|
|
28
28
|
"import": "./dist/index.mjs",
|
|
29
29
|
"require": "./dist/index.cjs",
|
|
30
|
-
"types": "./dist/
|
|
30
|
+
"types": "./dist/module.d.ts"
|
|
31
31
|
},
|
|
32
|
-
"typings": "./dist/
|
|
32
|
+
"typings": "./dist/module.d.ts",
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">= 16.0.0"
|
|
35
35
|
},
|
|
@@ -67,30 +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.
|
|
82
|
-
"core-js": "^3.
|
|
83
|
-
"gts": "^
|
|
79
|
+
"@rollup/plugin-typescript": "^12.1.1",
|
|
80
|
+
"@types/jest": "^29.5.14",
|
|
81
|
+
"@types/node": "^22.8.4",
|
|
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
|
+
"rollup-plugin-dts": "^6.1.1",
|
|
87
88
|
"ttag-cli": "^1.10.12",
|
|
88
|
-
"typedoc": "^0.26.
|
|
89
|
-
"typescript": "^5.6.
|
|
89
|
+
"typedoc": "^0.26.10",
|
|
90
|
+
"typescript": "^5.6.3"
|
|
90
91
|
},
|
|
91
92
|
"dependencies": {
|
|
92
|
-
"@hebcal/hdate": "^0.11.
|
|
93
|
+
"@hebcal/hdate": "^0.11.5",
|
|
93
94
|
"@hebcal/noaa": "^0.8.14",
|
|
94
|
-
"tslib": "^2.
|
|
95
|
+
"tslib": "^2.8.0"
|
|
95
96
|
}
|
|
96
97
|
}
|