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 2.0.0 to 2.1.0

4

build/ibantools.d.ts

@@ -73,2 +73,3 @@ /*!

* IBAN validation is not performed.
* When non-string value for IBAN is provided, returns null.
* @example

@@ -85,2 +86,3 @@ * // returns "NL91ABNA0417164300"

* IBAN validation is not performed.
* When non-string value for IBAN is provided, returns null.
* @example

@@ -162,3 +164,3 @@ * // returns "NL91 ABNA 0417 1643 00"

*/
export declare function extractBIC(bic: string): ExtractBICResult;
export declare function extractBIC(inputBic: string): ExtractBICResult;
/**

@@ -165,0 +167,0 @@ * Interface for IBAN Country Specification

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

* @see module:ibantools
* @version 2.0.0
* @version 2.1.0
* @license MPL-2.0

@@ -128,2 +128,3 @@ */

* IBAN validation is not performed.
* When non-string value for IBAN is provided, returns null.
* @example

@@ -137,3 +138,3 @@ * // returns "NL91ABNA0417164300"

function electronicFormatIBAN(iban) {
if (iban === undefined || iban === null) {
if (typeof iban !== "string") {
return null;

@@ -147,2 +148,3 @@ }

* IBAN validation is not performed.
* When non-string value for IBAN is provided, returns null.
* @example

@@ -160,2 +162,5 @@ * // returns "NL91 ABNA 0417 1643 00"

function friendlyFormatIBAN(iban, separator) {
if (typeof iban !== "string") {
return null;
}
if (typeof separator === "undefined") {

@@ -250,4 +255,5 @@ separator = " ";

*/
function extractBIC(bic) {
function extractBIC(inputBic) {
var result = {};
var bic = inputBic.toUpperCase();
if (isValidBIC(bic)) {

@@ -506,3 +512,3 @@ result.bankCode = bic.slice(0, 4);

UZ: { chars: null, bban_regexp: null, IBANRegistry: false, name: "Uzbekistan" },
VA: { chars: null, bban_regexp: null, IBANRegistry: false, name: "Holy See" },
VA: { chars: 22, bban_regexp: "^[0-9]{18}", IBANRegistry: true, name: "Vatican City State" },
VC: { chars: null, bban_regexp: null, IBANRegistry: false, name: "Saint Vincent and the Granadines" },

@@ -509,0 +515,0 @@ VE: { chars: null, bban_regexp: null, IBANRegistry: false, name: "Venezuela, Bolivian Republic of" },

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

* @see module:ibantools
* @version 2.0.0
* @version 2.1.0
* @license MPL-2.0

@@ -123,2 +123,3 @@ */

* IBAN validation is not performed.
* When non-string value for IBAN is provided, returns null.
* @example

@@ -132,3 +133,3 @@ * // returns "NL91ABNA0417164300"

export function electronicFormatIBAN(iban) {
if (iban === undefined || iban === null) {
if (typeof iban !== "string") {
return null;

@@ -141,2 +142,3 @@ }

* IBAN validation is not performed.
* When non-string value for IBAN is provided, returns null.
* @example

@@ -154,2 +156,5 @@ * // returns "NL91 ABNA 0417 1643 00"

export function friendlyFormatIBAN(iban, separator) {
if (typeof iban !== "string") {
return null;
}
if (typeof separator === "undefined") {

@@ -241,4 +246,5 @@ separator = " ";

*/
export function extractBIC(bic) {
export function extractBIC(inputBic) {
var result = {};
var bic = inputBic.toUpperCase();
if (isValidBIC(bic)) {

@@ -496,3 +502,3 @@ result.bankCode = bic.slice(0, 4);

UZ: { chars: null, bban_regexp: null, IBANRegistry: false, name: "Uzbekistan" },
VA: { chars: null, bban_regexp: null, IBANRegistry: false, name: "Holy See" },
VA: { chars: 22, bban_regexp: "^[0-9]{18}", IBANRegistry: true, name: "Vatican City State" },
VC: { chars: null, bban_regexp: null, IBANRegistry: false, name: "Saint Vincent and the Granadines" },

@@ -499,0 +505,0 @@ VE: { chars: null, bban_regexp: null, IBANRegistry: false, name: "Venezuela, Bolivian Republic of" },

{
"name": "ibantools",
"version": "2.0.0",
"version": "2.1.0",
"description": "Validation, extraction and creation of IBAN, BBAN, BIC/SWIFT numbers plus some other helpful stuff like ISO 3136-1 alpha 2 country list",

@@ -15,3 +15,3 @@ "keywords": [

"main": "build/ibantools.js",
"jsnext:main": "jsnext/ibantools.js",
"module": "jsnext/ibantools.js",
"jspm": {

@@ -55,13 +55,13 @@ "main": "jsnext/ibantools.js",

"cheerio": "^0.22",
"coveralls": "^3.0",
"coveralls": "^3.0.3",
"docdash": "^0.4.0",
"gulp": "^3.9",
"gulp": "^4.0.1",
"gulp-mocha": "^5.0",
"gulp-rename": "^1.2",
"gulp-shell": "^0.6.5",
"gulp-shell": "^0.7.0",
"gulp-typescript": "^4.0",
"istanbul": "^0.4",
"jasmine-core": "^3.1",
"jsdoc": "^3.5.5",
"karma": "^2.0",
"jsdoc": "^3.6.0",
"karma": "^4.1.0",
"karma-chrome-launcher": "^2.2",

@@ -73,8 +73,7 @@ "karma-jasmine": "^1.1.1",

"mocha-lcov-reporter": "^1.2.0",
"request": "^2.83.0",
"request": "^2.88.0",
"requirejs": "^2.3",
"run-sequence": "^2.2.1",
"typescript": "^2.7",
"tslint": "^5.9.1"
"tslint": "^5.9.1",
"typescript": "^2.7"
}
}

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