@hebcal/leyning 8.0.1 → 8.1.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 +15 -1
- package/dist/bundle.js +1902 -133
- package/dist/bundle.min.js +2 -2
- package/dist/index.cjs +2972 -0
- package/dist/index.mjs +1899 -127
- package/leyning.d.ts +15 -6
- package/package.json +14 -16
- package/dist/index.js +0 -1199
package/leyning.d.ts
CHANGED
|
@@ -28,17 +28,26 @@ declare module '@hebcal/leyning' {
|
|
|
28
28
|
[key: string]: Aliyah;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
/** Name of the parsha hashavua or holiday */
|
|
32
|
+
export type LeyningNames = {
|
|
33
|
+
/** English */
|
|
34
|
+
en: string;
|
|
35
|
+
/** Hebrew (with nikud) */
|
|
36
|
+
he: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Transliterated English and Hebrew names of this parsha
|
|
41
|
+
* @param parsha untranslated name like 'Pinchas' or ['Pinchas'] or ['Matot','Masei']
|
|
42
|
+
*/
|
|
43
|
+
export function makeLeyningNames(parsha: string | string[]): LeyningNames;
|
|
44
|
+
|
|
31
45
|
/**
|
|
32
46
|
* Leyning for a parsha hashavua or holiday
|
|
33
47
|
*/
|
|
34
48
|
export type Leyning = {
|
|
35
49
|
/** Name of the parsha hashavua or holiday */
|
|
36
|
-
name:
|
|
37
|
-
/** English */
|
|
38
|
-
en: string;
|
|
39
|
-
/** Hebrew (with nikud) */
|
|
40
|
-
he: string;
|
|
41
|
-
};
|
|
50
|
+
name: LeyningNames;
|
|
42
51
|
/** An array of either 1 (regular) or 2 (doubled parsha). `undefined` for holiday readings */
|
|
43
52
|
parsha?: string[];
|
|
44
53
|
/** 1 for Bereshit, 2 for Noach, etc. `undefined` for holiday readings */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/leyning",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hebcal",
|
|
@@ -12,8 +12,13 @@
|
|
|
12
12
|
"triennial"
|
|
13
13
|
],
|
|
14
14
|
"description": "Torah Reading API for Parashat HaShavua and holidays",
|
|
15
|
-
"main": "./dist/index.
|
|
15
|
+
"main": "./dist/index.cjs",
|
|
16
16
|
"module": "./dist/index.mjs",
|
|
17
|
+
"type": "module",
|
|
18
|
+
"exports": {
|
|
19
|
+
"import": "./dist/index.mjs",
|
|
20
|
+
"require": "./dist/index.cjs"
|
|
21
|
+
},
|
|
17
22
|
"repository": {
|
|
18
23
|
"type": "git",
|
|
19
24
|
"url": "https://github.com/hebcal/hebcal-leyning.git"
|
|
@@ -31,36 +36,29 @@
|
|
|
31
36
|
"leyning-csv": "bin/leyning-csv"
|
|
32
37
|
},
|
|
33
38
|
"dependencies": {
|
|
34
|
-
"@hebcal/core": "^5.0.
|
|
39
|
+
"@hebcal/core": "^5.0.3"
|
|
35
40
|
},
|
|
36
41
|
"scripts": {
|
|
37
|
-
"build": "rollup -c",
|
|
42
|
+
"build:rollup": "rollup -c",
|
|
43
|
+
"build:json2js": "for f in src/*.json; do echo 'export default' > $f.js && cat $f >> $f.js; done",
|
|
44
|
+
"build": "npm run build:json2js && npm run build:rollup",
|
|
38
45
|
"prepublish": "npm run build",
|
|
39
46
|
"readme": "npx jsdoc2md dist/index.js",
|
|
40
47
|
"pretest": "npm run build",
|
|
41
48
|
"test": "ava"
|
|
42
49
|
},
|
|
43
50
|
"license": "BSD-2-Clause",
|
|
44
|
-
"ava": {
|
|
45
|
-
"require": [
|
|
46
|
-
"@babel/register"
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
51
|
"devDependencies": {
|
|
50
|
-
"@babel/core": "^7.23.5",
|
|
51
|
-
"@babel/preset-env": "^7.23.5",
|
|
52
|
-
"@babel/register": "^7.22.15",
|
|
53
|
-
"@rollup/plugin-babel": "^6.0.4",
|
|
54
52
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
55
|
-
"@rollup/plugin-json": "^6.0
|
|
53
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
56
54
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
57
55
|
"@rollup/plugin-terser": "^0.4.4",
|
|
58
56
|
"ava": "^6.0.1",
|
|
59
57
|
"core-js": "^3.34.0",
|
|
60
|
-
"eslint": "^8.
|
|
58
|
+
"eslint": "^8.56.0",
|
|
61
59
|
"eslint-config-google": "^0.14.0",
|
|
62
60
|
"jsdoc": "^4.0.2",
|
|
63
61
|
"jsdoc-to-markdown": "^8.0.0",
|
|
64
|
-
"rollup": "^4.
|
|
62
|
+
"rollup": "^4.9.1"
|
|
65
63
|
}
|
|
66
64
|
}
|