New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 4.0.0 to 4.0.1

2

build/ibantools.d.ts

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

* ```
v */
*/
export declare function isValidIBAN(iban: string): boolean;

@@ -19,0 +19,0 @@ /**

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

* @module ibantools
* @version 4.0.0
* @version 4.0.1
* @license MPL-2.0

@@ -29,3 +29,3 @@ * @preferred

* ```
v */
*/
function isValidIBAN(iban) {

@@ -484,3 +484,3 @@ if (iban !== undefined && iban !== null) {

var remainder = sum % 11;
if (controlBankBranch !== (remainder === 0 ? 0 : 11 - remainder)) {
if (controlBankBranch !== (remainder === 0 ? 0 : remainder === 1 ? 1 : 11 - remainder)) {
return false;

@@ -493,3 +493,3 @@ }

remainder = sum % 11;
return controlAccount === (remainder === 0 ? 0 : 11 - remainder);
return controlAccount === (remainder === 0 ? 0 : remainder === 1 ? 1 : 11 - remainder);
};

@@ -496,0 +496,0 @@ /**

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

* @module ibantools
* @version 4.0.0
* @version 4.0.1
* @license MPL-2.0

@@ -27,3 +27,3 @@ * @preferred

* ```
v */
*/
export function isValidIBAN(iban) {

@@ -470,3 +470,3 @@ if (iban !== undefined && iban !== null) {

var remainder = sum % 11;
if (controlBankBranch !== (remainder === 0 ? 0 : 11 - remainder)) {
if (controlBankBranch !== (remainder === 0 ? 0 : remainder === 1 ? 1 : 11 - remainder)) {
return false;

@@ -479,3 +479,3 @@ }

remainder = sum % 11;
return controlAccount === (remainder === 0 ? 0 : 11 - remainder);
return controlAccount === (remainder === 0 ? 0 : remainder === 1 ? 1 : 11 - remainder);
};

@@ -482,0 +482,0 @@ /**

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

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

"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-prettier": "^4.0.0",
"gulp": "^4.0.2",

@@ -79,5 +79,5 @@ "gulp-mocha": "^8.0",

"requirejs": "^2.3.6",
"typedoc": "^0.21.4",
"typedoc": "^0.22.9",
"typescript": "^4.3.5"
}
}
# IBANTools
[![License](https://img.shields.io/badge/license-MPL%202.0-green.svg?dummy)](https://github.com/Simplify/ibantools/blob/master/LICENSE)
[![License](https://github.com/Simplify/ibantools/blob/master/LICENSE)](https://img.shields.io/github/license/Simplify/ibantools)
[![Bower version](https://badge.fury.io/bo/ibantools.svg)](https://badge.fury.io/bo/ibantools)
[![npm version](https://badge.fury.io/js/ibantools.svg)](https://badge.fury.io/js/ibantools)
[![NPM downloads](https://www.npmjs.com/package/ibantools)](https://img.shields.io/npm/dw/ibantools)
![Dependents (via libraries.io)](https://img.shields.io/librariesio/dependents/npm/ibantools)

@@ -12,5 +14,12 @@ ![Build CI](https://github.com/Simplify/ibantools/workflows/Build%20CI%20(Master)/badge.svg?branch=master)

[![devDependency Status](https://david-dm.org/simplify/ibantools/dev-status.svg)](https://david-dm.org/simplify/ibantools#info=devDependencies)
[![Dependency Status](https://david-dm.org/simplify/ibantools.svg)](https://david-dm.org/simplify/ibantools)
![GitHub last commit](https://img.shields.io/github/last-commit/Simplify/IBANtools)
![GitHub contributors](https://img.shields.io/github/contributors/Simplify/IBANTools)
![GitHub issues](https://img.shields.io/github/issues/Simplify/ibantools)
![GitHub closed issues](https://img.shields.io/github/issues-closed-raw/Simplify/ibantools)
![GitHub pull requests](https://img.shields.io/github/issues-pr/Simplify/ibantools)
![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/Simplify/IBANTools)
![No deps](https://img.shields.io/badge/dependencies-0-brightgreen)
![dev deps](https://img.shields.io/librariesio/github/Simplify/IBANTools?label=devDependencies)
IBANTools is TypeScript/JavaScript library for validation, creation and extraction of IBAN, BBAN and BIC/SWIFT numbers.

@@ -17,0 +26,0 @@

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