ibantools 4.1.3 → 4.1.4

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.
package/ChangeLog CHANGED
@@ -1,6 +1,11 @@
1
+ 2022-02-03 Saša Jovanić <sasa@simplify.ba>
2
+ * Version 4.1.4
3
+ * Fix issue #103 - Remove Dutch BBAN validation
4
+ * Various development dependencies upgrades
5
+
1
6
  2021-12-17 Saša Jovanić <sasa@simplify.ba>
2
7
  * Version 4.1.3
3
- * Fix issue #85 - Fix NaN issue when calling `validateIBAN``
8
+ * Fix issue #85 - Fix NaN issue when calling `validateIBAN`
4
9
 
5
10
  2021-12-14 Saša Jovanić <sasa@simplify.ba>
6
11
  * Version 4.1.2
@@ -8,7 +8,7 @@
8
8
  * @package Documentation
9
9
  * @author Saša Jovanić
10
10
  * @module ibantools
11
- * @version 4.1.3
11
+ * @version 4.1.4
12
12
  * @license MPL-2.0
13
13
  * @preferred
14
14
  */
@@ -443,23 +443,6 @@ var checkNorwayBBAN = function (bban) {
443
443
  var remainder = sum % 11;
444
444
  return controlDigit === (remainder === 0 ? 0 : 11 - remainder);
445
445
  };
446
- /**
447
- * Used for Netherlands BBAN check
448
- *
449
- * @ignore
450
- */
451
- var checkDutchBBAN = function (bban) {
452
- var bbanWithoutSpacesAndPeriods = bban.replace(/[\s.]+/g, '');
453
- var accountNumber = bbanWithoutSpacesAndPeriods.substring(4, 14);
454
- if (accountNumber.startsWith('000')) {
455
- return true; // Postbank account, no `elfproef` possible
456
- }
457
- var sum = 0;
458
- for (var index = 0; index < 10; index++) {
459
- sum += parseInt(accountNumber.charAt(index), 10) * (10 - index);
460
- }
461
- return sum % 11 === 0;
462
- };
463
446
  /**
464
447
  * Used for Belgian BBAN check
465
448
  *
@@ -1228,7 +1211,6 @@ exports.countrySpecs = {
1228
1211
  NL: {
1229
1212
  chars: 18,
1230
1213
  bban_regexp: '^[A-Z]{4}[0-9]{10}$',
1231
- bban_validation_func: checkDutchBBAN,
1232
1214
  IBANRegistry: true,
1233
1215
  SEPA: true,
1234
1216
  },
@@ -8,7 +8,7 @@
8
8
  * @package Documentation
9
9
  * @author Saša Jovanić
10
10
  * @module ibantools
11
- * @version 4.1.3
11
+ * @version 4.1.4
12
12
  * @license MPL-2.0
13
13
  * @preferred
14
14
  */
@@ -429,23 +429,6 @@ var checkNorwayBBAN = function (bban) {
429
429
  var remainder = sum % 11;
430
430
  return controlDigit === (remainder === 0 ? 0 : 11 - remainder);
431
431
  };
432
- /**
433
- * Used for Netherlands BBAN check
434
- *
435
- * @ignore
436
- */
437
- var checkDutchBBAN = function (bban) {
438
- var bbanWithoutSpacesAndPeriods = bban.replace(/[\s.]+/g, '');
439
- var accountNumber = bbanWithoutSpacesAndPeriods.substring(4, 14);
440
- if (accountNumber.startsWith('000')) {
441
- return true; // Postbank account, no `elfproef` possible
442
- }
443
- var sum = 0;
444
- for (var index = 0; index < 10; index++) {
445
- sum += parseInt(accountNumber.charAt(index), 10) * (10 - index);
446
- }
447
- return sum % 11 === 0;
448
- };
449
432
  /**
450
433
  * Used for Belgian BBAN check
451
434
  *
@@ -1214,7 +1197,6 @@ export var countrySpecs = {
1214
1197
  NL: {
1215
1198
  chars: 18,
1216
1199
  bban_regexp: '^[A-Z]{4}[0-9]{10}$',
1217
- bban_validation_func: checkDutchBBAN,
1218
1200
  IBANRegistry: true,
1219
1201
  SEPA: true,
1220
1202
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ibantools",
3
- "version": "4.1.3",
3
+ "version": "4.1.4",
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",
@@ -64,7 +64,7 @@
64
64
  "gulp-rename": "^2.0",
65
65
  "gulp-shell": "^0.8.0",
66
66
  "gulp-typescript": "^5.0",
67
- "jasmine-core": "^3.8.0",
67
+ "jasmine-core": "^4.0.0",
68
68
  "karma": "^6.3.4",
69
69
  "karma-chrome-launcher": "^3.1",
70
70
  "karma-jasmine": "^4.0",