New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fnzc/nz-bank-account-validator

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fnzc/nz-bank-account-validator - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

27

bankData.js

@@ -58,2 +58,11 @@ const bankData = [

{
id: 4,
branches: [
{
from: 2020,
to: 2024
}
]
},
{
id: 6,

@@ -90,2 +99,11 @@ branches: [

{
id: 10,
branches: [
{
from: 5165,
to: 5169
},
]
},
{
id: 11,

@@ -317,2 +335,11 @@ branches: [

]
},
{
id: 88,
branches: [
{
from: 8800,
to: 8805
}
]
}

@@ -319,0 +346,0 @@ ]

@@ -7,3 +7,8 @@ # Changelog

## [1.0.3] - 2019-08-09
### Modified
- Update bankData to match 2020 Resident Withholding Tax (RWT) and Non-Resident Withholding Tax (NRWT).
- Cross reference with https://www.paymentsnz.co.nz/resources/industry-registers/bank-branch-register/
## [1.0.2] - 2019-01-30

@@ -10,0 +15,0 @@ ### Modified

2

index.js

@@ -50,3 +50,3 @@ const data = require('./bankData.js')

const branch = leftPad(brch, 4, '0')
const account = leftPad(acct,8, '0')
const account = leftPad(acct, 8, '0')
const suffix = leftPad(suf, 4, '0')

@@ -53,0 +53,0 @@ if (+account === 0) return false

{
"name": "@fnzc/nz-bank-account-validator",
"version": "1.0.2",
"version": "1.0.3",
"description": "Validates New Zealand bank accounts",

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

@@ -53,5 +53,7 @@ # nz-bank-account-validator

|03|0001 - 0999, 1300 - 1399, 1500 - 1599, 1700 – 1799 , 1900 - 1999|See note|
|04|2020 - 2024||
|06|0001 - 0999, 1400 - 1499|See note|
|08|6500 - 6599|D|
|09|0000|E|
|10|5165 - 5169|See note|
|11|5000 - 6499, 6600 - 8999|See note|

@@ -81,2 +83,3 @@ |12|3000 - 3299, 3400 – 3499, 3600 - 3699|See note|

|38|9000 - 9499|See note|
|88|8800 - 8805||

@@ -83,0 +86,0 @@ **Note**: If the account base number is below 00990000 then apply algorithm A, otherwise apply algorithm B.

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