Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "js-joda", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "a date and time library for javascript", | ||
@@ -30,6 +30,6 @@ "repository": { | ||
"devDependencies": { | ||
"babel-cli": "^6.8.0", | ||
"babel-core": "^6.8.0", | ||
"babel-cli": "^6.9.0", | ||
"babel-core": "^6.9.0", | ||
"babel-loader": "^6.2.4", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-preset-es2015": "^6.9.0", | ||
"babel-preset-es2015-loose": "^7.0.0", | ||
@@ -39,3 +39,3 @@ "chai": "^3.5.0", | ||
"esdoc": "0.4.6", | ||
"eslint": "^2.9.0", | ||
"eslint": "^2.10.2", | ||
"eslint-config-standard": "^5.3.1", | ||
@@ -53,8 +53,8 @@ "eslint-plugin-promise": "^1.1.0", | ||
"karma-webpack": "^1.7.0", | ||
"markdown-toc": "^0.12.9", | ||
"markdown-toc": "^0.12.10", | ||
"mocha": "^2.4.5", | ||
"phantomjs-prebuilt": "^2.1.7", | ||
"webpack": "^1.13.0" | ||
"webpack": "^1.13.1" | ||
}, | ||
"license": "BSD-3-Clause" | ||
} |
@@ -177,2 +177,3 @@ /** | ||
/** | ||
* convert -0 to 0 and int as string to a number ( '1' -> 1 ) | ||
* | ||
@@ -183,3 +184,3 @@ * @param {number} value | ||
static safeZero(value){ | ||
return value === 0 ? 0 : value; | ||
return value === 0 ? 0 : +value; | ||
} | ||
@@ -186,0 +187,0 @@ |
@@ -81,11 +81,11 @@ /* | ||
*/ | ||
this._years = years; | ||
this._years = MathUtil.safeToInt(years); | ||
/** | ||
* The number of months. | ||
*/ | ||
this._months = months; | ||
this._months = MathUtil.safeToInt(months); | ||
/** | ||
* The number of days. | ||
*/ | ||
this._days = days; | ||
this._days = MathUtil.safeToInt(days); | ||
} | ||
@@ -97,5 +97,2 @@ | ||
requireNonNull(days, 'days'); | ||
MathUtil.safeToInt(years); | ||
MathUtil.safeToInt(month); | ||
MathUtil.safeToInt(days); | ||
} | ||
@@ -102,0 +99,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
3140501
32623