Skip to content

Commit

Permalink
actualizando librerias
Browse files Browse the repository at this point in the history
  • Loading branch information
ripper2hl committed Nov 18, 2023
1 parent baf7007 commit f96556b
Show file tree
Hide file tree
Showing 3 changed files with 3,127 additions and 3,260 deletions.
10 changes: 5 additions & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class Persona {
apellidoMaterno,
genero,
estado,
fechaNacimiento
fechaNacimiento,
) {
this.nombre = nombre;
this.apellidoPaterno = apellidoPaterno;
Expand All @@ -171,16 +171,16 @@ function generar(persona) {
const pad = zeropad.bind(null, 2);

const nombre = ajustaCompuesto(
normalizaString(persona.nombre.toUpperCase())
normalizaString(persona.nombre.toUpperCase()),
).trim();

const apellidoPaterno = ajustaCompuesto(
normalizaString(persona.apellidoPaterno.toUpperCase())
normalizaString(persona.apellidoPaterno.toUpperCase()),
).trim();

let apellidoMaterno = persona.apellidoMaterno || '';
apellidoMaterno = ajustaCompuesto(
normalizaString(apellidoMaterno.toUpperCase())
normalizaString(apellidoMaterno.toUpperCase()),
).trim();

const nombreUsar = obtenerNombreUsar(nombre);
Expand Down Expand Up @@ -460,7 +460,7 @@ function obtenerNombreUsar(nombre) {
if (nombres.length === 1) return nombres[0];

const esNombreComun = comunes.some(
(nombreComun) => nombre.indexOf(nombreComun) === 0
(nombreComun) => nombre.indexOf(nombreComun) === 0,
);

if (esNombreComun) return nombres[1];
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
],
"devDependencies": {
"coveralls": "^3.1.1",
"eslint": "^8.1.0",
"prettier": "^2.4.1",
"husky": "^7.0.4",
"lint-staged": "^11.2.6",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-config-xo": "^0.39.0",
"jest": "^27.3.1"
"eslint": "^8.54.0",
"prettier": "^3.1.0",
"husky": "^8.0.3",
"lint-staged": "^15.1.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-config-xo": "^0.43.1",
"jest": "^29.7.0"
},
"engines": {
"npm": ">= 8.0.0"
Expand Down
Loading

0 comments on commit f96556b

Please sign in to comment.