
Security News
Critical Security Vulnerability in React Server Components
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.
@nearform/trail-hapi-plugin
Advanced tools
trail-hapi-plugin is a plugin to add the trail REST API to a Hapi server.
To install via npm:
npm install @nearform/trail-hapi-plugin
const main = async function() {
const server = require('hapi').Server({host: 'localhost', port: 80})
await server.register([
{
plugin: require('@nearform/trail-hapi-plugin'),
}
])
await server.start()
logMessage(`Server running at: ${server.info.uri}`)
}
main().catch(console.error)
Trails route will be then accessible on the /trails path.
For more information on the REST API, you can check the generated OpenAPI / Swagger JSON file, which will available at the /trails/swagger.json path.
The plugin takes the following configuration options:
logger: A logger to be passed to the trails manager.db: Database settings for the trails manager.pool: A pre-configured database pool to be used by the trails manager; used in preference to any specified database settings.trailsManager: A pre-configured trails manager instance; used in preference to any of the previous settings.Copyright nearForm Ltd 2018. Licensed under MIT.
6.0.0 (2021-05-03)
FAQs
Hapi plugin for the audit trail logging service
We found that @nearform/trail-hapi-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 35 open source maintainers 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
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated “elf-*” npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.

Security News
TypeScript 6.0 will be the last JavaScript-based major release, as the project shifts to the TypeScript 7 native toolchain with major build speedups.