fix type error - v0.4.8 [skip-ci]
All checks were successful
Build SilverBullet Plug / build (push) Successful in 14s

This commit is contained in:
2026-02-25 05:49:23 -08:00
parent fc03f0e0de
commit 8710d92e3d
6 changed files with 19 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
--- ---
name: Library/sstent/icalendar name: Library/sstent/icalendar
version: "0.4.7" version: "0.4.8"
tags: meta/library tags: meta/library
files: files:
- icalendar.plug.js - icalendar.plug.js

View File

@@ -1,6 +1,6 @@
{ {
"name": "icalendar-plug", "name": "icalendar-plug",
"version": "0.4.7", "version": "0.4.8",
"nodeModulesDir": "auto", "nodeModulesDir": "auto",
"tasks": { "tasks": {
"sync-version": "deno run -A scripts/sync-version.ts", "sync-version": "deno run -A scripts/sync-version.ts",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
name: icalendar name: icalendar
version: 0.4.7 version: 0.4.8
author: sstent author: sstent
index: icalendar.ts index: icalendar.ts
# Legacy SilverBullet permission name # Legacy SilverBullet permission name

View File

@@ -3,7 +3,7 @@ import ICAL from "ical.js";
import { RRule, RRuleSet } from "rrule"; import { RRule, RRuleSet } from "rrule";
import { getUtcOffsetMs, resolveIanaName } from "./timezones.ts"; import { getUtcOffsetMs, resolveIanaName } from "./timezones.ts";
const VERSION = "0.4.7"; const VERSION = "0.4.8";
const CACHE_KEY = "icalendar:lastSync"; const CACHE_KEY = "icalendar:lastSync";
console.log(`[iCalendar] Plug script executing at top level (Version ${VERSION})`); console.log(`[iCalendar] Plug script executing at top level (Version ${VERSION})`);
@@ -328,7 +328,7 @@ async function fetchAndParseCalendar(source: any, windowDays = 365, displayTimez
// First pass: map of UID -> Set of ISO strings for RECURRENCE-ID exceptions // First pass: map of UID -> Set of ISO strings for RECURRENCE-ID exceptions
const overrides = new Map<string, Set<string>>(); const overrides = new Map<string, Set<string>>();
for (const vevent of vevents) { for (const vevent of vevents) {
const recId = vevent.getFirstPropertyValue("recurrence-id") as ICAL.Time | null; const recId = vevent.getFirstPropertyValue("recurrence-id") as any | null;
const uid = vevent.getFirstPropertyValue("uid") as string | null; const uid = vevent.getFirstPropertyValue("uid") as string | null;
if (recId && uid) { if (recId && uid) {
if (!overrides.has(uid)) overrides.set(uid, new Set()); if (!overrides.has(uid)) overrides.set(uid, new Set());