ngx-iban-validator 1.1.8 → 1.1.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.
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 107 countries
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 108 countries
4
4
 
5
5
  ## Install
6
6
 
@@ -222,6 +222,7 @@ const ibanIsInvalid = ibanValidator.validateIBAN(
222
222
  | Somalia | SO | 23 |
223
223
  | Spain | ES | 24 |
224
224
  | Sudan | SD | 18 |
225
+ | Sultanate of Oman | OM | 23 |
225
226
  | Sweden | SE | 24 |
226
227
  | Switzerland | CH | 21 |
227
228
  | Timor-Leste | TL | 23 |
@@ -253,6 +254,10 @@ npm run test
253
254
  npx tsc
254
255
  ```
255
256
 
257
+ # v 1.1.9
258
+
259
+ - Added support for Sultanate of Oman
260
+
256
261
  # v 1.1.8
257
262
 
258
263
  - Added support for Falkland Islands
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 107 countries
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 108 countries
4
4
 
5
5
  ## Install
6
6
 
@@ -222,6 +222,7 @@ const ibanIsInvalid = ibanValidator.validateIBAN(
222
222
  | Somalia | SO | 23 |
223
223
  | Spain | ES | 24 |
224
224
  | Sudan | SD | 18 |
225
+ | Sultanate of Oman | OM | 23 |
225
226
  | Sweden | SE | 24 |
226
227
  | Switzerland | CH | 21 |
227
228
  | Timor-Leste | TL | 23 |
@@ -253,6 +254,10 @@ npm run test
253
254
  npx tsc
254
255
  ```
255
256
 
257
+ # v 1.1.9
258
+
259
+ - Added support for Sultanate of Oman
260
+
256
261
  # v 1.1.8
257
262
 
258
263
  - Added support for Falkland Islands
@@ -80,6 +80,7 @@ export const codeLengths = {
80
80
  NI: 32,
81
81
  NL: 18,
82
82
  NO: 15,
83
+ OM: 23,
83
84
  PK: 24,
84
85
  PL: 28,
85
86
  PS: 29,
@@ -337,6 +337,9 @@ describe("validateIBAN", () => {
337
337
  it("validateIBAN for Sudan SD8811123456789012 should return null", () => {
338
338
  expect(validateIBAN({ value: "SD8811123456789012" })).toBe(null);
339
339
  });
340
+ it("validateIBAN for Sultanate of Oman OM040280000012345678901 should return null", () => {
341
+ expect(validateIBAN({ value: "OM040280000012345678901" })).toBe(null);
342
+ });
340
343
  it("validateIBAN for Sweden SE7280000810340009783242 should return null", () => {
341
344
  expect(validateIBAN({ value: "SE7280000810340009783242" })).toBe(null);
342
345
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-iban-validator",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/SKaDiZZ/ngx-iban-validator"