@coozzy/cal-dav
Advanced tools
Comparing version 2.6.13 to 2.6.14
@@ -402,10 +402,16 @@ "use strict"; | ||
const xPropbaseRecurrenceId = event.component.getFirstProperty('x-propbase-recurrence-id'); | ||
if (recurrenceId && !xPropbaseRecurrenceId) { | ||
let recurrenceIdString = ''; | ||
if (recurrenceId) { | ||
recurrenceId.convertToZone(ICAL.Timezone.utcTimezone); | ||
recurrenceIdString = recurrenceId.toICALString(); | ||
if (!recurrenceIdString.includes('T')) { | ||
recurrenceIdString += 'T000000'; | ||
} | ||
} | ||
if (recurrenceIdString && !xPropbaseRecurrenceId) { | ||
event.component.removeAllProperties('recurrence-id'); | ||
event.component.addPropertyWithValue('RECURRENCE-ID', recurrenceId.toICALString()); | ||
} else if (recurrenceId) { | ||
recurrenceId.convertToZone(ICAL.Timezone.utcTimezone); | ||
event.component.addPropertyWithValue('RECURRENCE-ID', recurrenceIdString); | ||
} else if (recurrenceIdString) { | ||
event.component.removeAllProperties('x-propbase-recurrence-id'); | ||
event.component.addPropertyWithValue('X-PROPBASE-RECURRENCE-ID', recurrenceId.toICALString()); | ||
event.component.addPropertyWithValue('X-PROPBASE-RECURRENCE-ID', recurrenceIdString); | ||
} | ||
@@ -412,0 +418,0 @@ if (attendees.length) { |
{ | ||
"name": "@coozzy/cal-dav", | ||
"version": "2.6.13", | ||
"version": "2.6.14", | ||
"description": "Simple cal dav client.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -511,10 +511,17 @@ import * as ICAL from 'ical.js'; | ||
const xPropbaseRecurrenceId = event.component.getFirstProperty('x-propbase-recurrence-id'); | ||
if (recurrenceId && !xPropbaseRecurrenceId) { | ||
let recurrenceIdString = ''; | ||
if (recurrenceId) { | ||
recurrenceId.convertToZone(ICAL.Timezone.utcTimezone); | ||
recurrenceIdString = recurrenceId.toICALString(); | ||
if (!recurrenceIdString.includes('T')) { | ||
recurrenceIdString += 'T000000'; | ||
} | ||
} | ||
if (recurrenceIdString && !xPropbaseRecurrenceId) { | ||
event.component.removeAllProperties('recurrence-id'); | ||
event.component.addPropertyWithValue('RECURRENCE-ID', recurrenceId.toICALString()); | ||
} else if (recurrenceId) { | ||
recurrenceId.convertToZone(ICAL.Timezone.utcTimezone); | ||
event.component.addPropertyWithValue('RECURRENCE-ID', recurrenceIdString); | ||
} else if (recurrenceIdString) { | ||
event.component.removeAllProperties('x-propbase-recurrence-id'); | ||
event.component.addPropertyWithValue('X-PROPBASE-RECURRENCE-ID', recurrenceId.toICALString()); | ||
event.component.addPropertyWithValue('X-PROPBASE-RECURRENCE-ID', recurrenceIdString); | ||
} | ||
@@ -521,0 +528,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
138238
2678