From 13633b25d34e9b825ab0aa579221c8f9dce4b744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sas=CC=8Ca=20Jovanic=CC=81?= Date: Tue, 3 Jan 2023 15:45:55 +0100 Subject: [PATCH] Release 4.2.2 --- dist/ibantools.d.ts | 2 +- dist/ibantools.js | 6 +++--- docs/enums/ValidationErrorsBIC.html | 8 ++++---- docs/enums/ValidationErrorsIBAN.html | 16 ++++++++-------- docs/functions/composeIBAN.html | 2 +- docs/functions/electronicFormatIBAN.html | 2 +- docs/functions/extractBIC.html | 2 +- docs/functions/extractIBAN.html | 2 +- docs/functions/friendlyFormatIBAN.html | 2 +- docs/functions/getCountrySpecifications.html | 2 +- docs/functions/isSEPACountry.html | 2 +- docs/functions/isValidBBAN.html | 2 +- docs/functions/isValidBIC.html | 2 +- docs/functions/isValidIBAN.html | 2 +- docs/functions/setCountryBBANValidation.html | 2 +- docs/functions/validateBIC.html | 2 +- docs/functions/validateIBAN.html | 4 ++-- docs/interfaces/ComposeIBANParams.html | 6 +++--- docs/interfaces/CountryMap.html | 2 +- docs/interfaces/CountrySpec.html | 10 +++++----- docs/interfaces/ExtractBICResult.html | 14 +++++++------- docs/interfaces/ExtractIBANResult.html | 10 +++++----- docs/interfaces/ValidateBICResult.html | 6 +++--- docs/interfaces/ValidateIBANResult.html | 6 +++--- docs/modules.html | 2 +- docs/variables/countrySpecs.html | 2 +- 26 files changed, 59 insertions(+), 59 deletions(-) diff --git a/dist/ibantools.d.ts b/dist/ibantools.d.ts index 5b34bf8..275ade7 100644 --- a/dist/ibantools.d.ts +++ b/dist/ibantools.d.ts @@ -38,7 +38,7 @@ export interface ValidateIBANResult { * validateIBAN * ``` * // returns {errorCodes: [], valid: true} - * ibantools.validateIBAN("NL91 ABNA 0417 1643 00"); + * ibantools.validateIBAN("NL91ABNA0417164300"); * ``` */ export declare function validateIBAN(iban?: string): ValidateIBANResult; diff --git a/dist/ibantools.js b/dist/ibantools.js index 2fd94fb..9e8c66d 100644 --- a/dist/ibantools.js +++ b/dist/ibantools.js @@ -9,7 +9,7 @@ define(["require", "exports"], function (require, exports) { * @package Documentation * @author Saša Jovanić * @module ibantools - * @version 4.2.1 + * @version 4.2.2 * @license MPL-2.0 * @preferred */ @@ -57,7 +57,7 @@ define(["require", "exports"], function (require, exports) { * validateIBAN * ``` * // returns {errorCodes: [], valid: true} - * ibantools.validateIBAN("NL91 ABNA 0417 1643 00"); + * ibantools.validateIBAN("NL91ABNA0417164300"); * ``` */ function validateIBAN(iban) { @@ -86,7 +86,7 @@ define(["require", "exports"], function (require, exports) { result.valid = false; result.errorCodes.push(ValidationErrorsIBAN.ChecksumNotNumber); } - if (!isValidIBANChecksum(iban)) { + if (result.errorCodes.indexOf(ValidationErrorsIBAN.WrongBBANFormat) !== -1 || !isValidIBANChecksum(iban)) { result.valid = false; result.errorCodes.push(ValidationErrorsIBAN.WrongIBANChecksum); } diff --git a/docs/enums/ValidationErrorsBIC.html b/docs/enums/ValidationErrorsBIC.html index 967c78f..f1c3814 100644 --- a/docs/enums/ValidationErrorsBIC.html +++ b/docs/enums/ValidationErrorsBIC.html @@ -19,7 +19,7 @@

Enumeration ValidationErrorsBIC

BIC validation errors

+
  • Defined in IBANTools.ts:417
  • @@ -37,17 +37,17 @@

    Enumeration Members

    NoBICCountry: 1
    +
  • Defined in IBANTools.ts:419
  • NoBICProvided: 0
    +
  • Defined in IBANTools.ts:418
  • WrongBICFormat: 2
    +
  • Defined in IBANTools.ts:420
  • +
  • Defined in IBANTools.ts:55
  • +
  • Defined in IBANTools.ts:184
  • +
  • Defined in IBANTools.ts:256
  • +
  • Defined in IBANTools.ts:478
  • +
  • Defined in IBANTools.ts:223
  • +
  • Defined in IBANTools.ts:276
  • Returns CountryMap

    +
  • Defined in IBANTools.ts:373
  • +
  • Defined in IBANTools.ts:158
  • +
  • Defined in IBANTools.ts:123
  • +
  • Defined in IBANTools.ts:405
  • +
  • Defined in IBANTools.ts:29
  • Returns boolean

    +
  • Defined in IBANTools.ts:849
  • +
  • Defined in IBANTools.ts:438
  • Returns ValidateIBANResult

    +
  • Defined in IBANTools.ts:74
  • +
  • Defined in IBANTools.ts:861