Socket
Socket
Sign inDemoInstall

cozy-ical

Package Overview
Dependencies
8
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.17 to 1.1.18

14

lib/event.js

@@ -97,3 +97,3 @@ // Generated by CoffeeScript 1.8.0

Event.fromIcal = function(vevent, defaultCalendar) {
var alarms, defaultCozyStatus, end, event, model, now, stampDate, start, timezone, _ref1;
var alarms, defaultCozyStatus, end, event, model, now, stampDate, start, timezone, _ref1, _ref2, _ref3;
if (defaultCalendar == null) {

@@ -112,7 +112,13 @@ defaultCalendar = 'my calendar';

event.place = model.location;
if ((_ref1 = model.rrule) != null) {
delete _ref1.bynmonthday;
}
if ((_ref2 = model.rrule) != null) {
delete _ref2.bynweekday;
}
event.rrule = new RRule(model.rrule).toString();
defaultCozyStatus = 'INVITATION-NOT-SENT';
event.attendees = (_ref1 = model.attendees) != null ? _ref1.map(function(attendee, index) {
var contactid, email, id, status, _ref2;
status = ((_ref2 = attendee.details) != null ? _ref2.status : void 0) || defaultCozyStatus;
event.attendees = (_ref3 = model.attendees) != null ? _ref3.map(function(attendee, index) {
var contactid, email, id, status, _ref4;
status = ((_ref4 = attendee.details) != null ? _ref4.status : void 0) || defaultCozyStatus;
if (status === 'NEEDS-ACTION') {

@@ -119,0 +125,0 @@ status = defaultCozyStatus;

{
"name": "cozy-ical",
"version": "1.1.17",
"version": "1.1.18",
"description": "Cozy-Ical provides ICal Parser, generators and helpers",

@@ -5,0 +5,0 @@ "main": "lib/index",

@@ -83,3 +83,3 @@ cozy-ical

```javascript
var calString = "BEGIN:VCALENDAR
var calString = `BEGIN:VCALENDAR
VERSION:2.0

@@ -97,3 +97,3 @@ PRODID:-//Cozy Cloud//NONSGML Cozy Agenda//EN

END:VTODO
END:VCALENDAR";
END:VCALENDAR`;

@@ -100,0 +100,0 @@ parser = new ICalParser();

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc