Skip to content

Commit

Permalink
Release v3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed May 6, 2024
1 parent 6e80384 commit 081db41
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 28 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release-on-vtag.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
name: release
name: Create Release

on:
push:
tags:
- 'v*'

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 #see: https://github.com/actions/checkout/releases
- uses: actions/create-release@v1
- uses: actions/checkout@v4 #see: https://github.com/actions/checkout/releases
- uses: actions/create-release@v1 #see: https://github.com/actions/create-release/releases
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/run-spec-on-push.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: build
name: Build and Run Specifications

on: [push]

jobs:
build:
name: Run Specifications
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 #see: https://github.com/actions/checkout/releases
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _JavaScript library to analyze or create a CLABE number for a Mexican bank accou
[![License:MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/center-key/clabe-validator/blob/main/LICENSE.txt)
[![npm](https://img.shields.io/npm/v/clabe-validator.svg)](https://www.npmjs.com/package/clabe-validator)
[![Hits](https://data.jsdelivr.com/v1/package/npm/clabe-validator/badge?style=rounded)](https://www.jsdelivr.com/package/npm/clabe-validator)
[![Build](https://github.com/center-key/clabe-validator/workflows/build/badge.svg)](https://github.com/center-key/clabe-validator/actions/workflows/run-spec-on-push.yaml)
[![Build](https://github.com/center-key/clabe-validator/actions/workflows/run-spec-on-push.yaml/badge.svg)](https://github.com/center-key/clabe-validator/actions/workflows/run-spec-on-push.yaml)

CLABE (Clave Bancaria Estandarizada — Spanish for "standardized banking code") is a banking
standard from the Mexican Bank Association (Asociación de Bancos de México — ABM) for
Expand Down
2 changes: 1 addition & 1 deletion clabe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type ClabeMxState = 'MX-AGU' | 'MX-BCN' | 'MX-BCS' | 'MX-CAM' | 'MX-CHH'

const clabe = {

version: '{{pkg.version}}',
version: '{{package.version}}',

computeChecksum(clabeNum17: string): number | null {
// Returns the checksum calculated from the first 17 characters of CLABE number.
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 v3.0.0 ~~ https://github.com/center-key/clabe-validator ~~ MIT License
//! clabe-validator v3.0.1 ~~ https://github.com/center-key/clabe-validator ~~ MIT License

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

const clabe = {
version: '3.0.0',
version: '3.0.1',
computeChecksum(clabeNum17) {
const x = (i) => [3, 7, 1][i % 3];
const add = (sum, digit, i) => sum + (Number(digit) * x(i)) % 10;
Expand Down
4 changes: 2 additions & 2 deletions dist/clabe.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! clabe-validator v3.0.0 ~~ https://github.com/center-key/clabe-validator ~~ MIT License
//! clabe-validator v3.0.1 ~~ https://github.com/center-key/clabe-validator ~~ MIT License

const clabe = {
version: '3.0.0',
version: '3.0.1',
computeChecksum(clabeNum17) {
const x = (i) => [3, 7, 1][i % 3];
const add = (sum, digit, i) => sum + (Number(digit) * x(i)) % 10;
Expand Down
4 changes: 2 additions & 2 deletions dist/clabe.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<link rel=preconnect href=https://fonts.googleapis.com>
<link rel=preconnect href=https://fonts.gstatic.com crossorigin>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.1/dist/dna-engine.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.2/dist/dna-engine.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/reset.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/layouts/letterbox.css>
<style>
Expand All @@ -35,7 +35,7 @@
a:hover { color: white; }
i.font-icon { font-size: 2rem; }
</style>
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@3.1/dist/dna-engine.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@3.2/dist/dna-engine.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/[email protected]/dist/lib-x.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/[email protected]/dist/clabe.min.js></script>
</head>
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clabe-validator",
"version": "3.0.0",
"version": "3.0.1",
"description": "Analyze or create a CLABE number for a Mexican bank account (written in functional TypeScript)",
"license": "MIT",
"type": "module",
Expand Down Expand Up @@ -85,25 +85,25 @@
},
"devDependencies": {
"@fortawesome/fontawesome-free": "~6.5",
"@types/node": "~20.11",
"@typescript-eslint/eslint-plugin": "~7.3",
"@typescript-eslint/parser": "~7.3",
"@types/node": "~20.12",
"@typescript-eslint/eslint-plugin": "~7.8",
"@typescript-eslint/parser": "~7.8",
"add-dist-header": "~1.4",
"assert-deep-strict-equal": "~1.2",
"copy-file-util": "~1.2",
"copy-folder-util": "~1.1",
"dna-engine": "~3.1",
"eslint": "~8.57",
"dna-engine": "~3.2",
"eslint": "8.57.0",
"esm-to-plain-js": "~1.1",
"jsdom": "~24.0",
"jshint": "~2.13",
"mocha": "~10.3",
"mocha": "~10.4",
"pretty-print-json": "~3.0",
"rimraf": "~5.0",
"run-scripts-util": "~1.2",
"typescript": "~5.4",
"uglify-js": "~3.17",
"w3c-html-validator": "~1.7",
"w3c-html-validator": "~1.8",
"web-ignition": "~2.1"
}
}
6 changes: 3 additions & 3 deletions spec/clabe.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<link rel=preconnect href=https://fonts.googleapis.com>
<link rel=preconnect href=https://fonts.gstatic.com crossorigin>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.1/dist/dna-engine.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.1/dist/panel-nav.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.2/dist/dna-engine.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.2/dist/panel-nav.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/reset.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/css/pretty-print-json.css>
<style>
Expand Down Expand Up @@ -78,7 +78,7 @@
table.clabe-examples tbody tr td:first-child { font-size: 0.9rem; }
}
</style>
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@3.1/dist/dna-engine.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@3.2/dist/dna-engine.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/[email protected]/dist/lib-x.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/[email protected]/dist/pretty-print-json.min.js></script>
<script defer src=../dist/clabe.dev.js></script>
Expand Down

0 comments on commit 081db41

Please sign in to comment.