
Research
Active Supply Chain Attack Compromises @antv Packages on npm
Active npm supply chain attack compromises @antv packages in a fast-moving malicious publish wave tied to Mini Shai-Hulud.
Clases basadas en el sdk de AWS para optimizar desarrollos en el área de infraestructura.
Utilerías para optimizar el desarrollo del área de infraestructura.
Ejecuta el siguiente comando
npm i infra-utils
Puedes configurar la librería para que habilite los logs y/o el formato por default que se usará para pasar de string a date o visceversa.
const INSTANCE = InfraUtils.getInstance({
debug: true,
defaultDateTimeFormat: 'DD-MM-YYY HH:mm:ss'
});
También puedes configurarlo por separado usando los métodos setDebug y setDefaultDateTimeFormat
const INSTANCE = InfraUtils.getInstance();
INSTANCE.setDebug(false);
INSTANCE.setDefaultDateTimeFormat('DD-MM-YYYY');
La librería contiene las siguientes clases:
InfraUtils.getInstance().setDebug(true);.Para convertir un tipo date a un string se usa el método dateToString
const strDate = Converter.dateToString(new Date(2020, 0, 1), 'DD-MM-YYYY'); //Output 01-01-2020
const strDate = Converter.dateToString(new Date(2020, 0, 1)); //Output 2020-01-01 00:00:00
Para el proceso inverso se usa el método stringToDate
const date = Converter.stringToDate('31-12-2020', 'DD-MM-YYYY');
const date = Converter.dateToString('2020-12-31');
Para validar una promesa se ocupa el método validatePromise
Generic.validatePromise(new Error('Error Genérico'), {foo: 'bar'}, (data) => {
//Do something with data
}, (error) => {
//Do something with error
});
Para loguear por consola un mensaje se ocupa el método logMessage
Logger.logMessage('Esto es un mensaje de prueba');
Para loguear un error por consola se ocupa el método logError
Logger.logError(new Error('Custom Error'));
Para loguear un objeto por consola se ocupa el método logData
Logger.logData({foo: 'bar'});
Si se desea agregar un texto antes del error, se ocupa el método describeError
Logger.describeError('Error', new Error('Custom Error'));
Si se desea agregar un texto antes del objeto, se ocupa el método describeData
Logger.describeData('Response', {success: true, code: 200, message: 'Request processed successfully'});
We use SemVer for versioning. For the versions available, see the tags on this repository.
FAQs
Clases basadas en el sdk de AWS para optimizar desarrollos en el área de infraestructura.
The npm package infra-aws receives a total of 2 weekly downloads. As such, infra-aws popularity was classified as not popular.
We found that infra-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.

Research
Active npm supply chain attack compromises @antv packages in a fast-moving malicious publish wave tied to Mini Shai-Hulud.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.