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

calendar-tools

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calendar-tools - npm Package Compare versions

Comparing version 0.2.9 to 0.3.0

5

History.md
0.3.0 / 2011-12-20
==================
* fix BYMONTHDAY value
0.2.9 / 2011-12-20

@@ -3,0 +8,0 @@ ==================

2

lib/calendar-tools.js

@@ -14,3 +14,3 @@

exports.version = '0.2.9';
exports.version = '0.3.0';

@@ -17,0 +17,0 @@ /**

@@ -103,6 +103,6 @@ /*!

'DTSTART' + (ev.allDay
? ':' + _str.value(options.start)
? ';' + _str.value(options.start)
: ';' + _str.dateTZID(options.start, tz))
, 'DTEND' + (ev.allDay
? ':' + _str.value(options.end)
? ';' + _str.value(options.end)
: ';' + _str.dateTZID(options.end, tz))

@@ -144,4 +144,4 @@ ];

? (ev.recurrence['repeat-on'].mode == 'day-of-month'
? ';BYMONTHDAY=1'
: ';BYDAY=1'
? ';BYMONTHDAY=' + ev.start.getDate()
: ';BYDAY=' + ev.start.getDate()
+ daysMapRecToRFC2445[dayNames[options._start.getDay()]])

@@ -265,4 +265,4 @@ : '');

// BYMONTHDAY/repeat-on. Used for:
// - weekly mode
else if (prp[0] == 'BYMONTHDAY' && prp[1] == 1)
// - monthly mode
else if (prp[0] == 'BYMONTHDAY')
recObj['repeat-on'].mode = 'day-of-month';

@@ -269,0 +269,0 @@

@@ -23,12 +23,2 @@ /*!

/**
* timezone correction
* @param {Number} tz
*/
function tzCorrection (date, tz) {
return date = new Date(+date - tz * _hour);
}
/**

@@ -100,3 +90,3 @@ * date usefull functions *

/**
* Apply timezone diff correctio
* Apply timezone diff correction
*/

@@ -109,3 +99,3 @@

if (tzdiff)
date.setMinutes(date.getMinutes() + tzdiff * sign)
date.setMinutes(date.getMinutes() + tzdiff * sign);

@@ -112,0 +102,0 @@ return date;

{
"name": "calendar-tools"
, "version": "0.2.9"
, "version": "0.3.0"
, "description": "Calendar object model"

@@ -5,0 +5,0 @@ , "keywords": ["calendar", "google calendar", "fullCalendar", "recurring events", "icalendar", "rfc2445"]

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