Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Servicios Financieros Alternativos (Klar) #41

Merged
merged 1 commit into from
Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions clabe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ const clabe = {
655: { tag: 'SOFIEXPRESS', name: 'JP SofiExpress' },
656: { tag: 'UNAGRA', name: 'UNAGRA, S.F.P.' },
659: { tag: 'ASP INTEGRA OPC', name: 'Opciones Empresariales Del Noreste' },
661: { tag: 'ALTERNATIVOS', name: 'Servicios Financieros Alternativos (Klar)' },
670: { tag: 'LIBERTAD', name: 'Libertad Servicios Financieros' },
674: { tag: 'AXA', name: 'AXA Seguros' },
677: { tag: 'CAJA POP MEXICA', name: 'Caja Popular Mexicana' },
Expand Down
2 changes: 1 addition & 1 deletion dist/clabe.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! clabe-validator v2.1.5 ~~ https://github.com/center-key/clabe-validator ~~ MIT License
//! clabe-validator v2.1.6 ~~ https://github.com/center-key/clabe-validator ~~ MIT License

export type ClabeBank = {
tag?: string;
Expand Down
5 changes: 3 additions & 2 deletions dist/clabe.dev.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! clabe-validator v2.1.5 ~~ https://github.com/center-key/clabe-validator ~~ MIT License
//! clabe-validator v2.1.6 ~~ https://github.com/center-key/clabe-validator ~~ MIT License

const clabe = {
version: '2.1.5',
version: '2.1.6',
computeChecksum(clabeNum17) {
const x = (i) => [3, 7, 1][i % 3];
const add = (sum, digit, i) => sum + (Number(digit) * x(i)) % 10;
Expand Down Expand Up @@ -168,6 +168,7 @@ const clabe = {
655: { tag: 'SOFIEXPRESS', name: 'JP SofiExpress' },
656: { tag: 'UNAGRA', name: 'UNAGRA, S.F.P.' },
659: { tag: 'ASP INTEGRA OPC', name: 'Opciones Empresariales Del Noreste' },
661: { tag: 'ALTERNATIVOS', name: 'Servicios Financieros Alternativos (Klar)' },
670: { tag: 'LIBERTAD', name: 'Libertad Servicios Financieros' },
674: { tag: 'AXA', name: 'AXA Seguros' },
677: { tag: 'CAJA POP MEXICA', name: 'Caja Popular Mexicana' },
Expand Down
5 changes: 3 additions & 2 deletions dist/clabe.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! clabe-validator v2.1.5 ~~ https://github.com/center-key/clabe-validator ~~ MIT License
//! clabe-validator v2.1.6 ~~ https://github.com/center-key/clabe-validator ~~ MIT License

const clabe = {
version: '2.1.5',
version: '2.1.6',
computeChecksum(clabeNum17) {
const x = (i) => [3, 7, 1][i % 3];
const add = (sum, digit, i) => sum + (Number(digit) * x(i)) % 10;
Expand Down Expand Up @@ -168,6 +168,7 @@ const clabe = {
655: { tag: 'SOFIEXPRESS', name: 'JP SofiExpress' },
656: { tag: 'UNAGRA', name: 'UNAGRA, S.F.P.' },
659: { tag: 'ASP INTEGRA OPC', name: 'Opciones Empresariales Del Noreste' },
661: { tag: 'ALTERNATIVOS', name: 'Servicios Financieros Alternativos (Klar)' },
670: { tag: 'LIBERTAD', name: 'Libertad Servicios Financieros' },
674: { tag: 'AXA', name: 'AXA Seguros' },
677: { tag: 'CAJA POP MEXICA', name: 'Caja Popular Mexicana' },
Expand Down
4 changes: 2 additions & 2 deletions dist/clabe.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/clabe.umd.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! clabe-validator v2.1.5 ~~ https://github.com/center-key/clabe-validator ~~ MIT License
//! clabe-validator v2.1.6 ~~ https://github.com/center-key/clabe-validator ~~ MIT License

(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
Expand All @@ -13,7 +13,7 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.clabe = void 0;
const clabe = {
version: '2.1.5',
version: '2.1.6',
computeChecksum(clabeNum17) {
const x = (i) => [3, 7, 1][i % 3];
const add = (sum, digit, i) => sum + (Number(digit) * x(i)) % 10;
Expand Down Expand Up @@ -180,6 +180,7 @@
655: { tag: 'SOFIEXPRESS', name: 'JP SofiExpress' },
656: { tag: 'UNAGRA', name: 'UNAGRA, S.F.P.' },
659: { tag: 'ASP INTEGRA OPC', name: 'Opciones Empresariales Del Noreste' },
661: { tag: 'ALTERNATIVOS', name: 'Servicios Financieros Alternativos (Klar)' },
670: { tag: 'LIBERTAD', name: 'Libertad Servicios Financieros' },
674: { tag: 'AXA', name: 'AXA Seguros' },
677: { tag: 'CAJA POP MEXICA', name: 'Caja Popular Mexicana' },
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clabe-validator",
"version": "2.1.5",
"version": "2.1.6",
"description": "Analyze or create a CLABE number for a Mexican bank account (written in functional TypeScript)",
"license": "MIT",
"type": "module",
Expand Down
3 changes: 2 additions & 1 deletion spec/package.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('Current number of banks and cities', () => {

it('is correct ' + counts, () => {
const actual = { banks: numBanks, cities: numCities };
const expected = { banks: 127, cities: 883 }; //update this line when adding a new bank or city
const expected = { banks: 128, cities: 883 }; //update this line when adding a new bank or city
assertDeepStrictEqual(actual, expected);
});

Expand All @@ -43,6 +43,7 @@ describe('Newly added or modified banks and cities', () => {
{ code: 152, tag: 'BANCREA', name: 'Banco Bancrea, Institución de Banca Múltiple' },
{ code: 159, tag: 'BANK OF CHINA', name: 'Bank of China México' },
{ code: 602, tag: 'MASARI', name: 'Masari Casa de Bolsa' },
{ code: 661, tag: 'ALTERNATIVOS', name: 'Servicios Financieros Alternativos (Klar)' },
{ code: 674, tag: 'AXA', name: 'AXA Seguros' },
{ code: 677, tag: 'CAJA POP MEXICA', name: 'Caja Popular Mexicana' },
{ code: 679, tag: 'FND', name: 'Financiera Nacional De Desarrollo Agropecuario' },
Expand Down