forked from GitHubMirrors/silverbullet-icalendar
fix type error - v0.4.8 [skip-ci]
All checks were successful
Build SilverBullet Plug / build (push) Successful in 14s
All checks were successful
Build SilverBullet Plug / build (push) Successful in 14s
This commit is contained in:
2
PLUG.md
2
PLUG.md
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: Library/sstent/icalendar
|
||||
version: "0.4.7"
|
||||
version: "0.4.8"
|
||||
tags: meta/library
|
||||
files:
|
||||
- icalendar.plug.js
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "icalendar-plug",
|
||||
"version": "0.4.7",
|
||||
"version": "0.4.8",
|
||||
"nodeModulesDir": "auto",
|
||||
"tasks": {
|
||||
"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
@@ -1,5 +1,5 @@
|
||||
name: icalendar
|
||||
version: 0.4.7
|
||||
version: 0.4.8
|
||||
author: sstent
|
||||
index: icalendar.ts
|
||||
# Legacy SilverBullet permission name
|
||||
|
||||
@@ -3,7 +3,7 @@ import ICAL from "ical.js";
|
||||
import { RRule, RRuleSet } from "rrule";
|
||||
import { getUtcOffsetMs, resolveIanaName } from "./timezones.ts";
|
||||
|
||||
const VERSION = "0.4.7";
|
||||
const VERSION = "0.4.8";
|
||||
const CACHE_KEY = "icalendar:lastSync";
|
||||
|
||||
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
|
||||
const overrides = new Map<string, Set<string>>();
|
||||
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;
|
||||
if (recId && uid) {
|
||||
if (!overrides.has(uid)) overrides.set(uid, new Set());
|
||||
|
||||
Reference in New Issue
Block a user