Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@coozzy/cal-dav

Package Overview
Dependencies
Maintainers
3
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coozzy/cal-dav - npm Package Compare versions

Comparing version 2.4.4 to 2.4.5

3

dist/index.d.ts

@@ -6,3 +6,3 @@ import * as ICAL from 'ical.js';

import { EventWithExceptions } from 'ical.js';
import { EventFrequencyCalendarService } from "../types/calendar";
import { EventFrequencyCalendarService } from '../types/calendar';
export interface CalDavClient {

@@ -42,2 +42,3 @@ getEventByUrl(eventUrl: string): Promise<ICAL.Event | undefined>;

private validateRecurrence;
private EventFrequencyCalendarServiceToFrequencyValues;
private addFrequency;

@@ -44,0 +45,0 @@ private eventIncludedInDates;

@@ -121,3 +121,3 @@ "use strict";

const calendar = new ICAL.Component('vcalendar');
let event = new ICAL.Event(calendar);
const event = new ICAL.Event(calendar);
event.component.addPropertyWithValue('PRODID', prodid);

@@ -435,20 +435,2 @@ event.component.addPropertyWithValue('BEGIN', 'VEVENT');

}
// private extendEventWithRecurrenceDetails(iCalEvent: EventWithExceptions, frequency: EventFrequencyCalendarService, until?: TimeJsonData, count?: number): ICAL.EventWithExceptions {
// const frequencyValue = this.EventFrequencyCalendarServiceToFrequencyValues(frequency);
// console.log('ok1 ' + frequencyValue);
// if (!frequencyValue) {
// return iCalEvent;
// }
// iCalEvent.frequency = frequencyValue;
// if (count) {
// iCalEvent.countRecurrence = count;
// }
// if (until) {
// iCalEvent.endDateRecurrence = new ICAL.Time(until);
// }
// console.log('ok2 ' + JSON.stringify(iCalEvent));
// return iCalEvent;
// }
setOrganizer(email, event) {

@@ -477,2 +459,5 @@ const organizerValue = `RSVP=TRUE;PARTSTAT=ACCEPTED;CN=${email}:mailto:${email}`;

}
if (attendee.contactId) {
attendeeValue += `;X-CONTACTID=${attendee.contactId}`;
}
attendeeValue += `:mailto:${attendee.email}`;

@@ -479,0 +464,0 @@ event.component.addPropertyWithValue('ATTENDEE', attendeeValue);

@@ -0,0 +0,0 @@ "use strict";

@@ -6,2 +6,3 @@ export type AtendeeStatus = 'ATTENDEE_STATUS_NEEDS_ACTION' | 'ATTENDEE_STATUS_ACCEPTED' | 'ATTENDEE_STATUS_DECLINED' | 'ATTENDEE_STATUS_TENTATIVE';

status?: AtendeeStatus;
contactId?: string;
}

@@ -8,0 +9,0 @@ export interface Alarm {

{
"name": "@coozzy/cal-dav",
"version": "2.4.4",
"version": "2.4.5",
"description": "Simple cal dav client.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc