🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
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

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')