Socket
Socket
Sign inDemoInstall

calendar-base

Package Overview
Dependencies
0
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

3

lib/calendar-base.js

@@ -39,2 +39,5 @@ /**

year = this.date.getUTCFullYear();
month = this.date.getUTCMonth();
var calendar = [],

@@ -41,0 +44,0 @@ firstDay = this.date.getUTCDay(),

2

package.json
{
"name": "calendar-base",
"version": "0.2.0",
"version": "0.2.1",
"description": "Base methods for generating calendars using JavaScript.",

@@ -5,0 +5,0 @@ "keywords": [ "calendar", "generation", "base", "core" ],

@@ -76,2 +76,10 @@ var assert = require('assert'),

it('should adjust the month number', function (done) {
var calendar = new Calendar(),
calendarDays = calendar.getCalendar(2010, 12);
assert.equal(calendarDays[15].month, 0);
assert.equal(calendarDays[15].year, 2011);
done();
});
it('should return valid date selection states for same month', function (done) {

@@ -78,0 +86,0 @@ var calendar = new Calendar();

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc