
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
just-retry-it
Advanced tools
A simple async/await wrapper around promise-retry and retry.
Why?
try-catch-retry part yourself.Kudos to promise-retry and retry authors 🙏.
$ npm install just-retry-it
await retry(operation, options?)
operation: The operation to be executed and retried if the execution should fail.options: The options object as it is desrcibed in the retry NPM package.
options also supports the errorHandler property (optional) to pass an error handler function, which will be called right after the operation if it throws. The handler receives the thrown error as the input.import retry from 'just-retry-it';
async function getMessage() {
if (Math.random() > 0.5) {
return "Hello World!";
}
throw new Error("boom");
}
async function run() {
// Retry without the error handler.
const msg1 = await retry(getMessage, { retries: 5 });
async function errorHandler(error) {
console.log("received an error", error);
}
// Retry with the error handler.
const msg2 = await retry(getMessage, { retries: 5, errorHandler });
}
FAQs
Retries with error handler
We found that just-retry-it 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 compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.