@hebcal/core 5.0.2 → 5.0.4
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 +0 -7
- package/dist/bundle.js +507 -155
- package/dist/bundle.min.js +2 -2
- package/dist/{index.js → index.cjs} +506 -169
- package/dist/index.mjs +506 -169
- package/hebcal.d.ts +1 -6
- package/package.json +14 -7
package/hebcal.d.ts
CHANGED
|
@@ -820,12 +820,6 @@ declare module '@hebcal/core' {
|
|
|
820
820
|
* Gregorian date helper functions.
|
|
821
821
|
*/
|
|
822
822
|
export namespace greg {
|
|
823
|
-
/**
|
|
824
|
-
* Long names of the Gregorian months (1='January', 12='December')
|
|
825
|
-
* @readonly
|
|
826
|
-
* @type {string[]}
|
|
827
|
-
*/
|
|
828
|
-
const monthNames: string[];
|
|
829
823
|
/**
|
|
830
824
|
* Returns true if the Gregorian year is a leap year
|
|
831
825
|
* @param {number} year Gregorian year
|
|
@@ -983,6 +977,7 @@ declare module '@hebcal/core' {
|
|
|
983
977
|
*/
|
|
984
978
|
find(parsha: number | string | string[]): HDate;
|
|
985
979
|
getYear(): number;
|
|
980
|
+
getSedraArray(): any[];
|
|
986
981
|
/**
|
|
987
982
|
* R.D. date of the first Saturday on or after Rosh Hashana
|
|
988
983
|
*/
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/core",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Eyal Schachter (https://github.com/Scimonster)",
|
|
7
|
-
"Danny Sadinoff (https://github.com/dsadinoff)"
|
|
7
|
+
"Danny Sadinoff (https://github.com/dsadinoff)",
|
|
8
|
+
"Benny Powers (https://github.com/bennypowers)"
|
|
8
9
|
],
|
|
9
10
|
"keywords": [
|
|
10
11
|
"hebcal",
|
|
@@ -20,8 +21,13 @@
|
|
|
20
21
|
"zmanim"
|
|
21
22
|
],
|
|
22
23
|
"description": "A perpetual Jewish Calendar API",
|
|
23
|
-
"main": "./dist/index.
|
|
24
|
+
"main": "./dist/index.cjs",
|
|
24
25
|
"module": "./dist/index.mjs",
|
|
26
|
+
"type": "module",
|
|
27
|
+
"exports": {
|
|
28
|
+
"import": "./dist/index.mjs",
|
|
29
|
+
"require": "./dist/index.cjs"
|
|
30
|
+
},
|
|
25
31
|
"typings": "hebcal.d.ts",
|
|
26
32
|
"engines": {
|
|
27
33
|
"node": ">= 16.0.0"
|
|
@@ -40,9 +46,10 @@
|
|
|
40
46
|
],
|
|
41
47
|
"scripts": {
|
|
42
48
|
"build:rollup": "rollup -c",
|
|
43
|
-
"build": "npm run po2json && npm run build:rollup",
|
|
49
|
+
"build": "npm run po2json && npm run version && npm run build:rollup",
|
|
44
50
|
"prepublish": "npm run build",
|
|
45
|
-
"po2json": "node ./po2json.
|
|
51
|
+
"po2json": "node ./po2json.cjs po/*.po",
|
|
52
|
+
"version": "node ./version.cjs package.json src/pkgVersion.js",
|
|
46
53
|
"readme": "npx -p jsdoc-to-markdown jsdoc2md dist/index.js",
|
|
47
54
|
"pretest": "npm run build",
|
|
48
55
|
"lint": "eslint src",
|
|
@@ -66,7 +73,7 @@
|
|
|
66
73
|
"@babel/core": "^7.23.6",
|
|
67
74
|
"@babel/preset-env": "^7.23.6",
|
|
68
75
|
"@babel/register": "^7.22.15",
|
|
69
|
-
"@hebcal/hdate": "^0.9.
|
|
76
|
+
"@hebcal/hdate": "^0.9.1",
|
|
70
77
|
"@hebcal/noaa": "^0.8.11",
|
|
71
78
|
"@rollup/plugin-babel": "^6.0.4",
|
|
72
79
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
@@ -80,7 +87,7 @@
|
|
|
80
87
|
"jsdoc": "^4.0.2",
|
|
81
88
|
"jsdoc-to-markdown": "^8.0.0",
|
|
82
89
|
"nyc": "^15.1.0",
|
|
83
|
-
"rollup": "^4.9.
|
|
90
|
+
"rollup": "^4.9.1",
|
|
84
91
|
"ttag-cli": "^1.10.10"
|
|
85
92
|
}
|
|
86
93
|
}
|