Skip to content

Commit

Permalink
Merge pull request #4 from ithdev/fix/get_contribuyente_by_ci_ruc
Browse files Browse the repository at this point in the history
Arreglo de URL y busqueda de RUC, Mejora en Search
  • Loading branch information
ramirezsebas authored Feb 4, 2024
2 parents 3388e32 + 63051df commit f1a3b08
Show file tree
Hide file tree
Showing 12 changed files with 1,123 additions and 93 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
16 changes: 16 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true,
"node": true
},
"extends": "google",
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"object-curly-spacing": 0,
"max-len": 0
}
}
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,30 @@

Todos los cambios notables en esta biblioteca se documentarán en este archivo.

## [0.1.2] - 2024-02-03

### Añadido

- Se agrega configuracion de ES-Lint

### Cambiado

- Se cambia el manejo de error mas especifico son los errores
- Se mejora la validacion de la funcion getContribuyenteBySearch

### Corregido

- Se coloca URL correcto para produccion
- Se arregla el regex para validar ruc o ci

## [0.1.1] - 2024-02-01

### Añadido

- Constantes MIN_LENGTH y MAX_LENGTH

### Cambios

- Se analizan las longitudes a partir de las constantes añadidas pasando del máximo limite de 10 a 50.
- Corrección en comentarios

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Importa las funciones necesarias en tu código:
const {
getContribuyenteBySearch,
getContribuyenteByRucOrCI,
} = require('nombre-de-la-biblioteca');
} = require('tu-ruc-js-client');
```

## Uso
Expand Down
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ const config = {
// collectCoverageFrom: undefined,

// The directory where Jest should output its coverage files
coverageDirectory: "coverage",
coverageDirectory: 'coverage',

// An array of regexp pattern strings used to skip coverage collection
// coveragePathIgnorePatterns: [
// "/node_modules/"
// ],

// Indicates which provider should be used to instrument code for coverage
coverageProvider: "v8",
coverageProvider: 'v8',

// A list of reporter names that Jest uses when writing coverage reports
// coverageReporters: [
Expand Down
Loading

0 comments on commit f1a3b08

Please sign in to comment.