Comparing version 1.0.0-rc18 to 1.0.0-rc19
@@ -1,2 +0,2 @@ | ||
var parse = require('../parse') | ||
var addMonths = require('../add_months') | ||
@@ -20,5 +20,3 @@ /** | ||
var addYears = function(dirtyDate, amount) { | ||
var date = parse(dirtyDate) | ||
date.setFullYear(date.getFullYear() + amount) | ||
return date | ||
return addMonths(dirtyDate, amount * 12) | ||
} | ||
@@ -25,0 +23,0 @@ |
{ | ||
"name": "date-fns", | ||
"version": "1.0.0-rc18", | ||
"version": "1.0.0-rc19", | ||
"author": "Sasha Koss <koss@nocorp.me>", | ||
@@ -44,2 +44,3 @@ "description": "Modern JavaScript date utility library", | ||
"test-tz-extended": "npm run build-tests && ./scripts/test_tz_extended.sh", | ||
"count-tests": "./scripts/count_tests.sh", | ||
"build": "env NODE_ENV=production webpack --config ./config/webpack.js", | ||
@@ -46,0 +47,0 @@ "build-tests": "env BUILD_TESTS=true webpack --config ./config/webpack.js", |
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
288759
4586