![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
It Envolves async/sync methods for automatically logs traces. Inspired in Apex log.
$ npm install acho-trace --save
First load the plugin:
const Acho = require('acho')
Acho = require('acho-trace')(Acho)
Now when you call Acho
for create a new instance, the new instance will have .trace
and .traceSync
methods for envolve functions and create traces.
For see it in action check examples.
The API provides to endpoints:
both methods follow the same interface:
'use strict'
var Acho = require('acho')
Acho = require('acho-trace')(Acho)
var acho = Acho()
var fn = createFnAsync()
var wrapFnOne = acho.trace(fn, {
/*
OPTIONAL. [default=false]
It expresses if you are wrapping a sync function.
Also you can use `acho#traceSync` endpoint.
*/
sync: false,
/*
OPTIONAL. [default='debug']
output level under non-error result.
*/
level: 'debug',
/*
OPTIONAL. [default='error']
output level under error result.
*/
levelErr: 'error',
/*
OPTIONAL. [default='']
context associated with the message.
*/
context: '',
/*
OPTIONAL.
Custom print function to create print
messages under non-error.
By default it prints the arguments
passed in the original function.
*/
trace: function (obj) {
return ['executed fn with params: %j', obj]
},
/*
OPTIONAL.
Custom print function to create print
messages under error.
By default it prints the arguments
passed in the original function.
*/
traceErr: function (err) {
return ['something bad happens: %s', err.message]
}
})
MIT © Kiko Beats
FAQs
Automatically logs traces
The npm package acho-trace receives a total of 0 weekly downloads. As such, acho-trace popularity was classified as not popular.
We found that acho-trace 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.