ngx-iban-validator 1.1.6 → 1.1.7
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/README.md +13 -1
- package/dist/README.md +13 -1
- package/dist/code-lengths.js +2 -0
- package/dist/iban.validator.spec.js +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# IBAN Validator
|
|
2
2
|
|
|
3
|
-
IBAN Validator for your reactive Angular forms, comes without any dependencies and can be used even outside of Angular as standalone function in any JS project. It can perform format, digit and length IBAN validations. Currently supports
|
|
3
|
+
IBAN Validator for your reactive Angular forms, comes without any dependencies and can be used even outside of Angular as standalone function in any JS project. It can perform format, digit and length IBAN validations. Currently supports 107 countries
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -79,6 +79,12 @@ Error object contains more details about validation error. You can display error
|
|
|
79
79
|
</form>
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
+
## Demo
|
|
83
|
+
|
|
84
|
+
Check demo application on stackblitz
|
|
85
|
+
|
|
86
|
+
[NGX IBAN Validator Demo Application](https://stackblitz.com/edit/stackblitz-starters-d6zn46?file=src%2Fmain.ts)
|
|
87
|
+
|
|
82
88
|
## Use as standalone function
|
|
83
89
|
|
|
84
90
|
You can use validateIBAN function independently from any forms.
|
|
@@ -143,6 +149,7 @@ const ibanIsInvalid = ibanValidator.validateIBAN(
|
|
|
143
149
|
| Cyprus | CY | 28 |
|
|
144
150
|
| Czech Republic | CZ | 24 |
|
|
145
151
|
| Denmark | DK | 18 |
|
|
152
|
+
| Djibouti | DJ | 27 |
|
|
146
153
|
| Dominican Republic | DO | 28 |
|
|
147
154
|
| Egypt | EG | 29 |
|
|
148
155
|
| El Salvador | SV | 28 |
|
|
@@ -211,6 +218,7 @@ const ibanIsInvalid = ibanValidator.validateIBAN(
|
|
|
211
218
|
| Seychelles | SC | 31 |
|
|
212
219
|
| Slovak Republic | SK | 24 |
|
|
213
220
|
| Slovenia | SI | 19 |
|
|
221
|
+
| Somalia | SO | 23 |
|
|
214
222
|
| Spain | ES | 24 |
|
|
215
223
|
| Sudan | SD | 18 |
|
|
216
224
|
| Sweden | SE | 24 |
|
|
@@ -244,6 +252,10 @@ npm run test
|
|
|
244
252
|
npx tsc
|
|
245
253
|
```
|
|
246
254
|
|
|
255
|
+
# v 1.1.7
|
|
256
|
+
|
|
257
|
+
- Added support for Djibouti and Somalia
|
|
258
|
+
|
|
247
259
|
# v 1.1.6
|
|
248
260
|
|
|
249
261
|
- Updated error display logic
|
package/dist/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# IBAN Validator
|
|
2
2
|
|
|
3
|
-
IBAN Validator for your reactive Angular forms, comes without any dependencies and can be used even outside of Angular as standalone function in any JS project. It can perform format, digit and length IBAN validations. Currently supports
|
|
3
|
+
IBAN Validator for your reactive Angular forms, comes without any dependencies and can be used even outside of Angular as standalone function in any JS project. It can perform format, digit and length IBAN validations. Currently supports 107 countries
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -79,6 +79,12 @@ Error object contains more details about validation error. You can display error
|
|
|
79
79
|
</form>
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
+
## Demo
|
|
83
|
+
|
|
84
|
+
Check demo application on stackblitz
|
|
85
|
+
|
|
86
|
+
[NGX IBAN Validator Demo Application](https://stackblitz.com/edit/stackblitz-starters-d6zn46?file=src%2Fmain.ts)
|
|
87
|
+
|
|
82
88
|
## Use as standalone function
|
|
83
89
|
|
|
84
90
|
You can use validateIBAN function independently from any forms.
|
|
@@ -143,6 +149,7 @@ const ibanIsInvalid = ibanValidator.validateIBAN(
|
|
|
143
149
|
| Cyprus | CY | 28 |
|
|
144
150
|
| Czech Republic | CZ | 24 |
|
|
145
151
|
| Denmark | DK | 18 |
|
|
152
|
+
| Djibouti | DJ | 27 |
|
|
146
153
|
| Dominican Republic | DO | 28 |
|
|
147
154
|
| Egypt | EG | 29 |
|
|
148
155
|
| El Salvador | SV | 28 |
|
|
@@ -211,6 +218,7 @@ const ibanIsInvalid = ibanValidator.validateIBAN(
|
|
|
211
218
|
| Seychelles | SC | 31 |
|
|
212
219
|
| Slovak Republic | SK | 24 |
|
|
213
220
|
| Slovenia | SI | 19 |
|
|
221
|
+
| Somalia | SO | 23 |
|
|
214
222
|
| Spain | ES | 24 |
|
|
215
223
|
| Sudan | SD | 18 |
|
|
216
224
|
| Sweden | SE | 24 |
|
|
@@ -244,6 +252,10 @@ npm run test
|
|
|
244
252
|
npx tsc
|
|
245
253
|
```
|
|
246
254
|
|
|
255
|
+
# v 1.1.7
|
|
256
|
+
|
|
257
|
+
- Added support for Djibouti and Somalia
|
|
258
|
+
|
|
247
259
|
# v 1.1.6
|
|
248
260
|
|
|
249
261
|
- Updated error display logic
|
package/dist/code-lengths.js
CHANGED
|
@@ -118,6 +118,9 @@ describe("validateIBAN", () => {
|
|
|
118
118
|
it("validateIBAN for Denmark DK9520000123456789 should return null", () => {
|
|
119
119
|
expect(validateIBAN({ value: "DK9520000123456789" })).toBe(null);
|
|
120
120
|
});
|
|
121
|
+
it("validateIBAN for Djibouti DJ2110002010010409943020008 should return null", () => {
|
|
122
|
+
expect(validateIBAN({ value: "DJ2110002010010409943020008" })).toBe(null);
|
|
123
|
+
});
|
|
121
124
|
it("validateIBAN for Dominican Republic DO22ACAU00000000000123456789 should return null", () => {
|
|
122
125
|
expect(validateIBAN({ value: "DO22ACAU00000000000123456789" })).toBe(null);
|
|
123
126
|
});
|
|
@@ -322,6 +325,9 @@ describe("validateIBAN", () => {
|
|
|
322
325
|
it("validateIBAN for Slovenia SI56192001234567892 should return null", () => {
|
|
323
326
|
expect(validateIBAN({ value: "SI56192001234567892" })).toBe(null);
|
|
324
327
|
});
|
|
328
|
+
it("validateIBAN for Somalia ES7921000813610123456789 should return null", () => {
|
|
329
|
+
expect(validateIBAN({ value: "SO061000001123123456789" })).toBe(null);
|
|
330
|
+
});
|
|
325
331
|
it("validateIBAN for Spain ES7921000813610123456789 should return null", () => {
|
|
326
332
|
expect(validateIBAN({ value: "ES7921000813610123456789" })).toBe(null);
|
|
327
333
|
});
|