diff --git a/CHANGELOG.md b/CHANGELOG.md index e5ee3aa..ff081de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,14 @@ # Changelog -## [0.0.3](https://github.com/uphold/uk-modulus-checking/tree/HEAD) +## [0.0.4](https://github.com/uphold/uk-modulus-checking/tree/0.0.4) (2017-08-19) +[Full Changelog](https://github.com/uphold/uk-modulus-checking/compare/0.0.3...0.0.4) -[Full Changelog](https://github.com/uphold/uk-modulus-checking/compare/0.0.2...HEAD) +**Merged pull requests:** + +- Update Vocalink data sets and PDF docs [\#8](https://github.com/uphold/uk-modulus-checking/pull/8) ([gunjam](https://github.com/gunjam)) + +## [0.0.3](https://github.com/uphold/uk-modulus-checking/tree/0.0.3) (2016-04-29) +[Full Changelog](https://github.com/uphold/uk-modulus-checking/compare/0.0.2...0.0.3) **Merged pull requests:** @@ -19,3 +25,4 @@ **Merged pull requests:** - Add standard and 'double alternate' methods [\#2](https://github.com/uphold/uk-modulus-checking/pull/2) ([franciscocardoso](https://github.com/franciscocardoso)) + diff --git a/dist/data/valacdos-v370.txt b/dist/data/valacdos-v440.txt similarity index 93% rename from dist/data/valacdos-v370.txt rename to dist/data/valacdos-v440.txt index f9a1cf0..c0a69ca 100644 --- a/dist/data/valacdos-v370.txt +++ b/dist/data/valacdos-v440.txt @@ -1,4 +1,7 @@ 010004 016715 MOD11 0 0 0 0 0 0 8 7 6 5 4 3 2 1 +040004 040004 DBLAL 0 0 0 0 0 0 8 7 6 5 4 3 2 1 +040010 040059 MOD11 0 2 0 0 9 1 2 8 4 3 7 5 6 1 +040406 040406 DBLAL 1 3 4 3 9 3 1 7 5 5 4 5 2 4 050000 050020 MOD11 0 0 0 0 0 0 2 1 7 5 8 2 4 1 050022 058999 MOD11 0 0 0 0 0 0 2 1 7 5 8 2 4 1 070116 070116 MOD11 0 0 7 6 5 8 9 4 5 6 7 8 9 -1 12 @@ -103,6 +106,8 @@ 200000 200002 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 6 200004 200004 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 6 200004 200004 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 6 +200026 200026 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 6 +200026 200026 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 6 200051 200077 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 6 200051 200077 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 6 200079 200097 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 6 @@ -163,6 +168,7 @@ 209036 209128 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 6 209130 209999 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 6 209130 209999 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 6 +230088 230088 MOD10 2 1 2 1 2 1 2 7 4 5 6 3 8 1 230338 230338 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 230338 230338 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 230580 230580 MOD11 0 0 0 0 0 0 2 7 6 5 4 3 2 1 12 @@ -195,12 +201,16 @@ 232130 232130 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 232279 232279 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 232279 232279 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +232283 232283 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +232283 232283 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 232445 232445 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 232445 232445 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 232571 232571 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 232571 232571 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 232636 232636 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 232636 232636 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +232704 232704 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +232704 232704 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 232725 232725 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 232725 232725 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 232813 232813 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 @@ -224,6 +234,8 @@ 233483 233483 MOD11 0 0 0 0 0 0 2 7 6 5 4 3 2 1 233556 233556 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 233556 233556 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +233658 233658 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +233658 233658 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 233693 233693 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 233693 233693 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 233752 233752 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 @@ -234,6 +246,8 @@ 234193 234193 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 234252 234252 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 234252 234252 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +234321 234321 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +234321 234321 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 234377 234377 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 234377 234377 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 234570 234570 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 @@ -261,6 +275,8 @@ 235519 235519 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 235676 235676 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 235676 235676 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +235711 235711 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +235711 235711 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 235756 235756 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 235756 235756 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 235945 235945 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 @@ -272,10 +288,14 @@ 236233 236233 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 236233 236233 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 236247 236247 MOD11 0 0 1 8 2 6 3 7 9 5 8 4 2 1 +236293 236293 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +236293 236293 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 236422 236422 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 236422 236422 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 236527 236527 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 236527 236527 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +236538 236538 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +236538 236538 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 236643 236643 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 236643 236643 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 236761 236761 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 @@ -288,6 +308,8 @@ 237265 237265 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 237355 237355 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 237355 237355 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +237423 237423 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +237423 237423 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 237427 237427 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 237427 237427 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 237563 237563 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 @@ -298,6 +320,8 @@ 237728 237728 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 237873 237873 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 237873 237873 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +238020 238020 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +238020 238020 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 238043 238043 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 238043 238043 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 238051 238051 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 @@ -341,6 +365,8 @@ 239295 239295 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 239296 239318 MOD11 7 6 5 4 3 2 7 6 5 4 3 2 1 0 239296 239318 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +239360 239360 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +239360 239360 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 239380 239380 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 239380 239380 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 239435 239435 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 @@ -847,11 +873,34 @@ 309873 309915 MOD11 0 0 3 2 9 8 1 7 6 5 4 3 2 1 9 309917 309999 MOD11 0 0 3 2 9 8 5 7 6 5 4 3 2 1 2 309917 309999 MOD11 0 0 3 2 9 8 1 7 6 5 4 3 2 1 9 -400000 400514 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 -400000 400514 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +400000 400193 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +400000 400193 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +400196 400514 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +400196 400514 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 400515 400515 MOD11 0 0 0 0 0 0 8 5 7 3 4 9 2 1 -400516 404799 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 -400516 404799 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +400516 401054 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +400516 401054 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +401055 401055 MOD11 0 0 0 0 0 0 8 5 7 3 4 9 2 1 +401056 401198 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +401056 401198 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +401199 401199 MOD11 0 0 0 0 0 0 8 5 7 3 4 9 2 1 +401200 401265 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +401200 401265 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +401266 401266 MOD11 0 0 0 0 0 0 8 5 7 3 4 9 2 1 +401267 401275 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +401267 401275 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +401276 401279 MOD11 0 0 0 0 0 0 8 5 7 3 4 9 2 1 +401280 401899 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +401280 401899 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +401900 401900 MOD11 0 0 0 0 0 0 8 5 7 3 4 9 2 1 +401901 401949 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +401901 401949 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +401950 401950 MOD11 0 0 0 0 0 0 8 5 7 3 4 9 2 1 +401951 404374 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +401951 404374 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 +404375 404384 MOD11 0 0 0 0 0 0 8 5 7 3 4 9 2 1 +404385 404799 MOD11 0 0 0 0 0 0 0 7 6 5 4 3 2 1 +404385 404799 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1 406420 406420 MOD10 0 0 0 0 0 0 8 7 6 5 4 3 2 1 500000 501029 MOD11 0 0 0 0 0 0 8 7 6 5 4 3 2 1 502101 560070 MOD11 0 0 0 0 0 0 8 7 6 5 4 3 2 1 @@ -867,6 +916,8 @@ 601403 608028 MOD11 0 0 0 0 0 0 8 7 6 5 4 3 2 1 608301 608301 MOD10 0 0 0 0 0 0 7 1 3 7 1 3 7 1 608316 608316 MOD10 0 0 0 0 0 0 8 7 6 5 4 3 2 1 +608370 608370 MOD11 0 0 0 0 0 0 8 7 6 5 4 3 2 1 +608371 608371 MOD11 0 0 0 0 0 0 2 8 4 3 7 5 6 1 609593 609593 MOD10 0 0 0 0 0 0 7 1 3 7 1 3 7 1 609599 609599 MOD10 0 0 0 0 0 0 0 5 7 5 2 1 2 1 640001 640001 MOD11 0 0 0 0 0 0 8 7 6 5 4 3 2 1 diff --git a/dist/index.js b/dist/index.js index eee141f..4e8d4cb 100644 --- a/dist/index.js +++ b/dist/index.js @@ -30,10 +30,10 @@ var UkModulusChecking = function () { */ function UkModulusChecking(_ref) { - var _ref$accountNumber = _ref.accountNumber; - var accountNumber = _ref$accountNumber === undefined ? '' : _ref$accountNumber; - var _ref$sortCode = _ref.sortCode; - var sortCode = _ref$sortCode === undefined ? '' : _ref$sortCode; + var _ref$accountNumber = _ref.accountNumber, + accountNumber = _ref$accountNumber === undefined ? '' : _ref$accountNumber, + _ref$sortCode = _ref.sortCode, + sortCode = _ref$sortCode === undefined ? '' : _ref$sortCode; _classCallCheck(this, UkModulusChecking); @@ -346,7 +346,7 @@ var UkModulusChecking = function () { }, { key: 'loadValacdos', value: function loadValacdos() { - var content = _fs2.default.readFileSync(__dirname + '/data/valacdos-v370.txt', 'utf8'); + var content = _fs2.default.readFileSync(__dirname + '/data/valacdos-v440.txt', 'utf8'); var valacdos = []; content.split('\r\n').forEach(function (line) { diff --git a/package.json b/package.json index 392589c..8081f37 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uk-modulus-checking", - "version": "0.0.3", + "version": "0.0.4", "description": "Validate a UK bank account number against a sort code using the VocaLink modulus check", "author": "Uphold", "license": "MIT",