
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
This library provides the capability to transit variables between step and access them from gherkin definitions
This library provides the capability to transit variables between step and access them from gherkin definitions
npm install @cucumber-e2e/memory2
Lib resolves provided value from storage
const memory = require('@cucumber-e2e/memory2');
When(/^save variable as '(.+)'$/, async function (key) {
memory.setValue(key, 42);
});
Then(/^value '(.+)' should be equal to '(.+)'$/, async function (variable, variable) {
const val = memory.getValue(variable);
expect(val).to.equal(variable);
});
When save variable as 'variable'
Then value of '$variable' should be equal to '42'
Lib provides capability to set constant values and computed (values that calculated in the moment of call)
module.exports = {
CONSTANT: 42,
computed() {
return Date.now()
}
};
Before using memory it needs to be registered. The best place to do it is Before hook
const memory = require('@cucumber-e2e/memory2');
const memoryMap = require('./memoryMap.js')
Before(async function() {
memory.register(memoryMap);
});
FAQs
This library provides the capability to transit variables between step and access them from gherkin definitions
The npm package memory2 receives a total of 0 weekly downloads. As such, memory2 popularity was classified as not popular.
We found that memory2 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.