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 3, 2024
1 parent 3209b32 commit 92c9679
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,24 @@
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"bootstrap5-autocomplete": "^1.1.27",
"bootstrap5-autocomplete": "^1.1.28",
"csv-parse": "^5.5.6",
"eslint": "^9.6.0",
"eslint-plugin-n": "^17.9.0",
"globals": "^15.7.0",
"globals": "^15.8.0",
"rollup": "^4.18.0"
},
"dependencies": {
"@hebcal/core": "^5.4.6",
"@hebcal/geo-sqlite": "^5.0.5",
"@hebcal/hdate": "^0.10.1",
"@hebcal/icalendar": "^5.1.0",
"@hebcal/icalendar": "^5.1.1",
"@hebcal/learning": "^5.0.8",
"@hebcal/leyning": "^8.2.2",
"@hebcal/locales": "^5.0.1",
"@hebcal/rest-api": "^5.0.5",
"@hebcal/rest-api": "^5.1.0",
"@hebcal/triennial": "^5.0.6",
"better-sqlite3": "^11.1.1",
"better-sqlite3": "^11.1.2",
"dayjs": "^1.11.11",
"ejs": "^3.1.10",
"emoji-flag": "^1.1.0",
Expand All @@ -79,7 +79,7 @@
"koa-timeout-v2": "^1.0.0",
"maxmind": "^4.3.20",
"murmurhash3": "^0.5.0",
"mysql2": "^3.10.1",
"mysql2": "^3.10.2",
"nodemailer": "^6.9.14",
"nodemailer-html-to-text": "^3.2.0",
"pdfkit": "^0.15.0",
Expand Down
2 changes: 1 addition & 1 deletion src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ export function getNumYears(options) {
* @private
* @param {CalOptions} options
* @param {Object.<string,string>} query
* @return {Object.<string,string>}
* @return {Object.<string,any>}
*/
export function makeIcalOpts(options, query) {
const icalOpts = {...options};
Expand Down
6 changes: 5 additions & 1 deletion src/hebcal-download.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ export async function hebcalDownload(ctx) {
}
ctx.response.type = 'text/calendar; charset=utf-8';
icalOpt.dtstamp = IcalEvent.makeDtstamp(new Date());
const events2 = events.length > 0 ? events : makeDummyEvent(ctx);
const zeroEvents = events.length === 0;
const events2 = zeroEvents ? makeDummyEvent(ctx) : events;
if (zeroEvents) {
icalOpt.publishedTTL = false;
}
const icals = events2.map((ev) => new IcalEvent(ev, icalOpt));
ctx.body = await icalEventsToString(icals, icalOpt);
} else if (csv) {
Expand Down
6 changes: 5 additions & 1 deletion src/yahrzeit.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,11 @@ export async function yahrzeitDownload(ctx) {
};
const icalOpt = makeIcalOpts(opts, query);
icalOpt.dtstamp = IcalEvent.makeDtstamp(new Date());
const events2 = events.length > 0 ? events : makeDummyEvent(ctx);
const zeroEvents = events.length === 0;
const events2 = zeroEvents ? makeDummyEvent(ctx) : events;
if (zeroEvents) {
icalOpt.publishedTTL = false;
}
const icals = events2.map((ev) => new IcalEvent(ev, icalOpt));
ctx.body = await icalEventsToString(icals, icalOpt);
ctx.state.trace.set('eventsToIcalendar-end', Date.now());
Expand Down

0 comments on commit 92c9679

Please sign in to comment.