Socket
Socket
Sign inDemoInstall

date-fns

Package Overview
Dependencies
Maintainers
3
Versions
204
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-fns - npm Package Compare versions

Comparing version 1.0.0-rc18 to 1.0.0-rc19

6

add_years/index.js

@@ -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",

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