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

cozy-ical

Package Overview
Dependencies
Maintainers
1
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 0.0.1 to 0.0.2

.travis.yml

70

lib/index.js

@@ -1,4 +0,4 @@

// Generated by CoffeeScript 1.6.2
// Generated by CoffeeScript 1.4.0
(function() {
var ICalParser, VAlarm, VCalendar, VComponent, VDaylight, VEvent, VFreeBusy, VJournal, VStandard, VTimezone, VTodo, formatUTCOffset, fs, iCalBuffer, lazy, moment, _ref, _ref1,
var ICalParser, VAlarm, VCalendar, VComponent, VDaylight, VEvent, VFreeBusy, VJournal, VStandard, VTimezone, VTodo, formatUTCOffset, fs, iCalBuffer, lazy, moment,
__hasProp = {}.hasOwnProperty,

@@ -15,2 +15,3 @@ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },

iCalBuffer = (function() {
function iCalBuffer() {}

@@ -26,3 +27,2 @@

var text, _i, _len, _results;
_results = [];

@@ -42,3 +42,2 @@ for (_i = 0, _len = texts.length; _i < _len; _i++) {

var text, _i, _len, _results;
_results = [];

@@ -61,2 +60,3 @@ for (_i = 0, _len = texts.length; _i < _len; _i++) {

module.exports.VComponent = VComponent = (function() {
VComponent.prototype.name = 'VCOMPONENT';

@@ -71,3 +71,2 @@

var att, buf, component, val, _i, _len, _ref, _ref1;
buf = new iCalBuffer;

@@ -101,2 +100,3 @@ buf.addLine("BEGIN:" + this.name);

module.exports.VCalendar = VCalendar = (function(_super) {
__extends(VCalendar, _super);

@@ -119,2 +119,3 @@

module.exports.VAlarm = VAlarm = (function(_super) {
__extends(VAlarm, _super);

@@ -138,2 +139,3 @@

module.exports.VTodo = VTodo = (function(_super) {
__extends(VTodo, _super);

@@ -161,2 +163,3 @@

module.exports.VEvent = VEvent = (function(_super) {
__extends(VEvent, _super);

@@ -182,3 +185,2 @@

var diff;
if ((timezone != null) && (startDate != null)) {

@@ -211,2 +213,3 @@ startDate.setTimezone(timezone);

module.exports.VTimezone = VTimezone = (function(_super) {
__extends(VTimezone, _super);

@@ -218,3 +221,2 @@

var diff, vdaylight, vstandard;
VTimezone.__super__.constructor.apply(this, arguments);

@@ -236,7 +238,7 @@ this.fields = {

module.exports.VJournal = VJournal = (function(_super) {
__extends(VJournal, _super);
function VJournal() {
_ref = VJournal.__super__.constructor.apply(this, arguments);
return _ref;
return VJournal.__super__.constructor.apply(this, arguments);
}

@@ -251,7 +253,7 @@

module.exports.VFreeBusy = VFreeBusy = (function(_super) {
__extends(VFreeBusy, _super);
function VFreeBusy() {
_ref1 = VFreeBusy.__super__.constructor.apply(this, arguments);
return _ref1;
return VFreeBusy.__super__.constructor.apply(this, arguments);
}

@@ -266,2 +268,3 @@

module.exports.VStandard = VStandard = (function(_super) {
__extends(VStandard, _super);

@@ -285,2 +288,3 @@

module.exports.VDaylight = VDaylight = (function(_super) {
__extends(VDaylight, _super);

@@ -304,2 +308,3 @@

module.exports.ICalParser = ICalParser = (function() {
function ICalParser() {}

@@ -322,5 +327,45 @@

ICalParser.prototype.parseString = function(string, callback) {
var FakeStream, fakeStream;
FakeStream = (function(_super) {
__extends(FakeStream, _super);
function FakeStream() {
return FakeStream.__super__.constructor.apply(this, arguments);
}
FakeStream.prototype.readable = true;
FakeStream.prototype.writable = false;
FakeStream.prototype.setEncoding = function() {
throw 'not implemented';
};
FakeStream.prototype.pipe = function() {
throw 'not implemented';
};
FakeStream.prototype.destroy = function() {};
FakeStream.prototype.resume = function() {};
FakeStream.prototype.pause = function() {};
FakeStream.prototype.send = function(string) {
this.emit('data', string);
return this.emit('end');
};
return FakeStream;
})(require('events').EventEmitter);
fakeStream = new FakeStream;
this.parse(fakeStream, callback);
return fakeStream.send(string);
};
ICalParser.prototype.parse = function(stream, callback) {
var component, createComponent, lineNumber, lineParser, noerror, parent, result, sendError;
result = {};

@@ -362,3 +407,2 @@ noerror = true;

var key, tuple, value;
lineNumber++;

@@ -365,0 +409,0 @@ line = line.toString('utf-8').trim();

10

package.json
{
"name": "cozy-ical",
"version": "0.0.1",
"version": "0.0.2",
"description": "Cozy-Ical provides ICal Parser and Objects",
"main": "src/index.coffee",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "cake tests"
},

@@ -22,4 +22,10 @@ "repository": {

"moment": "~2.1.0",
"coffee-script": "= 1.4.0",
"lazy": "~1.0.11"
},
"devDependencies": {
"mocha": "~1.12.0",
"should": "~1.2.0",
"chai": "~1.7.2"
}
}
cozy-ical
=========
[![Build
Status](https://travis-ci.org/aenario/cozy-ical.png?branch=master)](https://travis-ci.org/aenario/cozy-ical)
ICal Parser and Calendar models for Cozy Cloud

Sorry, the diff of this file is not supported yet

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