
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
lambda-validator-aws
Advanced tools
$ npm i lambda-validator-aws
Una vez que el paquete esté instalado, puedes importar la biblioteca de la siguiente manera:
const { ValidationsIncomingDate } = require("lambda-validator-aws");
const keysValidExecuteTest = {
id: { require: true, type: "number" },
};
event = { body: { id: "1234" } }; //event error
event = { body: { id: 1234 } }; //event succes
const validate = new ValidatiosIncomingDate(event);
const bodyRequest = validate.fieldValidator(
keysValidExecuteTest,
"No han sido enviados los datos requeridos para esta acción --Error"
);
if (bodyRequest.statusCode) {
return bodyRequest;
}
//event error
bodyRequest = {
statusCode: 404,
headers,
body: JSON.stringify({
message,
}),
};
//event succes
bodyRequest = { id: 1234 };
para cambiar el idioma de nuestras respuestas aremos uso de la funcion setLanguage
const { setLanguage } = require("lambda-validator-aws");
setLanguage("es");
tambien podemos hacer uso del header "Accept-Language" para de esta manera manipular el lenguaje en el que queremos recibir los mensajes de nuestro validador
| validators | descripción |
|---|---|
| require | campo requerido |
| type | tipo de dato |
| isPassword | valida el campo como contraseña segura |
| isEmail | validar email |
| isPhone | validar numero de telefono |
| isMongoId | validar mongo id |
| min | minimo de caracteres |
| max | máximo de caracteres |
FAQs
This package allows you to validate for AWS lambdas
The npm package lambda-validator-aws receives a total of 15 weekly downloads. As such, lambda-validator-aws popularity was classified as not popular.
We found that lambda-validator-aws demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.