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

calendarjs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calendarjs - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

.travis.yml

18

index.js
var moment = require('moment');
var _ = require('lodash');

@@ -41,5 +40,6 @@ var Calendar = (function() {

// defaults
opts = _.defaults(opts || {}, {
withOtherMonthDays: true
});
opts = opts || {};
if (opts.withOtherMonthDays === undefined) {
opts.withOtherMonthDays = true;
}

@@ -64,3 +64,3 @@ // we will fill in this array

// advance one day
m.add('days', 1);
m.add(1, 'days');
d++;

@@ -78,6 +78,6 @@ }

w = weeks[0];
m = moment(this.moment).subtract('days', 1);
m = moment(this.moment).subtract(1, 'days');
while (w.length < 7) {
w.unshift(this.createDay(m));
m.subtract('days', 1);
m.subtract(1, 'days');
}

@@ -87,6 +87,6 @@ weeks[0] = w;

w = weeks[weeks.length-1];
m = moment(this.moment).add('months', 1);
m = moment(this.moment).add(1, 'months');
while (w.length < 7) {
w.push(this.createDay(m));
m.add('day', 1);
m.add(1, 'day');
}

@@ -93,0 +93,0 @@ weeks[weeks.length-1] = w;

{
"name": "calendarjs",
"version": "0.0.1",
"version": "0.1.0",
"description": "Javascript component to creating calendars.",

@@ -24,5 +24,4 @@ "main": "index.js",

"dependencies": {
"lodash": "^2.4.1",
"moment": "^2.7.0"
"moment": "^2.17.1"
}
}
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