
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
hapi-version
Advanced tools
This package allows a simple versioning scheme to be applied with Hapi servers.
npm install --save hapi-version
server.register({
register: require('hapi-version')
}, function(err) {
if(err) {
throw err; //Bad things going on
}
});
server.route({
method: 'GET',
path: '/versioned',
handler: function(req, res) {
res('Hello world!');
},
config: {
plugins: {
versions: {
'1.0.0': true,
'2.0.0': function(req, res) {
res('Hello world 2.0!');
}
}
}
}
});
curl --header "Accept-Version: 2.0.0" <host_url>/versioned
400
response (Bad Request) is returnedMore details on the project wiki.
Also, a look on the tests source code can be very enlightening
npm test
to run the Lab test suite, including overall coverage statisticsnpm run coverage
to generate the Lab coverage report written to coverage.html
filenpm run watch
continuously run the tests while editing the source code. It requires nodemon to be installed globallyFAQs
Hapi route versioning using custom header
The npm package hapi-version receives a total of 0 weekly downloads. As such, hapi-version popularity was classified as not popular.
We found that hapi-version 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.