Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

date-arithmetic

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-arithmetic - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

4

index.js

@@ -141,4 +141,4 @@ var MILI = 'milliseconds'

return dates.gte(day, min, unit)
&& dates.lte(day, max, unit)
return (!min || dates.gte(day, min, unit))
&& (!max || dates.lte(day, max, unit))
},

@@ -145,0 +145,0 @@

{
"name": "date-arithmetic",
"version": "1.0.0",
"version": "2.0.0",
"description": "simple date math util",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -47,1 +47,6 @@ var assert = require('assert')

assert.ok(dateMath.inRange(date, new Date(2013,0,1,0,0,0,0), new Date(2014,5,1,0,0,0,0)), 'inRange year')
assert.ok(!dateMath.inRange(new Date(2013,0,1,0,0,0,0), date, new Date(2014,5,1,0,0,0,0)), 'inRange year')
assert.ok(dateMath.inRange(date, null, new Date(2014,5,1,0,0,0,0)), 'inRange year')
assert.ok(dateMath.inRange(date, new Date(2013,0,1,0,0,0,0), null), 'inRange year')
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