Comparing version 1.0.4 to 1.0.5
@@ -44,3 +44,6 @@ // Generated by CoffeeScript 1.4.0 | ||
mappedAttendees = this.getAttendeesEmail().map(function(email) { | ||
return "mailto:" + email; | ||
return { | ||
email: email, | ||
status: 'ACCEPTED' | ||
}; | ||
}); | ||
@@ -50,3 +53,3 @@ vtodo.addAlarm({ | ||
description: this.description, | ||
attendee: mappedAttendees, | ||
attendees: mappedAttendees, | ||
summary: this.description, | ||
@@ -124,2 +127,3 @@ trigger: 'PT0M' | ||
} | ||
alarm.attendees = valarms[0].model.attendees; | ||
} | ||
@@ -126,0 +130,0 @@ alarm.tags = [defaultCalendar]; |
@@ -12,3 +12,3 @@ // Generated by CoffeeScript 1.4.0 | ||
Event.prototype.toIcal = function() { | ||
var allDay, attendees, event, rrule, timezone, _ref1, _ref2, | ||
var allDay, event, mappedAttendees, rrule, timezone, _ref1, _ref2, | ||
_this = this; | ||
@@ -26,4 +26,7 @@ allDay = this.start.length === 10; | ||
rrule = this.rrule != null ? RRule.parseString(this.rrule) : null; | ||
attendees = (_ref1 = this.attendees) != null ? _ref1.map(function(attendee) { | ||
return attendee.email; | ||
mappedAttendees = (_ref1 = this.attendees) != null ? _ref1.map(function(attendee) { | ||
return { | ||
email: attendee.email, | ||
status: attendee.status | ||
}; | ||
}) : void 0; | ||
@@ -41,3 +44,3 @@ try { | ||
rrule: rrule, | ||
attendee: attendees, | ||
attendees: mappedAttendees, | ||
timezone: this.timezone | ||
@@ -52,3 +55,3 @@ }); | ||
_ref2.forEach(function(alarm) { | ||
var mappedAttendees, _ref3, _ref4; | ||
var _ref3, _ref4; | ||
if ((_ref3 = alarm.action) === VAlarm.DISPLAY_ACTION || _ref3 === 'BOTH') { | ||
@@ -63,4 +66,8 @@ event.add(new VAlarm({ | ||
mappedAttendees = _this.getAlarmAttendeesEmail().map(function(email) { | ||
return "mailto:" + email; | ||
return { | ||
email: email, | ||
status: 'ACCEPTED' | ||
}; | ||
}); | ||
console.log(mappedAttendees); | ||
return event.add(new VAlarm({ | ||
@@ -71,3 +78,3 @@ trigger: alarm.trigg, | ||
description: _this.details || '', | ||
attendee: mappedAttendees | ||
attendees: mappedAttendees | ||
})); | ||
@@ -74,0 +81,0 @@ } |
@@ -343,4 +343,4 @@ // Generated by CoffeeScript 1.4.0 | ||
attendees = attendees != null ? attendees.map(function(attendee) { | ||
var detail, details, key, name, status, _i, _len, _ref3, _ref4, _ref5, _ref6; | ||
return attendee.value.replace('mailto:', ''); | ||
var detail, details, email, key, name, status, _i, _len, _ref3, _ref4, _ref5, _ref6; | ||
email = attendee.value.replace('mailto:', ''); | ||
if (((_ref3 = attendee.details) != null ? _ref3.length : void 0) > 0) { | ||
@@ -383,9 +383,9 @@ details = {}; | ||
} else if (action === VAlarm.EMAIL_ACTION) { | ||
if (this.model.description == null) { | ||
if (description == null) { | ||
description = ((_ref9 = this.parent) != null ? (_ref10 = _ref9.getRawField('DESCRIPTION')) != null ? _ref10.value : void 0 : void 0) || ''; | ||
} | ||
if (this.model.summary == null) { | ||
if (summary == null) { | ||
summary = ((_ref11 = this.parent) != null ? (_ref12 = _ref11.getRawField('SUMMARY')) != null ? _ref12.value : void 0 : void 0) || ''; | ||
} | ||
if (this.model.attendees == null) { | ||
if (attendees == null) { | ||
attendees = []; | ||
@@ -392,0 +392,0 @@ } |
{ | ||
"name": "cozy-ical", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Cozy-Ical provides ICal Parser, generators and helpers", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
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
78871
1759