forked from GitHubMirrors/silverbullet-icalendar
Fix: Add requiredPermissions for legacy SB versions (v0.3.19)
All checks were successful
Build SilverBullet Plug / build (push) Successful in 25s
All checks were successful
Build SilverBullet Plug / build (push) Successful in 25s
This commit is contained in:
4
PLUG.md
4
PLUG.md
@@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
name: Library/sstent/icalendar
|
name: Library/sstent/icalendar
|
||||||
version: 0.3.18
|
version: 0.3.19
|
||||||
tags: meta/library
|
tags: meta/library
|
||||||
files:
|
files:
|
||||||
- icalendar.plug.js
|
- icalendar.plug.js
|
||||||
---
|
---
|
||||||
iCalendar sync plug for SilverBullet.
|
iCalendar sync plug for SilverBullet.
|
||||||
File diff suppressed because one or more lines are too long
@@ -1,7 +1,11 @@
|
|||||||
name: Library/sstent/icalendar
|
name: Library/sstent/icalendar
|
||||||
version: 0.3.18
|
version: 0.3.19
|
||||||
author: sstent
|
author: sstent
|
||||||
index: icalendar.ts
|
index: icalendar.ts
|
||||||
|
# Legacy SilverBullet permission name
|
||||||
|
requiredPermissions:
|
||||||
|
- fetch
|
||||||
|
# Modern SilverBullet permission name
|
||||||
permissions:
|
permissions:
|
||||||
- fetch
|
- fetch
|
||||||
- http
|
- http
|
||||||
@@ -27,4 +31,4 @@ functions:
|
|||||||
path: icalendar.ts:showVersion
|
path: icalendar.ts:showVersion
|
||||||
command:
|
command:
|
||||||
name: "iCalendar: Version"
|
name: "iCalendar: Version"
|
||||||
priority: -2
|
priority: -2
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { clientStore, config, datastore, editor, index } from "@silverbulletmd/silverbullet/syscalls";
|
import { clientStore, config, datastore, editor, index } from "@silverbulletmd/silverbullet/syscalls";
|
||||||
import { convertIcsCalendar } from "https://esm.sh/ts-ics@2.4.0";
|
import { convertIcsCalendar } from "https://esm.sh/ts-ics@2.4.0";
|
||||||
|
|
||||||
const VERSION = "0.3.18";
|
const VERSION = "0.3.19";
|
||||||
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})`);
|
||||||
|
|||||||
Reference in New Issue
Block a user