
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
@dazn/chaos-squirrel-runner-wrapper
Advanced tools
Integrate the Chaos Runner into any function. Chaos will start whenever the function is called, and stop again before it resolves.
import ChaosRunner from '@dazn/chaos-squirrel-runner'
import chaosRunnerWrapper from '@dazn/chaos-squirrel-runner-wrapper'
const myFunction = async (number) => number + 1;
const myFunctionWithChaos = chaosRunnerWrapper(myFunction, {
createRunner: ChaosRunner.configure({ ... })
});
const value = await myFunction(1); // 2
const chaosValue = await myFunctionWithChaos(1); // 2, but potentially with chaos!
Parameter | Type | Default | Description |
---|---|---|---|
createRunner | Function | - | A function which returns a new instance of ChaosRunner |
wait | Boolean | true | Whether to wait for async chaos functions to complete, for example waiting for all files to be created for the open files attack |
0.10.1 (2021-07-20)
Note: Version bump only for package @dazn/chaos-squirrel
FAQs
Wrap any function in Chaos
We found that @dazn/chaos-squirrel-runner-wrapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.