Skip to content

Commit

Permalink
Remove staticHols now that staticHolidays has been ported from JS to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed May 31, 2024
1 parent 8367de1 commit dafa756
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 330 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hebcal/core",
"version": "5.4.0",
"version": "5.4.1",
"author": "Michael J. Radwin (https://github.com/mjradwin)",
"contributors": [
"Eyal Schachter (https://github.com/Scimonster)",
Expand Down Expand Up @@ -82,7 +82,7 @@
"typescript": "^5.4.5"
},
"dependencies": {
"@hebcal/hdate": "^0.9.10",
"@hebcal/hdate": "^0.9.13",
"@hebcal/noaa": "^0.8.14",
"tslib": "^2.6.2"
}
Expand Down
6 changes: 3 additions & 3 deletions src/getStartAndEnd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function getStartAndEnd(options: CalOptions): number[] {
}
}

function getMonth(options: CalOptions) {
function getMonth(options: CalOptions): number {
if (options.month) {
if (options.isHebrewYear) {
return HDate.monthNum(options.month);
Expand All @@ -59,7 +59,7 @@ function getMonth(options: CalOptions) {
return NaN;
}

function startEndGregorian(theMonth: number, theYear: number, numYears: number) {
function startEndGregorian(theMonth: number, theYear: number, numYears: number): number[] {
const gregMonth = theMonth ? theMonth - 1 : 0;
const startGreg = new Date(theYear, gregMonth, 1);
if (theYear < 100) {
Expand All @@ -80,7 +80,7 @@ function startEndGregorian(theMonth: number, theYear: number, numYears: number)
return [startAbs, endAbs];
}

function startEndHebrew(theMonth: number, theYear: number, numYears: number) {
function startEndHebrew(theMonth: number, theYear: number, numYears: number): number[] {
const startDate = new HDate(1, theMonth || TISHREI, theYear);
let startAbs = startDate.abs();
const endAbs = theMonth ?
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ export {holidayDesc} from './staticHolidays';
export {DailyLearning} from './DailyLearning';
export {HebrewCalendar} from './hebcal.js';
export {version} from './pkgVersion.js';
export {HolidayDesc} from './staticHols';
323 changes: 0 additions & 323 deletions src/staticHols.ts

This file was deleted.

0 comments on commit dafa756

Please sign in to comment.