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.0 to 0.2.1

67

dist/calendar-tools.js

@@ -72,3 +72,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.1.9';
exports.version = '0.2.0';

@@ -795,6 +795,7 @@ /**

/**
* String usefull functions
*/
/***************************
* string usefull functions *
***************************/
var _string = module.exports.string = {};

@@ -808,3 +809,2 @@ /**

var _string = module.exports.string = {};

@@ -864,2 +864,54 @@ _string.escape = function (str){

/**
* Array usefull functions
*/
var _array = module.exports.array = {};
/**
* indexOf(). supports for IE
*
* @param {Array} array
* @param item
*/
_array.indexOf = function (array, item) {
if (!Array.prototype.indexOf) {
/*
* copied from Mozilla Develop Center
* https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexO://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf
*/
if (array === void 0 || array === null)
throw new TypeError();
var t = Object(array)
, len = t.length >>> 0;
if (len === 0)
return -1;
var n = 0;
if (arguments.length > 1) {
n = Number(arguments[2]);
if (n !== n)
n = 0;
else if (n !== 0 && n !== Infinity && n !== -Infinity)
n = (n > 0 || -1) * Math.floor(Math.abs(n));
}
if (n >= len)
return -1;
var k = n >= 0 ? n : Math.max(len - Math.abs(n), 0);
for (; k < len; k++)
if (k in t && t[k] === item)
return k;
return -1;
}
else
return array.indexOf(item);
}
});require.register("instance.js", function(module, exports, require){

@@ -1010,4 +1062,5 @@ /*!

var _date = util.date
, _array = util.array
, _c = _date['const']
, clearTime = _date.clearTime
, clearTime = _date.clearTime;

@@ -1313,3 +1366,3 @@ /**

var excKey = _date.getFormattedDate(cursorDate, false);
if (ev.recurrence.exceptions.indexOf(excKey) < 0) {
if (_array.indexOf(ev.recurrence.exceptions, excKey) < 0) {
var Inst = new Instance(this, cursorDate);

@@ -1316,0 +1369,0 @@

0.2.1 / 2011-11-29
==================
* replace native Array indexOf method by util.array.indexOf function
0.2.0 / 2011-11-29

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

2

lib/calendar-tools.js

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

exports.version = '0.2.0';
exports.version = '0.2.1';

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

@@ -19,4 +19,5 @@ /*!

var _date = util.date
, _array = util.array
, _c = _date['const']
, clearTime = _date.clearTime
, clearTime = _date.clearTime;

@@ -322,3 +323,3 @@ /**

var excKey = _date.getFormattedDate(cursorDate, false);
if (ev.recurrence.exceptions.indexOf(excKey) < 0) {
if (_array.indexOf(ev.recurrence.exceptions, excKey) < 0) {
var Inst = new Instance(this, cursorDate);

@@ -325,0 +326,0 @@

@@ -396,6 +396,7 @@ /*!

/**
* String usefull functions
*/
/***************************
* string usefull functions *
***************************/
var _string = module.exports.string = {};

@@ -409,3 +410,2 @@ /**

var _string = module.exports.string = {};

@@ -464,1 +464,53 @@ _string.escape = function (str){

};
/**
* Array usefull functions
*/
var _array = module.exports.array = {};
/**
* indexOf(). supports for IE
*
* @param {Array} array
* @param item
*/
_array.indexOf = function (array, item) {
if (!Array.prototype.indexOf) {
/*
* copied from Mozilla Develop Center
* https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexO://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf
*/
if (array === void 0 || array === null)
throw new TypeError();
var t = Object(array)
, len = t.length >>> 0;
if (len === 0)
return -1;
var n = 0;
if (arguments.length > 1) {
n = Number(arguments[2]);
if (n !== n)
n = 0;
else if (n !== 0 && n !== Infinity && n !== -Infinity)
n = (n > 0 || -1) * Math.floor(Math.abs(n));
}
if (n >= len)
return -1;
var k = n >= 0 ? n : Math.max(len - Math.abs(n), 0);
for (; k < len; k++)
if (k in t && t[k] === item)
return k;
return -1;
}
else
return array.indexOf(item);
}
{
"name": "calendar-tools"
, "version": "0.2.0"
, "version": "0.2.1"
, "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