@coozzy/cal-dav
Advanced tools
Comparing version 2.4.15 to 2.4.16
@@ -143,8 +143,7 @@ "use strict"; | ||
event.summary = title; | ||
// event.description = description; | ||
// Set the description with ALTREP parameter (base64 encoded HTML) | ||
// Set the description with ALTREP parameter (HTML) | ||
const descriptionProperty = new ICAL.Property('description'); | ||
descriptionProperty.setValue(description); | ||
descriptionProperty.setParameter('ALTREP', 'data:text/html,' + description); | ||
descriptionProperty.setParameter('ALTREP', 'data:text/html,' + (description || '')); | ||
event.component.addProperty(descriptionProperty); | ||
@@ -396,6 +395,11 @@ event.location = location; | ||
event.summary = title; | ||
event.description = description || ''; | ||
event.location = location || ''; | ||
event.startDate = new ICAL.Time(startDate); | ||
event.endDate = new ICAL.Time(endDate); | ||
// Set the description with ALTREP parameter (HTML) | ||
const descriptionProperty = new ICAL.Property('description'); | ||
descriptionProperty.setValue(description); | ||
descriptionProperty.setParameter('ALTREP', 'data:text/html,' + (description || '')); | ||
event.component.addProperty(descriptionProperty); | ||
if (alarms !== null && alarms !== void 0 && alarms.length) { | ||
@@ -402,0 +406,0 @@ for (const alarm of alarms) { |
{ | ||
"name": "@coozzy/cal-dav", | ||
"version": "2.4.15", | ||
"version": "2.4.16", | ||
"description": "Simple cal dav client.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -214,8 +214,7 @@ import * as ICAL from 'ical.js'; | ||
event.summary = title; | ||
// event.description = description; | ||
// Set the description with ALTREP parameter (base64 encoded HTML) | ||
// Set the description with ALTREP parameter (HTML) | ||
const descriptionProperty = new ICAL.Property('description'); | ||
descriptionProperty.setValue(description); | ||
descriptionProperty.setParameter('ALTREP', 'data:text/html,' +description); | ||
descriptionProperty.setParameter('ALTREP', 'data:text/html,' + (description || '')); | ||
event.component.addProperty(descriptionProperty); | ||
@@ -503,3 +502,2 @@ | ||
event.summary = title; | ||
event.description = description || ''; | ||
event.location = location || ''; | ||
@@ -509,2 +507,8 @@ event.startDate = new ICAL.Time(startDate); | ||
// Set the description with ALTREP parameter (HTML) | ||
const descriptionProperty = new ICAL.Property('description'); | ||
descriptionProperty.setValue(description); | ||
descriptionProperty.setParameter('ALTREP', 'data:text/html,' +( description || '')); | ||
event.component.addProperty(descriptionProperty); | ||
if (alarms?.length) { | ||
@@ -511,0 +515,0 @@ for (const alarm of alarms) { |
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
126042
2473