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

calendar-month

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calendar-month - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

bower.json

@@ -25,3 +25,3 @@ {

],
"version": "0.0.5"
"version": "0.0.6"
}

@@ -71,2 +71,7 @@

function Month (year, month) {
if( year instanceof Date ) {
month = year.getMonth();
year = year.getFullYear();
}
this.year = year;

@@ -86,6 +91,10 @@ this.month = month;

Month.prototype.previous = function () {
return new Month(this.year, this.month - 1);
};
Month.prototype.next = function () {
return new Month(this.year, this.month + 1);
};
module.exports = Month;
{
"name": "calendar-month",
"version": "0.0.5",
"version": "0.0.6",
"description": "vanillajs month data handler",

@@ -5,0 +5,0 @@ "main": "lib/month.js",

@@ -7,2 +7,5 @@

// months from 0 (january) ... to 11 (december)
console.log( new Month(2016, 2) );
var m = new Month(2016, 2);
console.log( m );
console.log( m.previous() );
console.log( m.next() );
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