Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
docker-mock
Advanced tools
A mock for Docker!
See the tests for some sample usage, but you should be able to point your docker client at this mock and test against it.
This does have support for simulating failures during build. This is done (using dockerode
) by doing the following:
// file is a tar containing at minimum a Dockerfile
var file = ...;
docker.buildImage(
file,
{
t: 'doomedImage',
fail: true
},
function (err, res) {
// err will not be null
});
This is currently a work in progress, being built up as use cases come to light. If you would like to contribute, please note this repository is using a git-flow pattern, so please submit pull requests against the develop
branch, and they will be merged into the future release branch and master.
Please make sure all unit tests pass and coverage remains high during development (see below for details).
Testing is done locally via npm test
.
Coverage is done in two ways. First is a readable HTML report:
npm run coverage
Second is coverage reported for Travis CI by travis-cov
. This is invoked via:
npm run travis
If you wish to run both to make sure they pass, you can run:
npm run coverage-all
FAQs
Mock for Docker
The npm package docker-mock receives a total of 14 weekly downloads. As such, docker-mock popularity was classified as not popular.
We found that docker-mock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.