ibantools 4.1.5 → 4.1.6
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/build/ibantools.d.ts +2 -2
- package/build/ibantools.js +6 -3
- package/jsnext/ibantools.js +6 -3
- package/package.json +7 -4
package/build/ibantools.d.ts
CHANGED
package/build/ibantools.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @package Documentation
|
|
9
9
|
* @author Saša Jovanić
|
|
10
10
|
* @module ibantools
|
|
11
|
-
* @version 4.1.
|
|
11
|
+
* @version 4.1.6
|
|
12
12
|
* @license MPL-2.0
|
|
13
13
|
* @preferred
|
|
14
14
|
*/
|
|
@@ -424,7 +424,7 @@ function extractBIC(inputBic) {
|
|
|
424
424
|
result.countryCode = bic.slice(4, 6);
|
|
425
425
|
result.locationCode = bic.slice(6, 8);
|
|
426
426
|
result.testBIC = result.locationCode[1] === '0' ? true : false;
|
|
427
|
-
result.branchCode = bic.length > 8 ? bic.slice(8) :
|
|
427
|
+
result.branchCode = bic.length > 8 ? bic.slice(8) : null;
|
|
428
428
|
result.valid = true;
|
|
429
429
|
}
|
|
430
430
|
else {
|
|
@@ -1171,7 +1171,10 @@ exports.countrySpecs = {
|
|
|
1171
1171
|
bban_regexp: '^[A-Z0-9]{2}[0-9]{22}$',
|
|
1172
1172
|
},
|
|
1173
1173
|
MM: {},
|
|
1174
|
-
MN: {
|
|
1174
|
+
MN: {
|
|
1175
|
+
chars: 20,
|
|
1176
|
+
bban_regexp: '^[0-9]{16}$',
|
|
1177
|
+
},
|
|
1175
1178
|
MO: {},
|
|
1176
1179
|
MP: {},
|
|
1177
1180
|
MQ: {
|
package/jsnext/ibantools.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @package Documentation
|
|
9
9
|
* @author Saša Jovanić
|
|
10
10
|
* @module ibantools
|
|
11
|
-
* @version 4.1.
|
|
11
|
+
* @version 4.1.6
|
|
12
12
|
* @license MPL-2.0
|
|
13
13
|
* @preferred
|
|
14
14
|
*/
|
|
@@ -411,7 +411,7 @@ export function extractBIC(inputBic) {
|
|
|
411
411
|
result.countryCode = bic.slice(4, 6);
|
|
412
412
|
result.locationCode = bic.slice(6, 8);
|
|
413
413
|
result.testBIC = result.locationCode[1] === '0' ? true : false;
|
|
414
|
-
result.branchCode = bic.length > 8 ? bic.slice(8) :
|
|
414
|
+
result.branchCode = bic.length > 8 ? bic.slice(8) : null;
|
|
415
415
|
result.valid = true;
|
|
416
416
|
}
|
|
417
417
|
else {
|
|
@@ -1157,7 +1157,10 @@ export var countrySpecs = {
|
|
|
1157
1157
|
bban_regexp: '^[A-Z0-9]{2}[0-9]{22}$',
|
|
1158
1158
|
},
|
|
1159
1159
|
MM: {},
|
|
1160
|
-
MN: {
|
|
1160
|
+
MN: {
|
|
1161
|
+
chars: 20,
|
|
1162
|
+
bban_regexp: '^[0-9]{16}$',
|
|
1163
|
+
},
|
|
1161
1164
|
MO: {},
|
|
1162
1165
|
MP: {},
|
|
1163
1166
|
MQ: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ibantools",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.6",
|
|
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",
|
|
@@ -65,15 +65,18 @@
|
|
|
65
65
|
"jasmine-core": "^4.0.0",
|
|
66
66
|
"karma": "^6.3.4",
|
|
67
67
|
"karma-chrome-launcher": "^3.1",
|
|
68
|
-
"karma-jasmine": "^
|
|
68
|
+
"karma-jasmine": "^5.0",
|
|
69
69
|
"karma-requirejs": "^1.1",
|
|
70
70
|
"merge2": "^1.4.1",
|
|
71
|
-
"mocha": "^
|
|
71
|
+
"mocha": "^10.0.0",
|
|
72
72
|
"mocha-lcov-reporter": "^1.2.0",
|
|
73
73
|
"nyc": "^15.1.0",
|
|
74
74
|
"prettier": "^2.3.2",
|
|
75
75
|
"requirejs": "^2.3.6",
|
|
76
|
-
"typedoc": "^0.
|
|
76
|
+
"typedoc": "^0.23.1",
|
|
77
77
|
"typescript": "^4.3.5"
|
|
78
|
+
},
|
|
79
|
+
"resolutions": {
|
|
80
|
+
"source-map": "^0.8.0-beta.0"
|
|
78
81
|
}
|
|
79
82
|
}
|