Comparing version 1.0.9 to 1.1.0
@@ -11,6 +11,8 @@ // Generated by CoffeeScript 1.8.0 | ||
_ref = require('./index'), VCalendar = _ref.VCalendar, VEvent = _ref.VEvent, VAlarm = _ref.VAlarm; | ||
Event.prototype.toIcal = function() { | ||
var allDay, created, e, event, lastModification, mappedAttendees, rrule, stampDate, timezone, _ref1, _ref2; | ||
Event.prototype.toIcal = function(timezone) { | ||
var allDay, created, e, event, lastModification, mappedAttendees, rrule, stampDate, _ref1, _ref2; | ||
if (timezone == null) { | ||
timezone = 'UTC'; | ||
} | ||
allDay = this.start.length === 10; | ||
timezone = 'UTC'; | ||
if (this.rrule) { | ||
@@ -24,2 +26,3 @@ if (this.timezone != null) { | ||
} | ||
timezone = this.timezone || timezone; | ||
rrule = this.rrule != null ? RRule.parseString(this.rrule) : null; | ||
@@ -48,3 +51,3 @@ mappedAttendees = (_ref1 = this.attendees) != null ? _ref1.map(function(attendee) { | ||
attendees: mappedAttendees, | ||
timezone: this.timezone, | ||
timezone: timezone, | ||
created: created, | ||
@@ -51,0 +54,0 @@ lastModification: lastModification |
@@ -26,4 +26,2 @@ // Generated by CoffeeScript 1.8.0 | ||
module.exports.decorateAlarm = require('./alarm'); | ||
module.exports.decorateEvent = require('./event'); | ||
@@ -30,0 +28,0 @@ |
{ | ||
"name": "cozy-ical", | ||
"version": "1.0.9", | ||
"version": "1.1.0", | ||
"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
80599
1794