moment-jalaali
Advanced tools
Comparing version 0.1.8 to 0.1.9
{ | ||
"name": "moment-jalaali", | ||
"main": "moment-jalaali.js", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"homepage": "https://github.com/behrang/moment-jalaali", | ||
@@ -6,0 +6,0 @@ "authors": [ |
@@ -372,3 +372,3 @@ // moment-jalaali.js | ||
jm = jm || 0 | ||
jd = jd || 0 | ||
jd = jd || 1 | ||
if (jd < 1 || jd > jMoment.jDaysInMonth(jy, jm)) | ||
@@ -375,0 +375,0 @@ config._isValid = false |
{ | ||
"name": "moment-jalaali", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "A Jalaali (Jalali, Persian, Khorshidi, Shamsi) calendar system plugin for moment.js.", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -63,2 +63,4 @@ 'use strict'; | ||
m.format('YYYY-MM-DD').should.be.equal('1981-07-17') | ||
m = moment('1392 7', 'jYYYY jM') | ||
m.format('YYYY-MM-DD').should.be.equal('2013-09-23') | ||
}) | ||
@@ -65,0 +67,0 @@ |
Sorry, the diff of this file is not supported yet
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1554
1
58372
9