ibantools 4.3.7 → 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.7
11
+ * @version 4.3.9
12
12
  * @license MPL-2.0
13
13
  * @preferred
14
14
  */
@@ -776,37 +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
- console.log(sum);
808
- return sum % 11 === 0;
809
- };
810
779
  /**
811
780
  * Set custom BBAN validation function for country.
812
781
  *
@@ -1460,7 +1429,6 @@ exports.countrySpecs = {
1460
1429
  NL: {
1461
1430
  chars: 18,
1462
1431
  bban_regexp: '^[A-Z]{4}[0-9]{10}$',
1463
- bban_validation_func: checkDutchBBAN,
1464
1432
  IBANRegistry: true,
1465
1433
  SEPA: true,
1466
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.6
11
+ * @version 4.3.9
12
12
  * @license MPL-2.0
13
13
  * @preferred
14
14
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ibantools",
3
- "version": "4.3.7",
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",