Skip to content

Commit

Permalink
Add dual license
Browse files Browse the repository at this point in the history
  • Loading branch information
Simplify committed Feb 11, 2024
1 parent c69a62d commit 6a67e56
Show file tree
Hide file tree
Showing 37 changed files with 497 additions and 438 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-01-09 Saša Jovanić <[email protected]>
* Added dual licensing, MIT or MPL-2.0

2024-01-09 Saša Jovanić <[email protected]>
* Version 4.3.9
* Removed Dutch (NL) BBAN validation
Expand Down
374 changes: 1 addition & 373 deletions LICENSE
100755 → 100644

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions LICENSE.MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Saša Jovanić

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
373 changes: 373 additions & 0 deletions LICENSE.MPL-2.0

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![License](https://img.shields.io/github/license/Simplify/ibantools)](https://github.com/Simplify/ibantools/blob/master/LICENSE)

[![Bower version](https://badge.fury.io/bo/ibantools.svg)](https://badge.fury.io/bo/ibantools)
![Bower version](https://badge.fury.io/bo/ibantools.svg)]
[![npm version](https://badge.fury.io/js/ibantools.svg)](https://badge.fury.io/js/ibantools)
[![NPM downloads](https://img.shields.io/npm/dw/ibantools)](https://www.npmjs.com/package/ibantools)
![Dependents (via libraries.io)](https://img.shields.io/librariesio/dependents/npm/ibantools)
Expand Down Expand Up @@ -107,6 +107,8 @@ For contribution details, please read [this document](https://github.com/Simplif

## License

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at [http://mozilla.org/MPL/2.0/](http://mozilla.org/MPL/2.0/).
This work is dual-licensed under MIT and MPL-2.0.
You can choose between one of them if you use this work.

`SPDX-License-Identifier: MIT OR MPL-2.0`

10 changes: 7 additions & 3 deletions dist/ibantools.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
/*!
* @license
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
* Copyright Saša Jovanić
* Licensed under the Mozilla Public License, Version 2.0 or the MIT license,
* at your option. This file may not be copied, modified, or distributed
* except according to those terms.
* SPDX-FileCopyrightText: Saša Jovanić
* SPDX-License-Identifier: MIT or MPL/2.0
*/
/**
* Interface for validation options
*/
Expand Down
14 changes: 9 additions & 5 deletions dist/ibantools.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
/*!
* @license
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
* Copyright Saša Jovanić
* Licensed under the Mozilla Public License, Version 2.0 or the MIT license,
* at your option. This file may not be copied, modified, or distributed
* except according to those terms.
* SPDX-FileCopyrightText: Saša Jovanić
* SPDX-License-Identifier: MIT or MPL/2.0
*/
define(["require", "exports"], function (require, exports) {
/**
* Validation, extraction and creation of IBAN, BBAN, BIC/SWIFT numbers plus some other helpful stuff
* @package Documentation
* @author Saša Jovanić
* @module ibantools
* @version 4.3.9
* @license MPL-2.0
* @version 4.5.0
* @license MIT or MPL-2.0
* @preferred
*/
'use strict';
Expand Down
4 changes: 2 additions & 2 deletions docs/enums/ValidationErrorsBIC.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/enums/ValidationErrorsIBAN.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/composeIBAN.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/electronicFormatIBAN.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/extractBIC.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/extractIBAN.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/friendlyFormatIBAN.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/getCountrySpecifications.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/isQRIBAN.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/isSEPACountry.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/isValidBBAN.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/isValidBIC.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/isValidIBAN.html

Large diffs are not rendered by default.

26 changes: 22 additions & 4 deletions docs/functions/setCountryBBANValidation.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/validateBIC.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/validateIBAN.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/index.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/ComposeIBANParams.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/interfaces/CountryMap.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/CountrySpec.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/ExtractBICResult.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/ExtractIBANResult.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/ValidateBICResult.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/ValidateIBANOptions.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/ValidateIBANResult.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/modules.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IBANTools</title><meta name="description" content="Documentation for IBANTools"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script defer src="assets/main.js"></script><script async src="assets/search.js" id="tsd-search-script"></script><script async src="assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base="."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">IBANTools</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><h2>IBANTools</h2></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p>Validation, extraction and creation of IBAN, BBAN, BIC/SWIFT numbers plus some other helpful stuff</p>
</div><div class="tsd-comment tsd-typography"><h4>Package</h4><p>Documentation</p>
<h4>Author</h4><p>Saša Jovanić</p>
<h4>Version</h4><p>4.3.8</p>
<h4>License</h4><p>MPL-2.0</p>
<h4>Version</h4><p>4.5.0</p>
<h4>License</h4><p>MIT or MPL-2.0</p>
<h4>Preferred</h4></div></section><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><h3 class="tsd-index-heading uppercase">Index</h3><section class="tsd-index-section"><h3 class="tsd-index-heading">Enumerations</h3><div class="tsd-index-list"><a href="enums/ValidationErrorsBIC.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Validation<wbr/>ErrorsBIC</span></a>
<a href="enums/ValidationErrorsIBAN.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg><span>Validation<wbr/>ErrorsIBAN</span></a>
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Interfaces</h3><div class="tsd-index-list"><a href="interfaces/ComposeIBANParams.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg><span>ComposeIBANParams</span></a>
Expand Down
2 changes: 1 addition & 1 deletion docs/variables/countrySpecs.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ibantools",
"version": "4.3.9",
"version": "4.5.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",
"keywords": [
"IBAN",
Expand Down Expand Up @@ -53,7 +53,7 @@
"name": "Saša Jovanić",
"url": "https://www.simplify.ba/"
},
"license": "MPL-2.0",
"license": "MIT or MPL-2.0",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
Expand Down
14 changes: 9 additions & 5 deletions src/ibantools.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
/*!
* @license
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
* Copyright Saša Jovanić
* Licensed under the Mozilla Public License, Version 2.0 or the MIT license,
* at your option. This file may not be copied, modified, or distributed
* except according to those terms.
* SPDX-FileCopyrightText: Saša Jovanić
* SPDX-License-Identifier: MIT or MPL/2.0
*/

/**
* Validation, extraction and creation of IBAN, BBAN, BIC/SWIFT numbers plus some other helpful stuff
* @package Documentation
* @author Saša Jovanić
* @module ibantools
* @version 4.3.9
* @license MPL-2.0
* @version 4.5.0
* @license MIT or MPL-2.0
* @preferred
*/
'use strict';
Expand Down
8 changes: 5 additions & 3 deletions test/ibantools_test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* Licensed under the Mozilla Public License, Version 2.0 or the MIT license,
* at your option. This file may not be copied, modified, or distributed
* except according to those terms.
* SPDX-FileCopyrightText: Saša Jovanić
* SPDX-License-Identifier: MIT or MPL/2.0 */

'use strict';

Expand Down

0 comments on commit 6a67e56

Please sign in to comment.