Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ibantools

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ibantools - npm Package Compare versions

Comparing version 3.2.3 to 3.2.4

20

build/ibantools.d.ts

@@ -175,1 +175,21 @@ /*!

}
/**
* Interface for IBAN Country Specification
*/
interface CountrySpecInternal {
chars?: number;
bban_regexp?: string;
IBANRegistry?: boolean;
SEPA?: boolean;
}
/**
* Interface for Map of Country Specifications
*/
interface CountryMapInternal {
[code: string]: CountrySpecInternal;
}
/**
* Country specifications
*/
export declare const countrySpecs: CountryMapInternal;
export {};

21

build/ibantools.js

@@ -11,3 +11,3 @@ /*!

* @module ibantools
* @version 3.2.3
* @version 3.2.4
* @license MPL-2.0

@@ -18,3 +18,3 @@ * @preferred

Object.defineProperty(exports, "__esModule", { value: true });
exports.extractBIC = exports.isValidBIC = exports.getCountrySpecifications = exports.friendlyFormatIBAN = exports.electronicFormatIBAN = exports.extractIBAN = exports.composeIBAN = exports.isSEPACountry = exports.isValidBBAN = exports.isValidIBAN = void 0;
exports.countrySpecs = exports.extractBIC = exports.isValidBIC = exports.getCountrySpecifications = exports.friendlyFormatIBAN = exports.electronicFormatIBAN = exports.extractIBAN = exports.composeIBAN = exports.isSEPACountry = exports.isValidBBAN = exports.isValidIBAN = void 0;
/**

@@ -34,3 +34,3 @@ * Validate IBAN

var reg = new RegExp('^[0-9]{2}$', '');
var spec = countrySpecs[iban.slice(0, 2)];
var spec = exports.countrySpecs[iban.slice(0, 2)];
if (spec !== undefined &&

@@ -64,3 +64,3 @@ spec.bban_regexp &&

if (bban !== undefined && bban !== null && countryCode !== undefined && countryCode !== null) {
var spec = countrySpecs[countryCode];
var spec = exports.countrySpecs[countryCode];
if (spec !== undefined &&

@@ -93,3 +93,3 @@ spec !== null &&

if (countryCode !== undefined && countryCode !== null) {
var spec = countrySpecs[countryCode];
var spec = exports.countrySpecs[countryCode];
if (spec !== undefined) {

@@ -115,3 +115,3 @@ return spec.SEPA ? spec.SEPA : false;

}
var spec = countrySpecs[params.countryCode];
var spec = exports.countrySpecs[params.countryCode];
if (formated_bban !== '' &&

@@ -276,4 +276,4 @@ spec !== undefined &&

var countyMap = {};
for (var countyCode in countrySpecs) {
var county = countrySpecs[countyCode];
for (var countyCode in exports.countrySpecs) {
var county = exports.countrySpecs[countyCode];
countyMap[countyCode] = {

@@ -311,3 +311,3 @@ chars: county.chars ? county.chars : null,

var reg = new RegExp('^[a-zA-Z]{6}[a-zA-Z0-9]{2}([a-zA-Z0-9]{3})?$', '');
var spec = countrySpecs[bic.toUpperCase().slice(4, 6)];
var spec = exports.countrySpecs[bic.toUpperCase().slice(4, 6)];
return reg.test(bic) && spec !== undefined;

@@ -342,5 +342,4 @@ }

* Country specifications
* @ignore
*/
var countrySpecs = {
exports.countrySpecs = {
AD: {

@@ -347,0 +346,0 @@ chars: 24,

@@ -11,3 +11,3 @@ /*!

* @module ibantools
* @version 3.2.3
* @version 3.2.4
* @license MPL-2.0

@@ -323,5 +323,4 @@ * @preferred

* Country specifications
* @ignore
*/
var countrySpecs = {
export var countrySpecs = {
AD: {

@@ -328,0 +327,0 @@ chars: 24,

{
"name": "ibantools",
"version": "3.2.3",
"version": "3.2.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,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc