Skip to content

Nusantara Valid v0.2.0

Compare
Choose a tag to compare
@magicjar magicjar released this 16 Jul 09:33
· 140 commits to master since this release

New
Add getDataCellularProvider() and getDataCellularProviders() function
Add formatTelephoneNumber() function
Add formatCellularNumber() function
Add getDataTNKB function
Add isValidWithComparison() function
Add formatDate() function helper
Add getDataNIK() function
Add getDataTelephoneNumber() function
Add function documents
Add getDataNIP() function

Fixes
Refactor parseCellularPrefix and parseTelephoneAreaCode into cleanUpPhoneNumber
Refactor getProvinceData() into getDataProvince() and getDataProvinces()
Refactor getBankData() into getDataBank() and getDataBanks()
Refactor IValidLength interface into correctLength() helper
Refactor range() Array.from (ES2015) with ES5 syntax using for loop to support older browsers
Refactor includes() (ES2016) with custom function using loop to support older browsers
Fix e-mail regex groupings
Change NIK validation Date() format with YYYYMMDD or YYYY-MM-DD
Change getDataCellularNumber() object data structure
Remove support for NPWP number parameter type and pad formating