diff --git a/CHANGELOG.md b/CHANGELOG.md index feae69b..dd132e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,200 +10,200 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). > 15 February 2024 -- prettier [`df5047b`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/df5047b126d505bff90364615cd2bb7126ad9ca3) -- ref bug [`a349697`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/a3496972f4127e7c7e4c4b0937aa1ec4ded45841) -- cicd [`6685f7f`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/6685f7f43ee32e1c109ba95ad8d59638fa9749bb) +- prettier [`df5047b`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/df5047b126d505bff90364615cd2bb7126ad9ca3) +- ref bug [`a349697`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/a3496972f4127e7c7e4c4b0937aa1ec4ded45841) +- cicd [`6685f7f`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/6685f7f43ee32e1c109ba95ad8d59638fa9749bb) #### [1.14.1](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.14.0...1.14.1) > 12 February 2024 -- Full upgrade [`#20`](https://github.com/tfso/njs-tfso-bankaccount-validation/pull/20) -- Added changes from master [`ed2f341`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/ed2f341aae6be5824b760c21336680427508d6c3) -- tfso lint install [`0cc7c1e`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/0cc7c1ee59db4c344e7285a9df8eb475a6498fbb) -- test execution improvements [`707a292`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/707a29273549f8f661ae9e5bf7ff3517b4ef15cf) -- lint and prettier install [`250862b`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/250862ba6446fdfe2869c85699baa0088bcedbbf) -- fixed prerelease from main [`53242b8`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/53242b8ec0dbab13acf7384fbb577fea15432675) -- adding changelog creation in the CICD pipiline [`e930f91`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/e930f91b0649d795ed60251a68de689881330d4e) -- update CICD [`23fe048`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/23fe048df1a18dbe49390aae7865177d9f8bc579) -- updated the Readme [`b4afe50`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/b4afe50f49f1a064bbceba364e182b49453a7259) -- moving test folder [`a2faeb9`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/a2faeb97900c0902c3b095f2d4c8ec125b37d525) -- eslint config [`7334298`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/7334298e650eaf964a499d89a13715ce7e32d495) -- lint and prettier config [`5f9e9c6`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/5f9e9c69dc6394c08accca549d424e06758e4009) -- fixing eslint errors [`8a91cb5`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/8a91cb5d1ea38f6a72ca41f1399a74f6b1f22723) -- updating build config [`6f72c5a`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/6f72c5a1ac836c2665780630a08378694654e6aa) -- eslint config [`e6d37bd`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/e6d37bd9a7fc5289a3bd840d085c2d15e2552e8e) -- release fix [`3211c3a`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/3211c3a721df90b46488056e107ff1cbf796e8db) -- remove dump [`2fdd27b`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/2fdd27b7bf8fc48006a56ed3c5743d37a1cd0295) -- dist in gitignore [`50df3fc`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/50df3fc343e0b118b05f05270a459eb28664f0fa) -- update lint [`febac1c`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/febac1ca4fe22ef8112b599c09f7b9b7c6590633) +- Full upgrade [`#20`](https://github.com/tfso/njs-tfso-bankaccount-validation/pull/20) +- Added changes from master [`ed2f341`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/ed2f341aae6be5824b760c21336680427508d6c3) +- tfso lint install [`0cc7c1e`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/0cc7c1ee59db4c344e7285a9df8eb475a6498fbb) +- test execution improvements [`707a292`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/707a29273549f8f661ae9e5bf7ff3517b4ef15cf) +- lint and prettier install [`250862b`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/250862ba6446fdfe2869c85699baa0088bcedbbf) +- fixed prerelease from main [`53242b8`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/53242b8ec0dbab13acf7384fbb577fea15432675) +- adding changelog creation in the CICD pipiline [`e930f91`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/e930f91b0649d795ed60251a68de689881330d4e) +- update CICD [`23fe048`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/23fe048df1a18dbe49390aae7865177d9f8bc579) +- updated the Readme [`b4afe50`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/b4afe50f49f1a064bbceba364e182b49453a7259) +- moving test folder [`a2faeb9`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/a2faeb97900c0902c3b095f2d4c8ec125b37d525) +- eslint config [`7334298`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/7334298e650eaf964a499d89a13715ce7e32d495) +- lint and prettier config [`5f9e9c6`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/5f9e9c69dc6394c08accca549d424e06758e4009) +- fixing eslint errors [`8a91cb5`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/8a91cb5d1ea38f6a72ca41f1399a74f6b1f22723) +- updating build config [`6f72c5a`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/6f72c5a1ac836c2665780630a08378694654e6aa) +- eslint config [`e6d37bd`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/e6d37bd9a7fc5289a3bd840d085c2d15e2552e8e) +- release fix [`3211c3a`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/3211c3a721df90b46488056e107ff1cbf796e8db) +- remove dump [`2fdd27b`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/2fdd27b7bf8fc48006a56ed3c5743d37a1cd0295) +- dist in gitignore [`50df3fc`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/50df3fc343e0b118b05f05270a459eb28664f0fa) +- update lint [`febac1c`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/febac1ca4fe22ef8112b599c09f7b9b7c6590633) #### [1.14.0](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.13.1...1.14.0) > 11 February 2024 -- Added support for 5 digit clearing number starting with 8 [`#21`](https://github.com/tfso/njs-tfso-bankaccount-validation/pull/21) -- Added support for Swedbank account with 5 digit clearing number starting with 8 [`3b59dc1`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/3b59dc1834f349ee3a2b04477e2a5b74d65a5cac) +- Added support for 5 digit clearing number starting with 8 [`#21`](https://github.com/tfso/njs-tfso-bankaccount-validation/pull/21) +- Added support for Swedbank account with 5 digit clearing number starting with 8 [`3b59dc1`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/3b59dc1834f349ee3a2b04477e2a5b74d65a5cac) #### [1.13.1](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.13.0...1.13.1) > 14 July 2023 -- Workflow Release [`#19`](https://github.com/tfso/njs-tfso-bankaccount-validation/pull/19) -- Bypass validation if clearing number is specified ERP-1075 [`#11`](https://github.com/tfso/njs-tfso-bankaccount-validation/pull/11) -- Extended swedish bban validation rules [`#10`](https://github.com/tfso/njs-tfso-bankaccount-validation/pull/10) -- Merge pull request #11 from tfso/feature/ERP-1075-removed-validation [`#ERP-1075`](https://24so.atlassian.net/browse/ERP-1075) [`#ERP-1075`](https://24so.atlassian.net/browse/ERP-1075) -- Updating service [`9263516`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/9263516306f3dbba31b2918d9392fffabb5ee65c) -- updating libs [`60ceafa`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/60ceafa0177028fe5c9d5a864f4da32f80d3cfb5) -- adding coverage tool. [`1691b73`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/1691b73593fa3906846786db02b4f915f14b801a) -- initial commit [`54d69fc`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/54d69fc9798aec91f5869fe1ba48690b6fb9afc8) -- working with swedish bban validation [`3a381b1`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/3a381b1a46a574c69686178cef09ab7c6237c480) -- adding validators [`0f52042`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/0f5204252c15aab74ea700957bc47eff603caafe) -- Changed syntax and added reason messages [`0603667`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/060366795250f25a6af51fa7146de7ba3c83a6b2) -- Updating iban vbalidation [`1e98df5`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/1e98df5e6722ebb73d5543cbafcd5acb419b0b63) -- Adding simple length validations for DE, FI PL [`1f6d883`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/1f6d883549af2954e11a6938926a3c9eec2acef0) -- adding validators [`c1b04cd`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/c1b04cdbce7f7c70c35e86cda4f14a202a67ba89) -- started se development [`91685f9`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/91685f91d65fbd57ea5f323392e254f619236746) -- added mod 10 check for swedish plusgiro and bankgiro bank account numbers [`ae1c651`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/ae1c6517b77a7f8624e66e10b18849310c13c0c0) -- added acceptance type [`03255d3`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/03255d324248e775c46cf482d55ae5e1df453aba) -- doing modulus check [`6c391c4`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/6c391c4177d737c2422d1b069b1487b155c2f4a9) -- Refactoring parsing of clearing and accountNumber for swedish bban accounts [`14a5fde`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/14a5fded75e951771ff4db75fee5e20624c95bfb) -- let > const in the whole project where possible [`f9ba585`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/f9ba585020a4ce4ca3e592968f43123a154d095c) -- Adding simple Danish bank account validation [`ec6c178`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/ec6c1782664b32846f5ac61b8fd3085dceb859a4) -- refactor test tooling [`905137b`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/905137b783253223b064a125d2800c0b27d5efc1) -- simplification [`0219910`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/02199101e7dc15dfa8dfc058bd6f4bc0756a9c5b) -- added more tests for swedish bban account numbers [`86747be`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/86747be8541bf383b365da9ee5823770a4539d52) -- working with swedish bban validation [`5f544d3`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/5f544d3e2a367e268cf5dede39a61e1ff51ac62e) -- iban validation correction [`2b38f25`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/2b38f25fc3bc89d49069b3895b3abf6937e6e0f2) -- Extended format on the plus giro format [`1d669f8`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/1d669f87f54f378d2645ec8b0f0c431e400ff269) -- cleanup [`20ddde5`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/20ddde54a15c96a26b9f174dac4142812b8bcac5) -- Fixing overlapping range issues with nordea accounts (personkonto) [`46b11a7`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/46b11a775f9af997116acb963b9ee6dcade7e117) -- Fixed validation and unit tests [`6d9c6ca`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/6d9c6ca4e55b120e5a58d07c9bfad5f9e4fd64d0) -- added tooling for generating bank account numbers [`f0375e9`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/f0375e9e8196dbf2f73f21c891f0dec3b406f64e) -- added a simple and handy tool: account generation and validation [`3012e8e`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/3012e8eef397dbcd9bd0ed314aecc554f9b91d9c) -- Bypass validation if clearing number is specified, becauses swedbanks 5 digit clearing number is not supported in the current algorithm [`8256165`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/8256165284059bb8c0b898c3b0688a935b93f2ba) -- bugfix [`b4bf9f7`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/b4bf9f77e8526a7ad3c7a85c946be5781c37ea9c) -- returning null when no validators is found [`ce4baba`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/ce4babaeeed24d29263fabb158bf5e89ecc6fdaf) -- upgrade ibantools to newest version [`725a3c0`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/725a3c05d859c79030aff7d6308630367c13de1d) -- exposing validators [`660217f`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/660217f31f72aaae5e33baa210b76deb68b0ae23) -- polish [`252d595`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/252d5955da9cc525ec2e351cf277c1e11b901c97) -- improved test tool [`20edb81`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/20edb8132c0fe7ce0655d06fa7e83ee16dbb1f6f) -- version bump [`cc2822a`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/cc2822af10614a0d882dc45a893e602132ad7d78) -- Updating service [`cbac288`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/cbac2886f4159fb8d071acf2ff53a2988b281c0a) -- Adding [`d0d20cb`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/d0d20cbc1ff884046affbf68ec0537973aafc803) -- tagging [`3721cfc`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/3721cfcb82f09826523e8b66f5009d6164c75992) -- Improved test coverage when performing modulus calculation of swedish bban account [`cb9c6f7`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/cb9c6f775486a4b30f3ac114496c820efa27fb67) -- inc minor version (extended api) [`c5485be`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/c5485be13f88e906f9598c9dcbc5358e8666cafe) -- Merge pull request #9 [`51b259d`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/51b259ddadbb49148fd1aa58faeaa178ebaec6fe) -- Added mod 10 check for swedish plusgiro and bankgiro [`b53cbe8`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/b53cbe87a66ebfa350ec99ace97b83026ba1c11e) -- setting default acceptance type to 'all' [`9dd8148`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/9dd81486c2831fec8c80ccfa925e34c099606470) -- Updating service [`e11567c`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/e11567ca99e52830db52defbb243f95a5be1619c) -- Create README.md [`fe67f14`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/fe67f14c8bf527de5a55ee6a3154fc5dae97c83a) +- Workflow Release [`#19`](https://github.com/tfso/njs-tfso-bankaccount-validation/pull/19) +- Bypass validation if clearing number is specified ERP-1075 [`#11`](https://github.com/tfso/njs-tfso-bankaccount-validation/pull/11) +- Extended swedish bban validation rules [`#10`](https://github.com/tfso/njs-tfso-bankaccount-validation/pull/10) +- Merge pull request #11 from tfso/feature/ERP-1075-removed-validation [`#ERP-1075`](https://24so.atlassian.net/browse/ERP-1075) [`#ERP-1075`](https://24so.atlassian.net/browse/ERP-1075) +- Updating service [`9263516`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/9263516306f3dbba31b2918d9392fffabb5ee65c) +- updating libs [`60ceafa`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/60ceafa0177028fe5c9d5a864f4da32f80d3cfb5) +- adding coverage tool. [`1691b73`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/1691b73593fa3906846786db02b4f915f14b801a) +- initial commit [`54d69fc`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/54d69fc9798aec91f5869fe1ba48690b6fb9afc8) +- working with swedish bban validation [`3a381b1`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/3a381b1a46a574c69686178cef09ab7c6237c480) +- adding validators [`0f52042`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/0f5204252c15aab74ea700957bc47eff603caafe) +- Changed syntax and added reason messages [`0603667`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/060366795250f25a6af51fa7146de7ba3c83a6b2) +- Updating iban vbalidation [`1e98df5`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/1e98df5e6722ebb73d5543cbafcd5acb419b0b63) +- Adding simple length validations for DE, FI PL [`1f6d883`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/1f6d883549af2954e11a6938926a3c9eec2acef0) +- adding validators [`c1b04cd`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/c1b04cdbce7f7c70c35e86cda4f14a202a67ba89) +- started se development [`91685f9`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/91685f91d65fbd57ea5f323392e254f619236746) +- added mod 10 check for swedish plusgiro and bankgiro bank account numbers [`ae1c651`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/ae1c6517b77a7f8624e66e10b18849310c13c0c0) +- added acceptance type [`03255d3`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/03255d324248e775c46cf482d55ae5e1df453aba) +- doing modulus check [`6c391c4`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/6c391c4177d737c2422d1b069b1487b155c2f4a9) +- Refactoring parsing of clearing and accountNumber for swedish bban accounts [`14a5fde`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/14a5fded75e951771ff4db75fee5e20624c95bfb) +- let > const in the whole project where possible [`f9ba585`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/f9ba585020a4ce4ca3e592968f43123a154d095c) +- Adding simple Danish bank account validation [`ec6c178`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/ec6c1782664b32846f5ac61b8fd3085dceb859a4) +- refactor test tooling [`905137b`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/905137b783253223b064a125d2800c0b27d5efc1) +- simplification [`0219910`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/02199101e7dc15dfa8dfc058bd6f4bc0756a9c5b) +- added more tests for swedish bban account numbers [`86747be`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/86747be8541bf383b365da9ee5823770a4539d52) +- working with swedish bban validation [`5f544d3`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/5f544d3e2a367e268cf5dede39a61e1ff51ac62e) +- iban validation correction [`2b38f25`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/2b38f25fc3bc89d49069b3895b3abf6937e6e0f2) +- Extended format on the plus giro format [`1d669f8`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/1d669f87f54f378d2645ec8b0f0c431e400ff269) +- cleanup [`20ddde5`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/20ddde54a15c96a26b9f174dac4142812b8bcac5) +- Fixing overlapping range issues with nordea accounts (personkonto) [`46b11a7`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/46b11a775f9af997116acb963b9ee6dcade7e117) +- Fixed validation and unit tests [`6d9c6ca`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/6d9c6ca4e55b120e5a58d07c9bfad5f9e4fd64d0) +- added tooling for generating bank account numbers [`f0375e9`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/f0375e9e8196dbf2f73f21c891f0dec3b406f64e) +- added a simple and handy tool: account generation and validation [`3012e8e`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/3012e8eef397dbcd9bd0ed314aecc554f9b91d9c) +- Bypass validation if clearing number is specified, becauses swedbanks 5 digit clearing number is not supported in the current algorithm [`8256165`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/8256165284059bb8c0b898c3b0688a935b93f2ba) +- bugfix [`b4bf9f7`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/b4bf9f77e8526a7ad3c7a85c946be5781c37ea9c) +- returning null when no validators is found [`ce4baba`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/ce4babaeeed24d29263fabb158bf5e89ecc6fdaf) +- upgrade ibantools to newest version [`725a3c0`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/725a3c05d859c79030aff7d6308630367c13de1d) +- exposing validators [`660217f`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/660217f31f72aaae5e33baa210b76deb68b0ae23) +- polish [`252d595`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/252d5955da9cc525ec2e351cf277c1e11b901c97) +- improved test tool [`20edb81`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/20edb8132c0fe7ce0655d06fa7e83ee16dbb1f6f) +- version bump [`cc2822a`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/cc2822af10614a0d882dc45a893e602132ad7d78) +- Updating service [`cbac288`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/cbac2886f4159fb8d071acf2ff53a2988b281c0a) +- Adding [`d0d20cb`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/d0d20cbc1ff884046affbf68ec0537973aafc803) +- tagging [`3721cfc`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/3721cfcb82f09826523e8b66f5009d6164c75992) +- Improved test coverage when performing modulus calculation of swedish bban account [`cb9c6f7`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/cb9c6f775486a4b30f3ac114496c820efa27fb67) +- inc minor version (extended api) [`c5485be`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/c5485be13f88e906f9598c9dcbc5358e8666cafe) +- Merge pull request #9 [`51b259d`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/51b259ddadbb49148fd1aa58faeaa178ebaec6fe) +- Added mod 10 check for swedish plusgiro and bankgiro [`b53cbe8`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/b53cbe87a66ebfa350ec99ace97b83026ba1c11e) +- setting default acceptance type to 'all' [`9dd8148`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/9dd81486c2831fec8c80ccfa925e34c099606470) +- Updating service [`e11567c`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/e11567ca99e52830db52defbb243f95a5be1619c) +- Create README.md [`fe67f14`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/fe67f14c8bf527de5a55ee6a3154fc5dae97c83a) #### [1.13.0](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.12.0...1.13.0) > 16 March 2022 -- Published by publish-to-git [`3282a3c`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/3282a3c3048b5432c55eb065ec208eec8a7f81ad) +- Published by publish-to-git [`3282a3c`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/3282a3c3048b5432c55eb065ec208eec8a7f81ad) #### [1.12.0](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.12.0-prerelease...1.12.0) > 23 February 2022 -- Published by publish-to-git [`ee3e903`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/ee3e90335c26b1502345388e546b747830275486) +- Published by publish-to-git [`ee3e903`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/ee3e90335c26b1502345388e546b747830275486) #### [1.12.0-prerelease](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.11.0...1.12.0-prerelease) > 22 February 2022 -- Published by publish-to-git [`2351e17`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/2351e1769ff8866aaa63e4d606f790688d0ca03f) +- Published by publish-to-git [`2351e17`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/2351e1769ff8866aaa63e4d606f790688d0ca03f) #### [1.11.0](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.10.0...1.11.0) > 10 February 2022 -- Published by publish-to-git [`404b281`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/404b281f5f97e2e9ec84bbb42a3a86cef330899e) +- Published by publish-to-git [`404b281`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/404b281f5f97e2e9ec84bbb42a3a86cef330899e) #### [1.10.0](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.9.0...1.10.0) > 19 November 2021 -- Published by publish-to-git [`5b4e51e`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/5b4e51ea9a643ff8eb33c5c1a2d31e812c8788a1) +- Published by publish-to-git [`5b4e51e`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/5b4e51ea9a643ff8eb33c5c1a2d31e812c8788a1) #### [1.9.0](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.8.2...1.9.0) > 14 September 2020 -- Published by publish-to-git [`e69ab39`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/e69ab39f83c955a02216c31a784d9ad0095b143a) +- Published by publish-to-git [`e69ab39`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/e69ab39f83c955a02216c31a784d9ad0095b143a) #### [1.8.2](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.8.1...1.8.2) > 20 August 2020 -- Published by publish-to-git [`7cc0ba3`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/7cc0ba3f9fb56f1ed25cc3192add87429f32a671) +- Published by publish-to-git [`7cc0ba3`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/7cc0ba3f9fb56f1ed25cc3192add87429f32a671) #### [1.8.1](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.8.0...1.8.1) > 3 July 2020 -- Published by publish-to-git [`61c2dc1`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/61c2dc14ac298d59ccda25bf086fd86ac1ffce3d) +- Published by publish-to-git [`61c2dc1`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/61c2dc14ac298d59ccda25bf086fd86ac1ffce3d) #### [1.8.0](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.7.0...1.8.0) > 3 July 2020 -- Published by publish-to-git [`2773325`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/27733252ad54f84d61a47b4ad555eb8a9bff2d34) +- Published by publish-to-git [`2773325`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/27733252ad54f84d61a47b4ad555eb8a9bff2d34) #### [1.7.0](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.6.1...1.7.0) > 3 April 2019 -- Published by publish-to-git [`a4f9b68`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/a4f9b68d25fe859710ac0188308fe9621565bb44) +- Published by publish-to-git [`a4f9b68`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/a4f9b68d25fe859710ac0188308fe9621565bb44) #### [1.6.1](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.6.0...1.6.1) > 19 March 2019 -- Published by publish-to-git [`716eea7`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/716eea76886d4c72335b278cbcf18727deb3c117) +- Published by publish-to-git [`716eea7`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/716eea76886d4c72335b278cbcf18727deb3c117) #### [1.6.0](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.5.0...1.6.0) > 19 March 2019 -- Published by publish-to-git [`13795e4`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/13795e488ae55a297f8adcc1b97017618d36c003) +- Published by publish-to-git [`13795e4`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/13795e488ae55a297f8adcc1b97017618d36c003) #### [1.5.0](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.4.0...1.5.0) > 22 January 2019 -- Published by publish-to-git [`f45c80c`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/f45c80ca8236e17dcda46d9c89e20aa9cbd06886) +- Published by publish-to-git [`f45c80c`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/f45c80ca8236e17dcda46d9c89e20aa9cbd06886) #### [1.4.0](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.3.0...1.4.0) > 21 January 2019 -- Published by publish-to-git [`6005e23`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/6005e238ce5fc7a8b49d33a3ad420c5d6c480219) +- Published by publish-to-git [`6005e23`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/6005e238ce5fc7a8b49d33a3ad420c5d6c480219) #### [1.3.0](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.2.0...1.3.0) > 21 January 2019 -- Published by publish-to-git [`3c18d04`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/3c18d04d1eee5415ef3a4de5b4fe0baa41c0d8b2) +- Published by publish-to-git [`3c18d04`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/3c18d04d1eee5415ef3a4de5b4fe0baa41c0d8b2) #### [1.2.0](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.1.0...1.2.0) > 21 January 2019 -- Published by publish-to-git [`a63ac9c`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/a63ac9c2dfa08e8f66946193892660456a7cc20c) +- Published by publish-to-git [`a63ac9c`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/a63ac9c2dfa08e8f66946193892660456a7cc20c) #### [1.1.0](https://github.com/tfso/njs-tfso-bankaccount-validation/compare/1.0.0...1.1.0) > 21 January 2019 -- Published by publish-to-git [`2d80a92`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/2d80a9224a4d9594cfaa8a18e25df99225ede025) +- Published by publish-to-git [`2d80a92`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/2d80a9224a4d9594cfaa8a18e25df99225ede025) #### 1.0.0 > 21 January 2019 -- Published by publish-to-git [`ce415a5`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/ce415a560751cfe5cfca8cae3d5e805d3c80dca2) +- Published by publish-to-git [`ce415a5`](https://github.com/tfso/njs-tfso-bankaccount-validation/commit/ce415a560751cfe5cfca8cae3d5e805d3c80dca2) diff --git a/src/validators/SwedishBbanValidation.ts b/src/validators/SwedishBbanValidation.ts index c493746..d4d6ce9 100644 --- a/src/validators/SwedishBbanValidation.ts +++ b/src/validators/SwedishBbanValidation.ts @@ -78,7 +78,7 @@ export class SwedishBbanValidation implements IStrictValidation { this._syntaxTester = /^(\d{4}(:?\d{7}|\d{9}|\d{10})|(:?\d{7}|\d{9}|\d{10}))$/ /* syntax: 5 digit clearing starting with 8 + nolla + account number 9 digit */ - this._syntaxTesterSwedbank = /^8\d{4}0\d{9}$/ + this._syntaxTesterSwedbank = /^8\d{4}\d{10}$/ } canValidate(input: ValidationInput): boolean { @@ -117,26 +117,15 @@ export class SwedishBbanValidation implements IStrictValidation { } } + // prettier-ignore if ( - (account.type === '1.1' && - account.length === 7 && - sweMod11(account.bban.slice(1))) || - (account.type === '1.2' && - account.length === 7 && - sweMod11(account.bban)) || - (account.type === '2.1' && - account.length === 10 && - sweMod10(account.accountNumber)) || - (account.type === '2.2' && - account.length === 9 && - sweMod11(account.accountNumber)) || - (account.type === '2.3' && - account.length === 10 && - sweMod10(account.accountNumber)) || + (account.type === '1.1' && account.length === 7 && sweMod11(account.bban.slice(1))) || + (account.type === '1.2' && account.length === 7 && sweMod11(account.bban)) || + (account.type === '2.1' && account.length === 10 && sweMod10(account.accountNumber)) || + (account.type === '2.2' && account.length === 9 && sweMod11(account.accountNumber)) || + (account.type === '2.3' && account.length === 10 && sweMod10(account.accountNumber)) || // supporting 5 digit clearing number - Swedbank - (account.type === '2.3' && - account.length === 11 && - sweMod10(account.accountNumber.slice(-10))) + (account.type === '2.3' && account.length === 11 && sweMod10(account.accountNumber.slice(-10))) ) { return { valid: true, diff --git a/tool/helpers.js b/tool/helpers.js index 77383f2..e83b247 100644 --- a/tool/helpers.js +++ b/tool/helpers.js @@ -1,7 +1,5 @@ /* eslint-disable */ -const { - createValidationWithAllAvailableValidators, -} = require('../dist/src/index') +const { createValidationWithAllAvailableValidators } = require('../dist/index') let bankAccountValidation = createValidationWithAllAvailableValidators({}) function calculate(countryCode, accountNumber, type, resultFunc = console.log) {