Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
cucumber-enhancement
Advanced tools
Enhances cucumber.js to make it easier to interact between steps.
features/support/enhancement-hook.js
as followsmodule.exports = require('cucumber-enhancement');
This does the following:
this.Given(/^I am on the "([^/"]*)\/([^"]*)" repository on GitHub$/, function (owner, repo, callback) {
// This saves owner and repo for use in other steps
callback(null, {
owner: owner,
repo: repo
});
});
when
, then
, and given
to require data saved from other steps:this.Then(/^I should see "([^"]*)" as one of the branches$/, {
branches: this.joi.array()
}, function (data, branch, callback) {
// data.branches contains data saved from another step
expect(data.branches).to.contain(branch);
setImmediate(callback);
});
Exposes joi
interface for quick access during step definition (see above).
Bakes request
module into the world for easy access and automatically sets the scope of the callback function:
this.request({
method: 'GET',
uri: 'http://foo.yahoo.com/'
}, function (err, message, response) {
callback(null, {
'bar': Object.keys(response)
});
});
this.Before("@github_api", function(callback) {
this.default('headers.User-Agent', 'Cucumber Test');
this.default('json', true);
setImmediate(callback);
});
FAQs
Enhances cucumber.js to make it easier to interact between steps
We found that cucumber-enhancement 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.