@ebarooni/capacitor-calendar 8.12.0 → 8.12.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.
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
`@ebarooni/capacitor-calendar` ships an official [MCP](https://modelcontextprotocol.io) server. It gives AI coding assistants accurate, grounded knowledge of the plugin.
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
docker run --rm -d --name capacitor-calendar-mcp -p 8080:8080 ghcr.io/ebarooni/capacitor-calendar-mcp:1.
|
|
80
|
+
docker run --rm -d --name capacitor-calendar-mcp -p 8080:8080 ghcr.io/ebarooni/capacitor-calendar-mcp:1.3.0
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
See [`mcp/README.md`](mcp/README.md) for client configuration and full details.
|
|
@@ -37,20 +37,20 @@ struct ModifyReminderInput {
|
|
|
37
37
|
self.priority = call.getInt("priority")
|
|
38
38
|
self.isCompleted = call.getBool("isCompleted")
|
|
39
39
|
|
|
40
|
-
self.startDatePresent =
|
|
40
|
+
self.startDatePresent = Self.isPresent(call, "startDate")
|
|
41
41
|
self.startDate = call.getDouble("startDate")
|
|
42
|
-
self.dueDatePresent =
|
|
42
|
+
self.dueDatePresent = Self.isPresent(call, "dueDate")
|
|
43
43
|
self.dueDate = call.getDouble("dueDate")
|
|
44
|
-
self.completionDatePresent =
|
|
44
|
+
self.completionDatePresent = Self.isPresent(call, "completionDate")
|
|
45
45
|
self.completionDate = call.getDouble("completionDate")
|
|
46
|
-
self.notesPresent =
|
|
46
|
+
self.notesPresent = Self.isPresent(call, "notes")
|
|
47
47
|
self.notes = call.getString("notes")
|
|
48
|
-
self.urlPresent =
|
|
48
|
+
self.urlPresent = Self.isPresent(call, "url")
|
|
49
49
|
self.url = call.getString("url")
|
|
50
|
-
self.locationPresent =
|
|
50
|
+
self.locationPresent = Self.isPresent(call, "location")
|
|
51
51
|
self.location = call.getString("location")
|
|
52
52
|
|
|
53
|
-
self.recurrencePresent =
|
|
53
|
+
self.recurrencePresent = Self.isPresent(call, "recurrence")
|
|
54
54
|
if let recurrence = call.getObject("recurrence") {
|
|
55
55
|
guard recurrence["frequency"] != nil else {
|
|
56
56
|
throw PluginError.missingFrequency
|
|
@@ -67,11 +67,16 @@ struct ModifyReminderInput {
|
|
|
67
67
|
self.end = ImplementationHelper.double(from: recurrence["end"])
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
self.alertsPresent =
|
|
70
|
+
self.alertsPresent = Self.isPresent(call, "alerts")
|
|
71
71
|
self.alerts = call.getArray("alerts") as? [Double]
|
|
72
72
|
self.commit = call.getBool("commit", true)
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
/// True when JS sent the key, also when its value is `null`.
|
|
76
|
+
private static func isPresent(_ call: CAPPluginCall, _ key: String) -> Bool {
|
|
77
|
+
return call.options?[key] != nil
|
|
78
|
+
}
|
|
79
|
+
|
|
75
80
|
func getId() -> String {
|
|
76
81
|
return id
|
|
77
82
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ebarooni/capacitor-calendar",
|
|
3
|
-
"version": "8.12.
|
|
3
|
+
"version": "8.12.1",
|
|
4
4
|
"description": "A Capacitor plugin for native calendar events on iOS and Android (with reminders on iOS), and .ics event creation on the web.",
|
|
5
5
|
"author": "Ehsan Barooni",
|
|
6
6
|
"license": "MIT",
|