@coffer-org/plugin-transit 1.3.2 → 1.4.0
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.
- package/dist/index.js +0 -1
- package/dist/runtime/sync.js +2 -13
- package/dist/schema.js +0 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -16,7 +16,6 @@ export default definePlugin({
|
|
|
16
16
|
settings: defineSettings({
|
|
17
17
|
label: 'transit.settings.label',
|
|
18
18
|
fields: [
|
|
19
|
-
field.boolean({ key: 'use_nextcloud', label: 'transit.settings.use_nextcloud' }),
|
|
20
19
|
field.string({ key: 'caldav_calendar', label: 'transit.settings.caldav_calendar' }),
|
|
21
20
|
field.string({ key: 'caldav_url', label: 'transit.settings.caldav_url' }),
|
|
22
21
|
field.string({ key: 'caldav_username', label: 'transit.settings.caldav_username' }),
|
package/dist/runtime/sync.js
CHANGED
|
@@ -63,19 +63,8 @@ async function runOnce() {
|
|
|
63
63
|
const calendar = pluginSettings['caldav_calendar'];
|
|
64
64
|
if (!calendar)
|
|
65
65
|
throw new Error('[transit-sync] caldav_calendar is required but not set');
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
if (pluginSettings['use_nextcloud']) {
|
|
69
|
-
const nc = await getPluginSettings('nextcloud');
|
|
70
|
-
if (!nc['nextcloud_url'])
|
|
71
|
-
throw new Error('[transit-sync] nextcloud_url not configured');
|
|
72
|
-
principal = String(nc['login'] ?? '');
|
|
73
|
-
password = String(nc['password'] ?? '');
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
principal = pluginSettings['caldav_username'] ?? '';
|
|
77
|
-
password = pluginSettings['caldav_password'] ?? '';
|
|
78
|
-
}
|
|
66
|
+
const principal = pluginSettings['caldav_username'] ?? '';
|
|
67
|
+
const password = pluginSettings['caldav_password'] ?? '';
|
|
79
68
|
const settings = resolveDavSettings(calendar, { principal, password });
|
|
80
69
|
const ops = new WebDavClient({
|
|
81
70
|
collectionUrl: settings.collectionUrl,
|
package/dist/schema.js
CHANGED
|
@@ -7786,10 +7786,6 @@ var src_default = definePlugin({
|
|
|
7786
7786
|
settings: defineSettings({
|
|
7787
7787
|
label: "transit.settings.label",
|
|
7788
7788
|
fields: [
|
|
7789
|
-
field.boolean({
|
|
7790
|
-
key: "use_nextcloud",
|
|
7791
|
-
label: "transit.settings.use_nextcloud"
|
|
7792
|
-
}),
|
|
7793
7789
|
field.string({
|
|
7794
7790
|
key: "caldav_calendar",
|
|
7795
7791
|
label: "transit.settings.caldav_calendar"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coffer-org/plugin-transit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@coffer-org/sdk": "^1.4.0",
|
|
29
|
-
"@coffer-org/server": "^1.
|
|
29
|
+
"@coffer-org/server": "^1.6.0",
|
|
30
30
|
"@coffer-org/dav": "^1.4.0"
|
|
31
31
|
},
|
|
32
32
|
"coffer": {
|