Skip to content

Commit

Permalink
Pass Israel/Diaspora boolean to DailyLearning
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed May 23, 2024
1 parent 19ce883 commit c67ac25
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 87 deletions.
156 changes: 78 additions & 78 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hebcal/core",
"version": "5.3.12",
"version": "5.3.13",
"author": "Michael J. Radwin (https://github.com/mjradwin)",
"contributors": [
"Eyal Schachter (https://github.com/Scimonster)",
Expand Down Expand Up @@ -42,7 +42,6 @@
},
"files": [
"dist",
"hebcal.d.ts",
"po"
],
"scripts": {
Expand Down Expand Up @@ -74,10 +73,10 @@
"@babel/core": "^7.24.5",
"@babel/preset-env": "^7.24.5",
"@babel/register": "^7.23.7",
"@hebcal/hdate": "^0.9.3",
"@hebcal/hdate": "^0.9.6",
"@hebcal/noaa": "^0.8.14",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-commonjs": "^25.0.8",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
Expand All @@ -90,7 +89,7 @@
"jsdoc-to-markdown": "^8.0.1",
"nyc": "^15.1.0",
"quick-lru": "^7.0.0",
"rollup": "^4.17.2",
"rollup": "^4.18.0",
"ttag-cli": "^1.10.12",
"typescript": "^5.4.5"
},
Expand Down
7 changes: 4 additions & 3 deletions src/DailyLearning.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ export class DailyLearning {
* is no learning from this calendar on this date.
* @param {string} name
* @param {HDate} hd
* @return {Event}
* @param {boolean} il
* @return {Event | null}
*/
static lookup(name, hd) {
static lookup(name, hd, il) {
const fn = cals.get(name);
if (typeof fn === 'function') {
return fn(hd);
return fn(hd, il);
}
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion src/hebcal.js
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ export class HebrewCalendar {
const name = key === 'yerushalmi' ?
(val === 2 ? 'yerushalmi-schottenstein' : 'yerushalmi-vilna') :
key;
const learningEv = DailyLearning.lookup(name, hd);
const learningEv = DailyLearning.lookup(name, hd, il);
if (learningEv) {
evts.push(learningEv);
}
Expand Down

0 comments on commit c67ac25

Please sign in to comment.