Bump mocha
's version from ^3.4.2
to ^7.1.1
in package.json (security versions fix)
Fix bug where leap years would not be accounted for during date validation
BREAKING CHANGE!
Module no longer returns object with methods - it returns just vaildating function itself instead.
Rationale:
There is no need to export all functions in module, exporting the actually used makes more sense.