kiosko-plugin-calendar 0.1.0 → 0.2.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -8045,7 +8045,7 @@ var events = defineSource({
8045
8045
  const ICAL = await loadIcal();
8046
8046
  if (!ICAL) throw new Error("the optional dependency ical.js is not installed (npm install ical.js)");
8047
8047
  const timeoutMs = Math.max(1e3, Math.round(ctx.timeoutMs * 2 / 3));
8048
- const feeds = await fetchAll(urls, { dir: ctx.dataDir, timeoutMs, signal: ctx.signal, log: ctx.log });
8048
+ const feeds = await fetchAll(urls, { dir: ctx.cacheDir || ctx.dataDir, timeoutMs, signal: ctx.signal, log: ctx.log });
8049
8049
  if (!feeds.length) throw new Error(`${urls.length > 1 ? "no calendar" : "the calendar"} could be read, and there is no copy on disk`);
8050
8050
  const from = dayStart(ctx.now);
8051
8051
  const until = dayStart(ctx.now, o.horizonDays + 1) - 1;
@@ -8195,7 +8195,7 @@ var agenda = defineWidget({
8195
8195
  var index_default = definePlugin({
8196
8196
  id: "calendar",
8197
8197
  name: { en: "Calendar", es: "Calendario" },
8198
- version: "0.1.0",
8198
+ version: "0.2.1",
8199
8199
  description: {
8200
8200
  en: "Meetings from published ICS calendars (Outlook/Teams, Google\u2026): a countdown to the next one and the agenda of the next days.",
8201
8201
  es: "Reuniones de calendarios ICS publicados (Outlook/Teams, Google\u2026): una cuenta atr\xE1s hasta la siguiente y la agenda de los pr\xF3ximos d\xEDas."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kiosko-plugin-calendar",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Meetings from published ICS calendars (Outlook/Teams, Google, iCloud…) as a shared source, a big countdown to the next one and the agenda of today and tomorrow.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -45,7 +45,7 @@
45
45
  "prepublishOnly": "npm run build"
46
46
  },
47
47
  "devDependencies": {
48
- "@kiosko/sdk": "^0.1.0",
48
+ "@kiosko/sdk": "^0.2.0",
49
49
  "@types/node": "^24.0.0",
50
50
  "esbuild": "^0.25.0",
51
51
  "ical.js": "^2.2.1",