npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vidisoft/agendateapp-codes

v1.0.7

Published

Codigos de aplicación

Readme

@vidisoft/agendateapp-codes

Lista centralizada de códigos y mensajes usados por los microservicios de AgendateApp.

Estructura

El archivo principal es index.js. Cada código expone:

| Campo | Descripción | Ejemplo | |-------|-------------|---------| | code | Código HTTP lógico de la respuesta | 202, 500 | | name | Identificador del código | W-025 | | message | Mensaje (puede usar {0}, {1}, …) | Required field: {0} |

// Ejemplo de entrada en index.js
W_025: {
  code: 202,
  name: 'W-025',
  message: 'Field {0} requires at least {1} characters. El campo {0} requiere al menos {1} caracteres.'
}

Uso en un microservicio

import code from '@vidisoft/agendateapp-codes'

// Acceso directo
console.log(code.G_200.message) // "Successful"

// Con placeholders (en el consumidor)
const msg = code.W_025.message.replace('{0}', 'detalle').replace('{1}', '10')

Publicar una nueva versión

La publicación en npm la realiza el mantenedor del paquete.

  1. Editar index.js con los códigos nuevos o cambios de mensaje.
  2. Incrementar la versión en package.json (semver: patch para mensajes, minor si añades códigos compatibles).
  3. Desde la carpeta agendateapp-codes:
npm login          # si la sesión expiró
npm publish --access public
  1. Comprobar:
npm view @vidisoft/agendateapp-codes version

Actualizar en los proyectos consumidores

En agendateapp.main, agendateapp.otp, agendateapp.files y agendateapp.notification, declarar la dependencia con caret (igual que el resto de paquetes):

"@vidisoft/agendateapp-codes": "^1.0.6"

Luego en cada proyecto:

npm install

El package-lock.json debe resolver desde https://registry.npmjs.org/, no desde rutas file: locales.

Changelog reciente

1.0.7

  • W_027: sin relación conductor–vehículo para los ids enviados ({0} = id enviado, {1} = vehículo).
  • W_028: relación encontrada pero no se pudo eliminar ({0} = id registro Conductores).
  • W_029: conductores encontrados en el vehículo; requiere force:true ({0} = cantidad).
  • W_030: ningún conductor vinculado al vehículo ({0} = id vehículo).

1.0.6

  • W_025: longitud mínima de campo ({0} = campo, {1} = mínimo).
  • W_026: longitud máxima de campo.
  • W_023 / W_024: mensajes por defecto documentados (conflictos de placa/propietario en registro).

Prueba local (opcional)

Solo para desarrollo sin publicar aún:

npm pack
npm install ./vidisoft-agendateapp-codes-X.Y.Z.tgz

En producción y Docker se usa siempre la versión publicada en npm con ^ en package.json.