cuenca-mx / clabe-dart Goto Github PK
View Code? Open in Web Editor NEWValidate a CLABE in Mexico
License: MIT License
Validate a CLABE in Mexico
License: MIT License
Use the 5 digit standardized bank codes defined by Banxico similar to clabe-python
The first three digits specifies the bank name:
https://github.com/cuenca-mx/clabe-python/blob/master/clabe/__init__.py#L35-L47
Accept a CLABE or the first three digits of a CLABE and return the bank.
tests fails when running on a new dart SDK version. here is the error log using SDK >= 2.18.2
Installing Dart SDK version "latest" from the stable channel (release) on linux-x64
Downloading https://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-linux-x64-release.zip...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
[10](https://github.com/cuenca-mx/clabe-dart/actions/runs/3277530311/jobs/5394925508#step:3:12)0 180M 100 180M 0 0 213M 0 --:--:-- --:--:-- --:--:-- 213M
Pub cache set to: /home/runner/.pub-cache
Successfully installed Dart SDK:
Dart SDK version: 2.18.2 (stable) (Tue Sep 27 13:24:[11](https://github.com/cuenca-mx/clabe-dart/actions/runs/3277530311/jobs/5394925508#step:3:13) 2022 +0200) on "linux_x64"
....
00:00 +0: loading test/clabe_test.dart
00:01 +0: loading test/clabe_test.dart
00:01 +0 -1: loading test/clabe_test.dart [E]
Failed to load "test/clabe_test.dart":
Unable to spawn isolate: test/clabe_test.dart: Error: A library can't opt out of null safety by default, when using sound null safety.
Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:
- package:test_core
- package:test_api
- package:test
- package:clabe_dart
- package:boolean_selector
- package:matcher
For solutions, see https://dart.dev/go/unsound-null-safety
00:01 +0 -1: Some tests failed.
Error: Process completed with exit code 1.
Verify
Similar logic to cuenca-python.
you should use a new github action
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.