Comparing version 0.0.1 to 0.1.0
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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
5900
1
6
1
65
- Removedlodash@^2.4.1
- Removedlodash@2.4.2(transitive)
Updatedmoment@^2.17.1