Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Jul 15, 2024
1 parent ee1b0eb commit d11417b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"url": "https://github.com/hebcal/hebcal-rest-api/issues"
},
"dependencies": {
"@hebcal/core": "^5.4.9",
"@hebcal/core": "^5.4.10",
"@hebcal/leyning": "^8.2.2",
"@hebcal/triennial": "^5.1.1"
},
Expand Down
3 changes: 1 addition & 2 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ export type LocationPlainObj = {

const LOC_FIELDS = ['elevation', 'admin1', 'asciiname', 'geo', 'zip', 'state', 'stateName', 'geonameid'];


export const holidayDescription: StringMap = holidayDescription0 as StringMap;
export const countryNames: StringMap = countryNames0 as StringMap
export const countryNames: StringMap = countryNames0 as StringMap;

/**
* Converts a @hebcal/core `Location` to a plain JS object.
Expand Down
5 changes: 3 additions & 2 deletions src/csv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ export function eventToCsv(ev: Event, options: RestApiOptions): string {
const mask = ev.getFlags();
if (timed && typeof options.location === 'object') {
const locationName = options.location.getShortName()!;
const comma = locationName.indexOf(',');
loc = (comma === -1) ? locationName : locationName.substring(0, comma);
if (locationName) {
loc = locationName;
}
} else {
const category = CATEGORY[getEventCategories(ev)[0]];
if (typeof category === 'string') {
Expand Down

0 comments on commit d11417b

Please sign in to comment.