This repository has been archived by the owner on Nov 16, 2018. It is now read-only.
v2 Release
Breaking Changes
- Removed the ability to send single strings into the main function (call the individual functions)
- Removed the ability to send partial objects to the main function
- Changed the expected card object property name from
expire
todate
New
number
which can be used to validate a credit card numbercvn
which can be used to validate a credit card cvn/security codeexpired
which can be used to validate a credit cards expiration datematches
which can be used to see if a cvn and a card number match (the cvn length matches the card type)validation
which is the core functionality and only accepts an object- A match property was added to the results that says if it failed by a rule or if it failed matching
- Type Errors have been added when the correct type of value isn't provided (String or Number)
- Converted to a webpack build along with automation scripts for docs, and building files
- README has been updated with all the needed changes
Fixes
- Improved the overall structure of the code which allowed removal of a lot of internals
- Cleaner organization now that the module isn't supporting so many different types