ibantools 4.3.8 → 4.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@
8
8
  * @package Documentation
9
9
  * @author Saša Jovanić
10
10
  * @module ibantools
11
- * @version 4.3.8
11
+ * @version 4.3.9
12
12
  * @license MPL-2.0
13
13
  * @preferred
14
14
  */
@@ -776,36 +776,6 @@ var checkHungarianBBAN = function (bban) {
776
776
  return controlDigitAccount === (remainder_2 === 0 ? 0 : 10 - remainder_2);
777
777
  }
778
778
  };
779
- /**
780
- * Dutch (NL) BBAN check
781
- *
782
- * @ignore
783
- */
784
- var checkDutchBBAN = function (bban) {
785
- if (bban === '') {
786
- return false;
787
- }
788
- var weights = [10, 9, 8, 7, 6, 5, 4, 3, 2, 1];
789
- var toCheckAccount = bban.substring(4, 14);
790
- if (toCheckAccount.startsWith('000')) {
791
- return true;
792
- }
793
- if (toCheckAccount.startsWith('00')) {
794
- return false;
795
- }
796
- var sum = toCheckAccount
797
- .split('')
798
- .map(function (value, index) {
799
- if (value === '0' && index === 0) {
800
- return 0;
801
- }
802
- var number = parseInt(value, 10);
803
- var weight = weights[index];
804
- return number * weight;
805
- })
806
- .reduce(function (a, b) { return a + b; });
807
- return sum % 11 === 0;
808
- };
809
779
  /**
810
780
  * Set custom BBAN validation function for country.
811
781
  *
@@ -1459,7 +1429,6 @@ exports.countrySpecs = {
1459
1429
  NL: {
1460
1430
  chars: 18,
1461
1431
  bban_regexp: '^[A-Z]{4}[0-9]{10}$',
1462
- bban_validation_func: checkDutchBBAN,
1463
1432
  IBANRegistry: true,
1464
1433
  SEPA: true,
1465
1434
  bank_identifier: '0-3',
@@ -8,7 +8,7 @@
8
8
  * @package Documentation
9
9
  * @author Saša Jovanić
10
10
  * @module ibantools
11
- * @version 4.3.8
11
+ * @version 4.3.9
12
12
  * @license MPL-2.0
13
13
  * @preferred
14
14
  */
@@ -761,36 +761,6 @@ var checkHungarianBBAN = function (bban) {
761
761
  return controlDigitAccount === (remainder_2 === 0 ? 0 : 10 - remainder_2);
762
762
  }
763
763
  };
764
- /**
765
- * Dutch (NL) BBAN check
766
- *
767
- * @ignore
768
- */
769
- var checkDutchBBAN = function (bban) {
770
- if (bban === '') {
771
- return false;
772
- }
773
- var weights = [10, 9, 8, 7, 6, 5, 4, 3, 2, 1];
774
- var toCheckAccount = bban.substring(4, 14);
775
- if (toCheckAccount.startsWith('000')) {
776
- return true;
777
- }
778
- if (toCheckAccount.startsWith('00')) {
779
- return false;
780
- }
781
- var sum = toCheckAccount
782
- .split('')
783
- .map(function (value, index) {
784
- if (value === '0' && index === 0) {
785
- return 0;
786
- }
787
- var number = parseInt(value, 10);
788
- var weight = weights[index];
789
- return number * weight;
790
- })
791
- .reduce(function (a, b) { return a + b; });
792
- return sum % 11 === 0;
793
- };
794
764
  /**
795
765
  * Set custom BBAN validation function for country.
796
766
  *
@@ -1443,7 +1413,6 @@ export var countrySpecs = {
1443
1413
  NL: {
1444
1414
  chars: 18,
1445
1415
  bban_regexp: '^[A-Z]{4}[0-9]{10}$',
1446
- bban_validation_func: checkDutchBBAN,
1447
1416
  IBANRegistry: true,
1448
1417
  SEPA: true,
1449
1418
  bank_identifier: '0-3',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ibantools",
3
- "version": "4.3.8",
3
+ "version": "4.3.9",
4
4
  "description": "Validation, extraction and creation of IBAN, BBAN, BIC/SWIFT numbers plus some other helpful stuff like ISO 3136-1 alpha 2 country list",
5
5
  "keywords": [
6
6
  "IBAN",