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.3.7 to 0.3.8

18

dist/calendar-tools.js

@@ -94,3 +94,3 @@ (function () { function require(p){ var path = require.resolve(p) , mod = require.modules[path]; if (!mod) throw new Error('failed to require "' + p + '"'); if (!mod.exports) { mod.exports = {}; mod.call(mod.exports, mod, mod.exports, require.relative(path)); } return mod.exports;}require.modules = {};require.resolve = function(path){ var orig = path , reg = path + '.js' , index = path + '/index.js'; return require.modules[reg] && reg || require.modules[index] && index || orig;};require.register = function(path, fn){ require.modules[path] = fn;};require.relative = function(parent) { return function(p){ if ('.' != p.charAt(0)) return require(p); var path = parent.split('/') , segs = p.split('/'); path.pop(); for (var i = 0; i < segs.length; i++) { var seg = segs[i]; if ('..' == seg) path.pop(); else if ('.' != seg) path.push(seg); } return require(path.join('/')); };};require.register("atom.js", function(module, exports, require){

exports.version = '0.3.4';
exports.version = '0.3.7';

@@ -559,3 +559,3 @@ /**

var dim = _date.getTZDiff(end, start) * _minute
, diff = end.getTime() - start.getTime() + dim;
, diff = +end - +start - dim;
return diff;

@@ -1304,2 +1304,3 @@ }

endLimitDate.setDate(endLimitDate.getDate() + 1);
var evDuration = _date.getDiff(endLimitDate, ev.start) - 1;

@@ -1345,3 +1346,6 @@

if (ev.recurrence['repeat-on'].mode == 'day-of-week') {
var endC = new Date(+end + +this.ev.end - this.ev.start);
var endC = new Date(+end + _date.getDiff(this.ev.end, this.ev.start))
if (ev.allDay)
endC.setDate(endC.getDate() + 1);
if (+limitDate >= +endC)

@@ -1583,3 +1587,3 @@ elapsedInstances++;

limit = new Date(_limit || this.period.start);
var limit = new Date(_limit || this.period.start);
dir = dir || 'prev';

@@ -1604,2 +1608,4 @@

function getPeriods() {
// diff is diff in days between initial startdate of the seed event (mark)
// and enddate of the current instance (limit)
var diff = _date.getDiffInDays(limit, mark, 'floor')

@@ -1727,3 +1733,5 @@ , pDays = ev.recurrence.every;

var ref = new Date(+_ref + (_date.getDiff(this.ev.end, this.ev.start)))
var diff = _date.getDiff(this.ev.end, this.ev.start)
, ref = new Date(+_ref + diff)
_date.applyTZCorrection(ref, _ref);

@@ -1730,0 +1738,0 @@

0.3.8 / 2012-01-19
==================
* fix getDiff() time computing bug
0.3.7 / 2012-01-19

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

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

exports.version = '0.3.7';
exports.version = '0.3.8';

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

@@ -505,3 +505,3 @@ /*!

limit = new Date(_limit || this.period.start);
var limit = new Date(_limit || this.period.start);
dir = dir || 'prev';

@@ -526,2 +526,4 @@

function getPeriods() {
// diff is diff in days between initial startdate of the seed event (mark)
// and enddate of the current instance (limit)
var diff = _date.getDiffInDays(limit, mark, 'floor')

@@ -649,3 +651,5 @@ , pDays = ev.recurrence.every;

var ref = new Date(+_ref + (_date.getDiff(this.ev.end, this.ev.start)))
var diff = _date.getDiff(this.ev.end, this.ev.start)
, ref = new Date(+_ref + diff)
_date.applyTZCorrection(ref, _ref);

@@ -652,0 +656,0 @@

@@ -118,3 +118,3 @@ /*!

var dim = _date.getTZDiff(end, start) * _minute
, diff = end.getTime() - start.getTime() + dim;
, diff = +end - +start - dim;
return diff;

@@ -121,0 +121,0 @@ }

{
"name": "calendar-tools"
, "version": "0.3.7"
, "version": "0.3.8"
, "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