@sprucelabs/spruce-calendar-components 20.3.3 → 20.4.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.
@@ -193,7 +193,7 @@ export default class RemoteEventStore {
193
193
  delete this.pendingEvent;
194
194
  }
195
195
  else {
196
- yield this.client.emitAndFlattenResponses('calendar.delete-calendar-event::v2021_05_19', {
196
+ yield this.client.emitAndFlattenResponses('calendar.cancel-calendar-event::v2021_05_19', {
197
197
  target: {
198
198
  locationId: this.locationId,
199
199
  calendarEventId: id,
@@ -98,7 +98,7 @@ export default class CalendarViewController extends CoreCalendarViewController {
98
98
  return draft;
99
99
  }
100
100
  removeDraftEvent(id) {
101
- var _a, _b;
101
+ var _a, _b, _c;
102
102
  return __awaiter(this, void 0, void 0, function* () {
103
103
  this.removeEvent(id);
104
104
  yield ((_a = this.draftRemovedHandler) === null || _a === void 0 ? void 0 : _a.call(this));
@@ -106,7 +106,9 @@ export default class CalendarViewController extends CoreCalendarViewController {
106
106
  yield ((_b = this.remoteEventStore) === null || _b === void 0 ? void 0 : _b.deleteEvent(id));
107
107
  // eslint-disable-next-line no-empty
108
108
  }
109
- catch (_c) { }
109
+ catch (err) {
110
+ console.error((_c = err.stack) !== null && _c !== void 0 ? _c : err.message);
111
+ }
110
112
  });
111
113
  }
112
114
  addDraftEventFromClick(options) {
@@ -176,7 +176,7 @@ class RemoteEventStore {
176
176
  delete this.pendingEvent;
177
177
  }
178
178
  else {
179
- await this.client.emitAndFlattenResponses('calendar.delete-calendar-event::v2021_05_19', {
179
+ await this.client.emitAndFlattenResponses('calendar.cancel-calendar-event::v2021_05_19', {
180
180
  target: {
181
181
  locationId: this.locationId,
182
182
  calendarEventId: id,
@@ -90,14 +90,16 @@ class CalendarViewController extends heartwood_view_controllers_1.CalendarViewCo
90
90
  return draft;
91
91
  }
92
92
  async removeDraftEvent(id) {
93
- var _a, _b;
93
+ var _a, _b, _c;
94
94
  this.removeEvent(id);
95
95
  await ((_a = this.draftRemovedHandler) === null || _a === void 0 ? void 0 : _a.call(this));
96
96
  try {
97
97
  await ((_b = this.remoteEventStore) === null || _b === void 0 ? void 0 : _b.deleteEvent(id));
98
98
  // eslint-disable-next-line no-empty
99
99
  }
100
- catch (_c) { }
100
+ catch (err) {
101
+ console.error((_c = err.stack) !== null && _c !== void 0 ? _c : err.message);
102
+ }
101
103
  }
102
104
  async addDraftEventFromClick(options) {
103
105
  const { personId, dateTimeMs } = options;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-calendar-components",
3
3
  "description": "Calendar components for working with calendars and Sprucebot.",
4
- "version": "20.3.3",
4
+ "version": "20.4.1",
5
5
  "skill": {
6
6
  "namespace": "calendar"
7
7
  },