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

cozy-ical

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cozy-ical - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

5

lib/event.js

@@ -51,3 +51,4 @@ // Generated by CoffeeScript 1.8.0

created: created,
lastModification: lastModification
lastModification: lastModification,
mozLastack: this.mozLastack
});

@@ -78,3 +79,2 @@ } catch (_error) {

});
console.log(mappedAttendees);
return event.add(new VAlarm({

@@ -131,2 +131,3 @@ trigger: alarm.trigg,

event.lastModification = model.lastModification || stampDate || now;
event.mozLastack = model.mozLastack;
if (model.allDay) {

@@ -133,0 +134,0 @@ event.start = moment.tz(model.startDate, 'UTC').format(Event.dateFormat);

@@ -72,5 +72,5 @@ // Generated by CoffeeScript 1.8.0

VComponent.icalDTUTCFormat = 'YYYYMMDD[T]HHmm[00Z]';
VComponent.icalDTUTCFormat = 'YYYYMMDD[T]HHmmss[Z]';
VComponent.icalDTFormat = 'YYYYMMDDTHHmm[00]';
VComponent.icalDTFormat = 'YYYYMMDD[T]HHmmss';

@@ -192,2 +192,17 @@ VComponent.icalDateFormat = 'YYYYMMDD';

VComponent.prototype.getRawValue = function(key, findMany) {
var fields;
if (findMany == null) {
findMany = false;
}
fields = this.getRawField(key, findMany);
if (findMany) {
return fields.map(field(function() {
return typeof field !== "undefined" && field !== null ? field.value : void 0;
}));
} else {
return fields != null ? fields.value : void 0;
}
};
VComponent.prototype.getTextFieldValue = function(key, defaults) {

@@ -526,3 +541,3 @@ var field, value;

VEvent.prototype.build = function() {
var attendee, created, details, fieldEnd, fieldStart, formatEnd, formatStart, lastModification, name, rrule, stampDate, status, timezoneEnd, timezoneStart, _i, _len, _ref1, _ref2, _ref3;
var attendee, created, details, fieldEnd, fieldStart, formatEnd, formatStart, lastModification, mozLastack, name, rrule, stampDate, status, timezoneEnd, timezoneStart, _i, _len, _ref1, _ref2, _ref3;
VEvent.__super__.build.call(this);

@@ -598,2 +613,5 @@ if ((this.model.endDate == null) && (this.model.duration == null) && (this.model.rrule == null)) {

}
if (this.model.mozLastack != null) {
mozLastack = moment.tz(this.model.mozLastack, 'UTC').format(VEvent.icalDTUTCFormat);
}
this.addRawField('CATEGORIES', this.model.categories || null);

@@ -603,11 +621,12 @@ this.addRawField('CREATED', created || null);

this.addRawField('DURATION', this.model.duration || null);
this.addRawField('LAST-MOD', lastModification || null);
this.addRawField('LAST-MODIFIED', lastModification || null);
this.addTextField('LOCATION', this.model.location || null);
this.addRawField('ORGANIZER', this.model.organizer || null);
this.addRawField('RRULE', rrule || null);
return this.addTextField('SUMMARY', this.model.summary || null);
this.addTextField('SUMMARY', this.model.summary || null);
return this.addRawField('X-MOZ-LASTACK', mozLastack || null);
};
VEvent.prototype.extract = function() {
var allDay, attendees, created, daysNum, dtend, dtstart, duration, endDate, hoursNum, iCalFormat, lastModification, minutesNum, rrule, rruleOptions, secondsNum, stampDate, startDate, timezone, timezoneEnd, timezoneStart, uid, weeksNum, _, _ref1, _ref10, _ref11, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
var allDay, attendees, created, daysNum, dtend, dtstart, duration, endDate, hoursNum, iCalFormat, lastModification, minutesNum, mozLastack, rrule, rruleOptions, secondsNum, stampDate, startDate, timezone, timezoneEnd, timezoneStart, uid, weeksNum, _, _ref1, _ref10, _ref11, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
iCalFormat = 'YYYYMMDDTHHmmss';

@@ -698,3 +717,3 @@ uid = this.getRawField('UID');

}) : void 0;
lastModification = (_ref8 = this.getRawField('LAST-MOD')) != null ? _ref8.value : void 0;
lastModification = (_ref8 = this.getRawField('LAST-MODIFIED')) != null ? _ref8.value : void 0;
if (lastModification != null) {

@@ -707,2 +726,6 @@ lastModification = moment.tz(lastModification, VEvent.icalDTUTCFormat, 'UTC').toISOString();

}
mozLastack = this.getRawValue('X-MOZ-LASTACK');
if (mozLastack != null) {
mozLastack = moment.tz(mozLastack, VEvent.icalDTUTCFormat, 'UTC').toISOString();
}
return this.model = {

@@ -724,3 +747,4 @@ uid: (uid != null ? uid.value : void 0) || uuid.v1(),

lastModification: lastModification || null,
created: created || null
created: created || null,
mozLastack: mozLastack
};

@@ -727,0 +751,0 @@ };

2

package.json
{
"name": "cozy-ical",
"version": "1.1.2",
"version": "1.1.3",
"description": "Cozy-Ical provides ICal Parser, generators and helpers",

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

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